隐藏收料入库的批量调拨按钮
This commit is contained in:
@@ -157,7 +157,9 @@
|
||||
groups="sf_base.group_sf_stock_user"/>
|
||||
</xpath>
|
||||
<xpath expr="//header" position="inside">
|
||||
<button name="batch_stock_move" type='object' string="批量调拨" invisible="1"/>
|
||||
<button name="batch_stock_move" type='object' string="批量调拨"
|
||||
invisible="context.get('stock_type') in ('收料入库')"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='location_dest_id']" position="after">
|
||||
<field name="product_uom_qty_sp"/>
|
||||
@@ -165,6 +167,18 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_picking_type_kanban_inherit" model="ir.ui.view">
|
||||
<field name="name">stock.picking.type.kanban.view.inherit</field>
|
||||
<field name="model">stock.picking.type</field>
|
||||
<field name="inherit_id" ref="stock.stock_picking_type_kanban"/>
|
||||
<field name="arch" type="xml">
|
||||
<!-- 找到按钮所在位置并添加 context -->
|
||||
<xpath expr="//button[@name='get_action_picking_tree_ready']" position="attributes">
|
||||
<attribute name="context">{'stock_type': name}</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="sf_view_stock_move_operations" model="ir.ui.view">
|
||||
<field name="name">sf.stock.move.operations.form</field>
|
||||
<field name="model">stock.move</field>
|
||||
|
||||
Reference in New Issue
Block a user