mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] Show stat even if 0. Filter agreement with partner
This commit is contained in:
committed by
Murtuza Saleh
parent
04a3fd574a
commit
65f27666de
@@ -52,7 +52,6 @@
|
|||||||
<xpath expr="//div[@name='button_box']" position="inside">
|
<xpath expr="//div[@name='button_box']" position="inside">
|
||||||
<button name="%(action_stock_picking_agreement_specific)d"
|
<button name="%(action_stock_picking_agreement_specific)d"
|
||||||
type="action"
|
type="action"
|
||||||
attrs="{'invisible': [('picking_count', '=', 0)]}"
|
|
||||||
class="oe_stat_button" icon="fa-truck">
|
class="oe_stat_button" icon="fa-truck">
|
||||||
<div class="o_field_widget o_stat_info">
|
<div class="o_field_widget o_stat_info">
|
||||||
<span class="o_stat_value">
|
<span class="o_stat_value">
|
||||||
@@ -64,7 +63,6 @@
|
|||||||
</button>
|
</button>
|
||||||
<button name="%(action_stock_move_agreement_specific)d"
|
<button name="%(action_stock_move_agreement_specific)d"
|
||||||
type="action"
|
type="action"
|
||||||
attrs="{'invisible': [('move_count', '=', 0)]}"
|
|
||||||
class="oe_stat_button" icon="fa-arrows-v">
|
class="oe_stat_button" icon="fa-arrows-v">
|
||||||
<div class="o_field_widget o_stat_info">
|
<div class="o_field_widget o_stat_info">
|
||||||
<span class="o_stat_value">
|
<span class="o_stat_value">
|
||||||
@@ -76,7 +74,6 @@
|
|||||||
</button>
|
</button>
|
||||||
<button name="%(action_stock_production_lot_agreement_specific)d"
|
<button name="%(action_stock_production_lot_agreement_specific)d"
|
||||||
type="action"
|
type="action"
|
||||||
attrs="{'invisible': [('lot_count', '=', 0)]}"
|
|
||||||
class="oe_stat_button" icon="fa-arrows">
|
class="oe_stat_button" icon="fa-arrows">
|
||||||
<div class="o_field_widget o_stat_info">
|
<div class="o_field_widget o_stat_info">
|
||||||
<span class="o_stat_value">
|
<span class="o_stat_value">
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
<field name="inherit_id" ref="stock.view_picking_form"/>
|
<field name="inherit_id" ref="stock.view_picking_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="origin" position="before">
|
<field name="origin" position="before">
|
||||||
<field name="agreement_id"/>
|
<field name="agreement_id"
|
||||||
|
domain="[('partner_id', '=', partner_id)]"/>
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user