changes
This commit is contained in:
38
fusion_inventory/views/product_attribute_views.xml
Normal file
38
fusion_inventory/views/product_attribute_views.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- Add Extra Cost + Price Impact to PTAV list view (Configure Variants grid) -->
|
||||
<record id="view_ptav_list_inherit_fi" model="ir.ui.view">
|
||||
<field name="name">product.template.attribute.value.list.fi</field>
|
||||
<field name="model">product.template.attribute.value</field>
|
||||
<field name="inherit_id" ref="product.product_template_attribute_value_view_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='price_extra']" position="after">
|
||||
<field name="x_fi_extra_cost" widget="monetary"
|
||||
string="Extra Cost"
|
||||
options="{'field_digits': True}"/>
|
||||
<field name="x_fi_extra_price_impact" widget="monetary"
|
||||
string="+ Price (Cost)"
|
||||
readonly="1"
|
||||
options="{'field_digits': True}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Add Extra Cost + Price Impact to PTAV form view -->
|
||||
<record id="view_ptav_form_inherit_fi" model="ir.ui.view">
|
||||
<field name="name">product.template.attribute.value.form.fi</field>
|
||||
<field name="model">product.template.attribute.value</field>
|
||||
<field name="inherit_id" ref="product.product_template_attribute_value_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='price_extra']" position="after">
|
||||
<field name="x_fi_extra_cost" widget="monetary"
|
||||
options="{'field_digits': True}"/>
|
||||
<field name="x_fi_extra_price_impact" widget="monetary"
|
||||
readonly="1"
|
||||
options="{'field_digits': True}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user