Partial port of mrp_average_cost (I just maked it installable)
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016 Akretion (http://www.akretion.com/)
|
||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
The licence is in the file __openerp__.py
|
||||
Copyright (C) 2016-2019 Akretion (http://www.akretion.com/)
|
||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
<odoo>
|
||||
|
||||
|
||||
<record id="mrp_bom_form_view" model="ir.ui.view">
|
||||
<field name="name">mrp_average_cost.mrp.bom.form</field>
|
||||
<field name="model">mrp.bom</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@groups='mrp.group_mrp_routings']" position="after">
|
||||
<field name="picking_type_id" position="after">
|
||||
<field name="total_components_cost" widget="monetary"
|
||||
options="{'currency_field': 'company_currency_id'}"/>
|
||||
<field name="total_labour_cost" widget="monetary"
|
||||
@@ -29,15 +29,15 @@
|
||||
string="Update Cost Price of Product" class="oe_link"/>
|
||||
</div>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
</xpath>
|
||||
<page string="Components" position="after">
|
||||
</field>
|
||||
<notebook position="inside">
|
||||
<page string="Labour" name="labour_lines">
|
||||
<group name="labour_lines_grp">
|
||||
<field name="labour_line_ids" nolabel="1"/>
|
||||
</group>
|
||||
</page>
|
||||
</page>
|
||||
<xpath expr="//field[@name='bom_lines']/tree/field[@name='product_uom']" position="after">
|
||||
</notebook>
|
||||
<xpath expr="//field[@name='bom_line_ids']/tree/field[@name='product_uom_id']" position="after">
|
||||
<field name="standard_price"/>
|
||||
</xpath>
|
||||
</field>
|
||||
@@ -60,13 +60,12 @@
|
||||
<field name="name">mrp_bom_labour_line.form</field>
|
||||
<field name="model">mrp.bom.labour.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Labour Line" version="7.0">
|
||||
<form string="Labour Line">
|
||||
<group name="main">
|
||||
<field name="bom_id" invisible="not context.get('mrp_bom_labour_line_main_view')"/>
|
||||
<label for="labour_time"/>
|
||||
<div name="labour_time">
|
||||
<field name="labour_time" class="oe_inline"/>
|
||||
<label string="hours"/>
|
||||
<field name="labour_time" class="oe_inline"/> hours
|
||||
</div>
|
||||
<field name="labour_cost_profile_id"/>
|
||||
<field name="note"/>
|
||||
@@ -81,7 +80,7 @@
|
||||
<field name="name">labour_cost_profile_form</field>
|
||||
<field name="model">labour.cost.profile</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Labour Cost Profile" version="7.0">
|
||||
<form string="Labour Cost Profile">
|
||||
<group name="main">
|
||||
<field name="name"/>
|
||||
<field name="hour_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
@@ -111,14 +110,14 @@
|
||||
</record>
|
||||
|
||||
<menuitem id="labour_cost_profile_menu" action="labour_cost_profile_action"
|
||||
parent="mrp.menu_mrp_configuration"/>
|
||||
parent="mrp.menu_mrp_configuration" sequence="200"/>
|
||||
|
||||
<record id="mrp_production_form_view" model="ir.ui.view">
|
||||
<field name="name">mrp_average_cost.mrp_production_form</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
||||
<field name="model">mrp.production</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="date_finished" position="after">
|
||||
<field name="availability" position="after">
|
||||
<field name="unit_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}" attrs="{'invisible': [('state', '!=', 'done')]}"/>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
</field>
|
||||
@@ -126,5 +125,4 @@
|
||||
</record>
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user