19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:07 +01:00
parent ba20ce7443
commit 768b70e05e
2357 changed files with 1057103 additions and 712486 deletions

View file

@ -0,0 +1,17 @@
<odoo>
<record id="view_move_form_inherit_mrp_account" model="ir.ui.view">
<field name="name">account.move.inherit.mrp.account</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button class="oe_stat_button" name="action_view_wip_production" type="object" icon="fa-wrench" invisible="wip_production_count == 0" groups="mrp.group_mrp_user">
<div class="o_field_widget o_stat_info">
<span class="o_stat_value"><field name="wip_production_count"/></span>
<span class="o_stat_text">Manufacturing</span>
</div>
</button>
</xpath>
</field>
</record>
</odoo>

View file

@ -9,12 +9,12 @@
<div name="button_box" position="inside">
<button class="oe_stat_button" type="object" name="action_view_mrp_production"
groups="mrp.group_mrp_user"
icon="fa-wrench" attrs="{'invisible': [('production_count', '=', 0)]}">
icon="fa-wrench" invisible="production_count == 0">
<field string="Manufacturing Orders" name="production_count" widget="statinfo"/>
</button>
<button class="oe_stat_button" type="object" name="action_view_mrp_bom"
groups="mrp.group_mrp_user"
icon="fa-flask" attrs="{'invisible': [('bom_count', '=', 0)]}">
icon="fa-flask" invisible="bom_count == 0">
<field string="Bills of Materials" name="bom_count" widget="statinfo"/>
</button>
</div>

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="mrp_bom_form_view_inherited" model="ir.ui.view">
<field name="name">mrp.bom.form.inherited</field>
<field name="model">mrp.bom</field>
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='picking_type_id']" position="after">
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
</xpath>
</field>
</record>
</odoo>

View file

@ -1,15 +1,4 @@
<odoo>
<record id="view_production_tree_view_inherit" model="ir.ui.view">
<field name="name">mrp.production.tree.view.inherit</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_tree_view"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="analytic_account_id" groups="analytic.group_analytic_accounting" optional="hide"/>
</field>
</field>
</record>
<record id="mrp_production_form_view_inherited" model="ir.ui.view">
<field name="name">mrp.production.view.inherited</field>
<field name="model">mrp.production</field>
@ -19,22 +8,13 @@
<field name="show_valuation" invisible="1" groups="stock.group_stock_manager"/>
</xpath>
<xpath expr="//div[@name='button_box']" position="inside">
<t groups="stock.group_stock_manager">
<button string="Valuation" type="object"
name="action_view_stock_valuation_layers"
class="oe_stat_button" icon="fa-dollar" groups="base.group_no_one"
attrs="{'invisible': [('show_valuation', '=', False)]}" />
<button class="oe_stat_button" type="object"
name="action_view_analytic_account"
string="Analytic Account" icon="fa-bar-chart-o"
attrs="{'invisible': ['|', ('analytic_account_id', '=', False), ('state', 'in', ['draft', 'cancel'])]}"
groups="analytic.group_analytic_accounting"/>
</t>
</xpath>
<xpath expr="//page[@name='miscellaneous']//field[@name='date_deadline']" position="after">
<t groups="stock.group_stock_manager">
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
</t>
<button name="action_view_move_wip" type="object" class="oe_stat_button" icon="fa-book"
groups="account.group_account_user" invisible="wip_move_count == 0">
<div class="o_field_widget o_stat_info">
<span class="o_stat_value"><field name="wip_move_count"/></span>
<span class="o_stat_text">WIP</span>
</div>
</button>
</xpath>
</field>
</record>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="mrp_workcenter_view_inherit" model="ir.ui.view">
<field name="name">mrp.workcenter.form.inherit</field>
<field name="model">mrp.workcenter</field>
<field name="inherit_id" ref="mrp.mrp_workcenter_view"/>
<field name="arch" type="xml">
<group name="costing" position="inside">
<field name="expense_account_id"/>
</group>
</field>
</record>
</odoo>

View file

@ -13,7 +13,7 @@
<field name="valuation" invisible="1"/>
<button name="button_bom_cost"
string="Compute Price from BoM" type="object"
attrs="{'invisible': ['|', ('bom_count', '=', 0), '&amp;', ('valuation', '=', 'real_time'), ('cost_method', '=', 'fifo')]}"
invisible="bom_count == 0 or valuation == 'real_time' and cost_method == 'fifo'"
help="Compute the price of the product using products and operations of related bill of materials, for manufactured products only."
class="oe_link pt-0"/>
</t>
@ -34,7 +34,7 @@
<field name="valuation" invisible="1"/>
<button name="button_bom_cost"
string="Compute Price from BoM" type="object"
attrs="{'invisible': ['|', ('bom_count', '=', 0), '&amp;', ('valuation', '=', 'real_time'), ('cost_method', '=', 'fifo')]}"
invisible="bom_count == 0 or valuation == 'real_time' and cost_method == 'fifo'"
help="Compute the price of the product using products and operations of related bill of materials, for manufactured products only."
class="oe_link pt-0"
colspan="2"/>
@ -57,7 +57,7 @@
<button name="button_bom_cost"
string="Compute Price from BoM"
type="object"
attrs="{'invisible': ['|', ('bom_count', '=', 0), '&amp;', ('valuation', '=', 'real_time'), ('cost_method', '=', 'fifo')]}"
invisible="bom_count == 0 or valuation == 'real_time' and cost_method == 'fifo'"
help="Compute the price of the product using products and operations of related bill of materials, for manufactured products only."
class="oe_link pt-0"/>
</t>
@ -70,7 +70,7 @@
<field name="name">Compute Price from BoM</field>
<field name="model_id" ref="product.model_product_template"/>
<field name="binding_model_id" ref="product.model_product_template"/>
<field name="binding_view_types">list</field>
<field name="binding_view_types">list,kanban</field>
<field name="state">code</field>
<field name="code">
if records:
@ -82,7 +82,7 @@
<field name="name">Compute Price from BoM</field>
<field name="model_id" ref="product.model_product_product"/>
<field name="binding_model_id" ref="product.model_product_product"/>
<field name="binding_view_types">list</field>
<field name="binding_view_types">list,kanban</field>
<field name="state">code</field>
<field name="code">
if records: