Hello it seem in Quotation, Sales or Accouting when i have import a wrong item it automatically create so many random item. So i would like to know how to remove the ability to create products on the sale.order, quotation and accouting form view:
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Hi,
You can inherit the form view of the sales order. Add the attribute ‘Options’ to the field and make no_create_edit values are True. eg:
<field name="product_id" position="attributes">
<attribute name="options">{'no_create': True, 'no_create_edit':True}</attribute>
</field>
Regards
the xml is pretty large. where should i add it?
I belive shomewhere here in this image https://ibb.co/2M71M78
Here explains how to do it. (with and without studio)
https://odootricks.tips/prevent-users-create-products-on-the-fly/
However it is necessary to delete the widget change line in the inherit view.
many2one
BC If you change the widget to many2many from product_configurator and don´t delete the line; you won´t have the variant configurator from sales; (in our case we use it)
Hope it helps
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
mar 15
|
4819 | ||
|
1
mar 15
|
3689 | ||
|
3
lip 25
|
899 | ||
|
1
paź 22
|
4120 | ||
|
0
kwi 25
|
841 |