Añade botones de acceso al inventario en depósito en res.partner
This commit is contained in:
parent
1dc955ac88
commit
10bfdb5a49
1 changed files with 41 additions and 5 deletions
|
@ -25,15 +25,51 @@
|
|||
<page name="internal_notes" position="after">
|
||||
<page name="depositos" string="Depósitos">
|
||||
<div clas="o_horizontal_separator"><h2>Depósitos</h2></div>
|
||||
<group class="o_group o_inner_group o_group_col_6">
|
||||
<group class="o_group o_inner_group o_group_col_6">
|
||||
<group>
|
||||
<field name="deposit_sale_accept"/>
|
||||
<field name="deposit_sale_location_id" attrs="{'invisible': [('deposit_sale_accept', '!=', True)]}" readonly="1" />
|
||||
<field name="deposit_sale_last_liquidation_date" attrs="{'invisible': [('deposit_sale_accept', '!=', True)]}" readonly="1" />
|
||||
</group>
|
||||
<group attrs="{'invisible': [('deposit_sale_accept', '!=', True)]}">
|
||||
<field name="deposit_sale_location_id" readonly="1" />
|
||||
<field name="deposit_sale_last_liquidation_date" readonly="1" />
|
||||
<button string="Current Stock"
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
name="%(stock.location_open_quants)d"
|
||||
type="action"
|
||||
context="{'location_id': deposit_sale_location_id}"
|
||||
groups="stock.group_stock_manager"
|
||||
/>
|
||||
<button string="Products"
|
||||
class="oe_stat_button"
|
||||
icon="fa-filter" name="%(stock.act_product_location_open)d" type="action"
|
||||
context="{'location_id': deposit_sale_location_id}"
|
||||
groups="stock.group_stock_manager"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
<group class="o_group o_inner_group o_group_col_6">
|
||||
<group>
|
||||
<field name="deposit_buy_accept"/>
|
||||
<field name="deposit_buy_location_id" attrs="{'invisible': [('deposit_buy_accept', '!=', True)]}" readonly="1" />
|
||||
<field name="deposit_buy_last_liquidation_date" attrs="{'invisible': [('deposit_buy_accept', '!=', True)]}" readonly="1" />
|
||||
</group>
|
||||
<group attrs="{'invisible': [('deposit_buy_accept', '!=', True)]}">
|
||||
<field name="deposit_buy_location_id" readonly="1" />
|
||||
<field name="deposit_buy_last_liquidation_date" readonly="1" />
|
||||
<button string="Current Stock"
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
name="%(stock.location_open_quants)d"
|
||||
type="action"
|
||||
context="{'location_id': deposit_buy_location_id}"
|
||||
groups="stock.group_stock_manager"
|
||||
/>
|
||||
<button string="Products"
|
||||
class="oe_stat_button"
|
||||
icon="fa-filter" name="%(stock.act_product_location_open)d" type="action"
|
||||
context="{'location_id': deposit_buy_location_id}"
|
||||
groups="stock.group_stock_manager"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</page>
|
||||
|
|
Loading…
Add table
Reference in a new issue