Is it possible to add one2many inside one2many field in openerp? - odoo

For example I need to add bom lines inside sale order lines. I have created an on_change function to load the bom lines if the product have bom. It is working fine in GTK, but when I try to add in web client, its not working..

Look at the product screen's Suppliers tab. One product can have many suppliers and each supplier can have many prices. To see the price list, you must enable the extended view for your user account.
Here's a screen shot of the GTK client with the suppliers switched from tree view to form view so you can see both levels.
The web client can't display both levels at the same time. You have to open the supplier in a dialog box, and it shows you the list of prices there.

is it possible to trigger control to another form based on th onchange of a selection field? the new form is to be linked to the new button of the existing form.

Related

Modify price using jquery in Bigcommerce

I would like to modify Product price dynamically when a button is clicked, using jquery.
For example, if there is a button with value "22" , if i click that button, the price should change to "22". For now, i can change the front end text of price label, but i couldn't pass it when adding to cart. Please help me to resolve this.
Thanks
The price is pulled from the backend and displayed.
It is possible to read the price. It is also possible to have options.
I can see a fairly easy way to do this by setting up options for a product:
Put the options ( %%Product_AddToCartRight%% is the most commonly used options listing) in a div with the style set to "display:none".
Then have your button "click" the options via javascript or jquery.
Since the options are hidden by the display:none, the button "automagically" changes the price...and could do other things, like make a "Congrats" div appear, or make the price text/box change color.
This is good, since it not only draws the users eyes to the price change, but triply rewards the user: Better price, price changes (reacts to users click), and the color changes (another reaction to the users click).
Clicking an option does autoupdate the price, including what gets passed to the shopping cart.
One thing to be aware of is that Google may or may not run any given piece of javascript on your page.
More importantly, googles crawler does NOT click buttons or select options, so any price changes driven by a click or selection will not be indexed by google. Your product will still show, but only at the "base" price.

How to Show categories on BigCommerce

Is it possible to show specific categories in BigCommerce instead of all categories?
We have used the code %%Panel.SideCategoryList%% but it shows all the categories.
Thanks in advance
At this time there is not a way to uniquely control the output of categories using that panel. Depending on your context, you can either
1. Allow all categories to be output and use javascript to selectively hide a few (this is far from ideal, I know).
2. Manually add the categories into that panel and skip the dynamic category insertion.
In the admin, click on Products, then click Product Categories. That page displays all of the categories for your site. On the right of the page you'll see green checkmarks. If you don't want a category to be visible on your site, simply click the green checkmark and it will turn into a red X

Need form in located in a SharePoint 2010 InfoPath web part to retain data submitted at the same time

I have created a form for use during a meeting. Multiple people need to click approve at the same time. The issue is if they all are in the form at the same time, it is only going to keep the last approval and resets the fields the others have approved... as there approval was not there when the form was opened. I guess I should have seen this coming. Is there anything I can do?
Use two lists with a parent/child relationship.
You need a master list with a unique ID and a detail list where the Master ID is assigned to the new list items to define the relationship. In the Master List you can customize the display form to contain a list view of the related items in the Detail list and a link to add new items to that detail list. A little bit of JavaScript will ensure that a new item in the Detail list gets the Master item's ID assigned automatically.
Clear as mud? The SharePoint Hillbilly has a video tutorial for 2007 and 2010.
If you go through the material (the 2007 stuff is good to understand the approach), you'll find that there are two techniques, one using SharePoint Designer, the other one without SPD.
Back to your meeting: Before the meeting, create an item in the Master list. Everybody can see the item on their screen and click to create a related item in the Detail list. They can all save their related item at the same time, since these are individual list items in the Detail list. Refresh the display view of the Master list item to see everybody's replies.

Assigning a custom workflow to a work item type in Rational Team Concert

I'm in the process of customizing Rational Team Concert to include a custom work item type. As part of the testing of the work item type as I created it I populated a few of the custom work items with data. As I enhanced the custom work item type and added additional attributes I was able to use the "Check attributes usages in repository" from the "Types and Attributes" to ensure that the new attributes were propagated to my test work items.
Now I've gotten to the point where I need to create a custom workflow for this work item type. I've defined the workflow and and assigned it to the work item type, but my existing test work items can't seem to use it. Clicking on the "Check workflow usages in repository" link says "There are 9 work items in the repository referencing workflow states or resolutions that are not present in the bound workflow. Do you want to show these items in the Work Items view?".
The workitem view then just says that status = 1 for the test work items.
If I select a work to open in the rich client editor all of the process elements are inactive. If I open it in the web editor, it says that the status is "1", as shown below:
Is there any way to fix this and change the workflow of existing work items? I should add that new work items work just fine, but I'm worried about what might happen if I need to update the process again in the future.
In the context of work item customization, you have to manually sync existing work item attributes with the most recent version of the PA in order to take your changes into account.
The steps are detailed here in the manual page "Defining work item types and attributes":
(bottom of the page)
To manually update existing work items with new or modified custom attributes:
Run a query so that the query results contain all the work items that you want to update.
Note: Do not select any relationships to be shown in the query results.
If relationships are shown, the Type icon is not displayed and you cannot complete these steps.
To clear all relationships shown, in the Work Items view menu, select Relationships, click Deselect all, and then click OK.
In the Work Items view, select the work items that you want to modify.
In the row of one of the selected work items, right-click the Type icon and select Synchronize attributes.
Thanks.
Eric.

Add Data to Child List from Parent List form in SP 2010

I have 2 custom lists. Purchase Order (PO) and Purchase Order Items (POI). The POI list has a column PO ID, which is a lookup field to a column PO ID in the PO list. For every row in PO, there can be multiple rows in POI (one to many relationship).
When user tries to enter new items in the PO form, he needs to fill in the purchase items too, which will be stored in the POI list. The issue I am facing is, how do I allow the user to enter the data in both the lists at the same time, OOTB?
I have to do this using the list forms itself. Infopath is not an option available. SPD techniques are welcomed.
I don't believe this can be done OOTB or with SharePoint Designer. Out of the box, SharePoint only allows you to enter one new item to one list at a time.
Using Edit In Datasheet is as close as you can some to editing or entering multiple list items at once. But even in this case, it is limited to a single list.
I have done a project similar to what you described using custom programming. I created custom forms along with custom field types that required custom javascript on the client and event receivers on the server. It was an interesting project, but it required a lot of moving parts.