Odoo 도움말

1

0
2 응답
4
Avatar

Yenthe Van Ginneken 벨기에

--Yenthe Van Ginneken--
22921
| 9 9 12
Turnhout, 벨기에
--Yenthe Van Ginneken--

My Odoo training platform: https://www.oocademy.com
My Odoo blog: http://www.odoo.yenthevg.com/
My Twitter: https://twitter.com/Yenthe666

Yenthe Van Ginneken 벨기에
19. 7. 21. 오전 11:08

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

0
Jigar Patel India
19. 7. 21. 오전 12:47

Remove create tag which you don't need.
https://github.com/odoo/odoo/blob/12.0/addons/sale/views/sale_views.xml#L388


질문하기
Writer
Keep Informed
1 팔로워
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now