Anpassung Angebot/Auftrag keine on-the-fly Anlage von Produkten

develop
Andreas Osim 2018-08-27 14:46:06 +02:00
parent 90291a1f42
commit 62e07dd6a5
1 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,18 @@
<xpath expr="//field[@name='order_line']/form//field[@name='name']" position="after">
<field name="intrastat_id"/>
</xpath>
<!--
<xpath expr="//field[@name='order_line']/form//field[@name='product_id']" position="replace">
<field name="product_id" options="{'no_create': True}"/>
</xpath>
-->
<xpath expr="//field[@name='order_line']/tree//field[@name='product_id']" position="replace">
<field name="product_id"
context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom, 'company_id': parent.company_id}"
attrs="{'readonly': [('product_updatable', '=', False)]}"
force_save="1"
options="{'no_create': True}"/>
</xpath>
<xpath expr="//field[@name='order_line']/form//field[@name='product_id']" position="after">
<field name="lot_id"/>
<field name="from_designbox"/>