Odoo Aide


3 Answers

Abraham Qureshi

--Abraham Qureshi--

| 6 4 9
southampton, Royaume-Uni
--Abraham Qureshi--

Abraham Qureshi
25/02/2019 01: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"/>


Axel Mendoza

--Axel Mendoza--
| 8 8 10
Camaguey, Cuba
--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
28/02/2016 15:43

@Ahmed Ababneh

You could do it like this:

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

Priyesh Solanki
28/02/2016 15: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.

Poser une question
Keep Informed
1 Abonné(e)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.