mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 06:52:06 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -7,7 +7,7 @@
|
|||
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='action_view_mrp_production_childs']" position="before">
|
||||
<button class="oe_stat_button" name="action_view_sale_orders" type="object" icon="fa-dollar" attrs="{'invisible': [('sale_order_count', '=', 0)]}" groups="sales_team.group_sale_salesman">
|
||||
<button class="oe_stat_button" name="action_view_sale_orders" type="object" icon="fa-dollar" invisible="sale_order_count == 0" groups="sales_team.group_sale_salesman">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value"><field name="sale_order_count"/></span>
|
||||
<span class="o_stat_text">Sale</span>
|
||||
|
|
|
|||
|
|
@ -1,18 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo><data>
|
||||
<odoo>
|
||||
|
||||
<record id="sale_order_form_mrp" model="ir.ui.view">
|
||||
<field name="name">sale.order.inherited.form.mrp</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button class="oe_stat_button" name="action_view_mrp_production" type="object" icon="fa-wrench" attrs="{'invisible': [('mrp_production_count', '=', 0)]}" groups="mrp.group_mrp_user">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value"><field name="mrp_production_count"/></span>
|
||||
<span class="o_stat_text">Manufacturing</span>
|
||||
</div>
|
||||
<div name="button_box" position="inside">
|
||||
<button
|
||||
name="action_view_mrp_production"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-wrench"
|
||||
invisible="mrp_production_count == 0"
|
||||
groups="mrp.group_mrp_user">
|
||||
<field name="mrp_production_count" widget="statinfo" string="Manufacturing"/>
|
||||
</button>
|
||||
</xpath>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</data></odoo>
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -20,10 +20,6 @@
|
|||
<span class="text-muted"
|
||||
t-field="mo.date_finished"
|
||||
t-options="{'date_only': True}"/>
|
||||
<span t-if="mo.state in ['draft', 'confirmed', 'progress', 'to_close']"
|
||||
class="text-muted"
|
||||
t-field="mo.date_planned_finished"
|
||||
t-options="{'date_only': True}"/>
|
||||
</div>
|
||||
</div>
|
||||
<span t-if="mo.state in ['to_close', 'done']"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue