Odoo Help

2

0
3 Answers
4
Avatar

Abraham Qureshi

--Abraham Qureshi--

1012
| 6 4 9
southampton, 英国
--Abraham Qureshi--


Abraham Qureshi
2019/2/25 上午1:16

please try this
<record id="view_order_line_form_editable_list" model="ir.ui.view">
<field name="name">sale.order.line.form.editable.list</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/tree" position="attributes">
<attribute name="editable"/>
</xpath>
</field>
</record>

1
Avatar

Axel Mendoza

--Axel Mendoza--
13583
| 8 8 10
Camaguey, 古巴
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
2016/2/28 下午3:43

@Ahmed Ababneh

You could do it like this:

<xpath expr="//form/field[@name='order_line']/tree" position="attributes">
    <attribute name="editable">top</attribute>
</xpath>


0
Priyesh Solanki
2016/2/28 下午3:45

You can override fields_view_get method for that object. Get the 'arch' by calling super method and remove the "editable" attrs from tree view. You will have to use python lxml packages and use etree to convert the arch into xml. You will get lots of examples in odoo addons of overriding fields_view_get.

Ask a Question
Writer
Keep Informed
1 follower(s)
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