39 lines
1.8 KiB
XML
39 lines
1.8 KiB
XML
<?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>
|