92 lines
4.6 KiB
XML
92 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="mrp_bom_form_view_cost" model="ir.ui.view">
|
|
<field name="name">mrp.bom.form.cost.view</field>
|
|
<field name="model">mrp.bom</field>
|
|
<field name="inherit_id" ref="mrp.mrp_bom_form_view" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page//field[@name='product_uom_id']" position="after">
|
|
<field name="unit_cost"/>
|
|
<field name="total_price" sum="Total"/>
|
|
</xpath>
|
|
<xpath expr="//list" position="attributes">
|
|
<attribute name="decoration-info">is_service_product</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Inherit sale invoice Form View for freight_charges field addition -->
|
|
<record id="sale_order_form_inherit" model="ir.ui.view">
|
|
<field name="name">sale.order.form.inherit</field>
|
|
<field name="model">sale.order</field>
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='order_line']/list//field[@name='price_unit']" position="replace">
|
|
<field name="price_unit" string="Rate(bags)"/>
|
|
<!-- <field name="price_unit_kg" string="Rate(kg)"/>-->
|
|
<field name="purchase_price" groups="base.group_user" force_save="1" readonly="1"/>
|
|
<field name="bag_weight" groups="base.group_user" sum="Total"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='tax_totals']" position="before">
|
|
<div class="d-flex float-end" colspan="2" groups="base.group_user">
|
|
<label for="freight_charges"/>
|
|
<div>
|
|
<field name="freight_charges" class="oe_inline" force_save="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex float-end" colspan="2" groups="base.group_user">
|
|
<label for="total_production_cost"/>
|
|
<div>
|
|
<field name="total_production_cost" class="oe_inline" force_save="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- <record id="account_move_form_inherit" model="ir.ui.view">-->
|
|
<!-- <field name="name">account.move.form.inherit</field>-->
|
|
<!-- <field name="model">account.move</field>-->
|
|
<!-- <field name="inherit_id" ref="account.view_move_form"/>-->
|
|
<!-- <field name="arch" type="xml">-->
|
|
<!-- <xpath expr="//field[@name='tax_totals']" position="before">-->
|
|
<!-- <field name="freight_charges" force_save="1" string="Freight" widget="monetary" options="{'currency_field': 'currency_id'}"/>-->
|
|
<!-- </xpath>-->
|
|
|
|
<!-- </field>-->
|
|
<!-- </record>-->
|
|
|
|
|
|
<record id="mrp_production_form_view_decoration" model="ir.ui.view">
|
|
<field name="name">mrp.production.inherited.form.decoration</field>
|
|
<field name="model">mrp.production</field>
|
|
<field name="priority">64</field>
|
|
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page//list" position="attributes">
|
|
<attribute name="decoration-info">is_service_product</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="stock_move_line_action_consumption" model="ir.actions.act_window">
|
|
<field name="name">Stock Consumption History</field>
|
|
<field name="res_model">stock.move.line</field>
|
|
<field name="view_mode">list,form</field>
|
|
<field name="view_id" ref="stock.view_move_line_tree"/>
|
|
<field name="domain">[('state','=','done'),('location_dest_id.usage','=','production')]</field>
|
|
<field name="context">{'search_default_groupby_product_id': 1, 'create': 0}</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_mrp_stock_consumption"
|
|
action="stock_move_line_action_consumption"
|
|
parent="mrp.menu_mrp_root"
|
|
name="Consumption"
|
|
sequence="13"/>
|
|
<menuitem id="menu_mrp_bom_form_1"
|
|
action="mrp.mrp_bom_form_action"
|
|
parent="mrp.menu_mrp_root"
|
|
sequence="11"/>
|
|
</odoo>
|
|
|