[FIX] product,purchase,mrp_subcontracting: adjust product & supplier info ui

Within Purchase tab:
- Make Quantity hidden by default.
- Move Currency right after Price.
Move Purchase Description to the right of Vendor Bills.

closes odoo/odoo#102702

Task: 3004014
X-original-commit: b3e78b5a8f825650123004a8b8677aaacfe6b43e
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Jean-François Aubert <ajf@odoo.com>
This commit is contained in:
JF Aubert
2022-10-10 09:48:03 +02:00
parent 2d6a35a0ac
commit 28a2c49d42
3 changed files with 7 additions and 10 deletions
@@ -6,7 +6,7 @@
<field name="inherit_id" ref="product.product_supplierinfo_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="is_subcontractor" readonly="1"/>
<field name="is_subcontractor" readonly="1" optional="hide"/>
</xpath>
</field>
</record>
@@ -107,13 +107,13 @@
invisible="context.get('visible_product_tmpl_id', True)"/>
<field name="product_name" optional="hide"/>
<field name="product_code" optional="hide"/>
<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" readonly="1" groups="base.group_multi_company"/>
<field name="min_qty"/>
<field name="product_uom" groups="uom.group_uom"/>
<field name="min_qty" optional="hide"/>
<field name="product_uom" groups="uom.group_uom" optional="hide"/>
<field name="price" string="Price"/>
<field name="currency_id" groups="base.group_multi_currency"/>
<field name="delay" optional="hide"/>
</tree>
</field>
+3 -6
View File
@@ -19,9 +19,6 @@
<attribute name="readonly">0</attribute>
<attribute name="optional">hide</attribute>
</xpath>
<xpath expr="//field[@name='min_qty']" position="attributes">
<attribute name="optional">show</attribute>
</xpath>
<xpath expr="//field[@name='partner_id']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
@@ -53,8 +50,8 @@
<group name="bill" position="inside">
<field name="purchase_method" widget="radio"/>
</group>
<page name="purchase" position="inside">
<group>
<group name="purchase" position="inside">
<group col="1">
<group string="Purchase Description">
<field name="description_purchase" nolabel="1"
placeholder="This note is added to purchase orders."/>
@@ -65,7 +62,7 @@
attrs="{'required':[('purchase_line_warn','!=','no-message')],'readonly':[('purchase_line_warn','=','no-message')], 'invisible':[('purchase_line_warn','=','no-message')]}"/>
</group>
</group>
</page>
</group>
</field>
</record>