I would like to know if there is a module or a setting to did in order to hid the add note & add section on order lines
section_and_note_fields
Or how we can do it technically ?
Thank you.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I would like to know if there is a module or a setting to did in order to hid the add note & add section on order lines
section_and_note_fields
Or how we can do it technically ?
Thank you.
Hi Aymenisio,
You can remove this with an inherited view. In this view create an xpath expression to remove the "control" element of the tree:
<record id="custom_sale_order_form_view" model="ir.ui.view">
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="model">sale.order</field>
<field name="arch" type="xml">
<xpath expr="//tree/control" position="replace">
</xpath>
</field>
</record>
Tip: In the upcoming V13 it will be even easier to remove parts of the control. I've made an improvement so that all the controls have a name to xpath on. See https://github.com/odoo/odoo/pull/30711/files
Regards,
Yenthe
Shall we reuse those create line_section and line_note in some other model eg: mrp.bom.line ?
any tip?
Remove create tag which you don't need.
https://github.com/odoo/odoo/blob/12.0/addons/sale/views/sale_views.xml#L388
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
sty 18
|
6137 | |||
|
1
sie 16
|
4876 | |||
|
0
wrz 22
|
2683 | |||
|
0
lis 25
|
1189 | |||
|
0
kwi 25
|
3510 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.