Odoo 15: In Manufacturing App/Work Orders how do I get the text values of Workcenter field to use in an inherited view as a condition? - odoo-15

In Odoo 15 Manufacturing App, Work Orders view I want to hide buttons for certain recordsets based on a text value of a Work Center record. I'm new to Odoo ERP and so far haven't found the way to get to these values. Much obliged for any help on this!

Related

How to write data in a Form when it has already been opened?

I am carrying out a project for a restaurant, in which a Form is presented to me on a second monitor that lists the products that the client is invoicing, this sale opens when the application starts.
The problem is that at the time I am making the invoice, I need to send you the data to represent the product, price, subtotal, vat and total of the invoice.
My problem is that when the parameters are sent, they are not reflected on the screen only in the code, through a breakpoint.
On the Label where the zero value is reflected, 36 should appear, which is the number corresponding to the invoice.
I hope you can help, thank you.
enter code here

Displaying a field in a column with a fallback option to another field

I'm creating a view for Contact entity and the issue is that some of their sellers have entered information on Mobile Phone field, while others used Business Phone field.
They'll probably continues to do so. There's no point copying the values as they're entered and both fields are needed.
The simplest solution is to display two columns in the view. However, that occupies the precious width on the form.
I wonder if it's possible to display a column in a view so that it gets its information from field Ahaa and if that happens to be empty, it falls back to displaying the field Buhu. Is it possible and if so - how?
There's no supported way to add conditional logic to a view definition such that it would show or hide columns. The usual way to do this is to store the value of whichever field is populated in third field. Populate this in a plugin and show this only in the view.

Prestashop, order product from supplier

In a new Prestashop installation I need to achieve on certain products, a on-hold status, meaning, for instance,
Some products are in stock ready to ship.
Other products must be ordered and will take 1 or 2 weeks to be delivered.
I've seen web stores where this info is displayed, my question is the following, is there a module that enbales this possibility? For instance, automaticly split the order with ready to stock items and order from supplier items?
Thanks,
Kind Regards
Prestashop already has this functionality, so no need for a module.
On the admin page, click on catalog->products. Then click the edit button for the product you want to change (should look like a paper and pencil). Click on the quantities tab, and then select 'Allow orders' under 'When out of stock'. You can then provide the message you want the user to see when the product is in stock, and the message they see when it's out of stock at the bottom of the page. Hit save you're done, at least for that product.

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

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.

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.