| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="product_value_form_view" model="ir.ui.view"> |
| 4 |
<field name="name">product.value.form.view</field> |
| 5 |
<field name="model">product.value</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<form string="Adjust Valuation"> |
| 8 |
<sheet> |
| 9 |
<field name="move_id" invisible="1"/> |
| 10 |
<field name="currency_id" invisible="1"/> |
| 11 |
<group> |
| 12 |
<group> |
| 13 |
<label for="current_value" class="oe_inline"/> |
| 14 |
<div class="oe_inline"> |
| 15 |
<field name="current_value" style="width: 100px;" widget="monetary" options="{'currency_field': 'currency_id', 'field_digits': True}"/> |
| 16 |
<span><field name="current_value_details" class="oe_inline me-5"/></span> |
| 17 |
</div> |
| 18 |
<field name="value" string="New Value" widget="monetary" options="{'currency_field': 'currency_id', 'field_digits': True}"/> |
| 19 |
<field name="description"/> |
| 20 |
</group> |
| 21 |
<group> |
| 22 |
<field class="alert alert-info" role="alert" name="current_value_description" nolabel="1" colspan="2"/> |
| 23 |
<field class="alert alert-info" role="alert" name="computed_value_description" nolabel="1" colspan="2" invisible="not computed_value_description"/> |
| 24 |
</group> |
| 25 |
</group> |
| 26 |
</sheet> |
| 27 |
</form> |
| 28 |
</field> |
| 29 |
</record> |
| 30 |
|
| 31 |
<record id="product_value_action" model="ir.actions.act_window"> |
| 32 |
<field name="name">Adjust Valuation</field> |
| 33 |
<field name="res_model">product.value</field> |
| 34 |
<field name="view_mode">form</field> |
| 35 |
</record> |
| 36 |
</odoo> |