diff options
| -rw-r--r-- | addons/product/views/product_views.xml | 15 | ||||
| -rw-r--r-- | addons/purchase_requisition/views/product_views.xml | 2 |
2 files changed, 10 insertions, 7 deletions
diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index 728451e496d..d91feebaf53 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -653,15 +653,18 @@ <field name="name">product.supplierinfo.tree.view</field> <field name="model">product.supplierinfo</field> <field name="arch" type="xml"> - <tree string="Vendor Information"> - <field name="sequence" widget="handle"/> - <field name="name"/> - <field name="product_id" invisible="context.get('product_template_invisible_variant', False)" groups="product.group_product_variant" optional="hide"/> - <field name="product_tmpl_id" string="Product" invisible="context.get('visible_product_tmpl_id', True)"/> + <tree string="Vendor Information" multi_edit="1"> + <field name="sequence" widget="handle" readonly="1"/> + <field name="name" readonly="1"/> + <field name="product_id" readonly="1" optional="hide" + invisible="context.get('product_template_invisible_variant', False)" + groups="product.group_product_variant"/> + <field name="product_tmpl_id" string="Product" readonly="1" + invisible="context.get('visible_product_tmpl_id', True)"/> <field name="currency_id" groups="base.group_multi_currency"/> <field name="date_start" optional="hide"/> <field name="date_end" optional="hide"/> - <field name="company_id" groups="base.group_multi_company"/> + <field name="company_id" readonly="1" groups="base.group_multi_company"/> <field name="min_qty"/> <field name="product_uom" groups="uom.group_uom"/> <field name="price" string="Price"/> diff --git a/addons/purchase_requisition/views/product_views.xml b/addons/purchase_requisition/views/product_views.xml index b04fa213233..82f34339745 100644 --- a/addons/purchase_requisition/views/product_views.xml +++ b/addons/purchase_requisition/views/product_views.xml @@ -7,7 +7,7 @@ <field name="inherit_id" ref="product.product_supplierinfo_tree_view"/> <field name="arch" type="xml"> <xpath expr="//field[@name='name']" position="after"> - <field name="purchase_requisition_id"/> + <field name="purchase_requisition_id" readonly="1"/> </xpath> </field> </record> |
