| 1 | <odoo> |
| 2 | <record id="stock_avco_report_view_list" model="ir.ui.view"> |
| 3 | <field name="name">stock.avco.report.view.list</field> |
| 4 | <field name="model">stock.avco.report</field> |
| 5 | <field name="arch" type="xml"> |
| 6 | <list> |
| 7 | <field name="currency_id" column_invisible="1"/> |
| 8 | <field name="reference"/> |
| 9 | <field name="product_id"/> |
| 10 | <field name="date"/> |
| 11 | <field name="description"/> |
| 12 | <field name="quantity" column_invisible="context.get('cost_method') == 'standard'"/> |
| 13 | <field name="added_value" widget="monetary" options="{'currency_field': 'currency_id'}" column_invisible="context.get('cost_method') == 'standard'"/> |
| 14 | <field name="value" string="Unit Cost" widget="monetary" options="{'currency_field': 'currency_id'}" column_invisible="context.get('cost_method') != 'standard'"/> |
| 15 | <field name="total_value" widget="monetary" options="{'currency_field': 'currency_id'}" column_invisible="context.get('cost_method') == 'standard'"/> |
| 16 | <field name="total_quantity" column_invisible="context.get('cost_method') == 'standard'"/> |
| 17 | <field name="avco_value" string="Unit Cost" widget="monetary" options="{'currency_field': 'currency_id'}" column_invisible="context.get('cost_method') == 'standard'"/> |
| 18 | <field name="justification" column_invisible="context.get('cost_method') != 'average'" optional="hide"/> |
| 19 | </list> |
| 20 | </field> |
| 21 | </record> |
| 22 | |
| 23 | <record id="stock_avco_report_action" model="ir.actions.act_window"> |
| 24 | <field name="name">Unit Cost History</field> |
| 25 | <field name="res_model">stock.avco.report</field> |
| 26 | <field name="view_mode">list</field> |
| 27 | <field name="domain">[("product_id", "=", active_id)]</field> |
| 28 | </record> |
| 29 | </odoo> |