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
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
1
1月 18
|
6131 | |||
|
1
8月 16
|
4869 | |||
|
0
9月 22
|
2682 | |||
|
0
11月 25
|
1184 | |||
|
0
4月 25
|
3506 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.