删除库存部分代码
This commit is contained in:
@@ -53,23 +53,16 @@
|
|||||||
<field name="model">sf.shelf.location</field>
|
<field name="model">sf.shelf.location</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Shelf Location">
|
<form string="Shelf Location">
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<field name="location_status" invisible="1"/>
|
<field name="location_status" invisible="1"/>
|
||||||
<button string="生成货位" name="create_location" type="object" class="oe_highlight"
|
<button string="生成货位" name="create_location" type="object" class="oe_highlight"
|
||||||
attrs="{'invisible': [('hide_shelf', '=', False)]}"/>
|
attrs="{'invisible': [('hide_shelf', '=', False)]}"/>
|
||||||
<button string="禁用货位" name="action_location_status_disable" type="object" class="oe_highlight"
|
<button string="禁用货位" name="action_location_status_disable" type="object"
|
||||||
|
class="oe_highlight"
|
||||||
attrs="{'invisible': ['|', ('hide_shelf', '=', True), ('location_status', '!=', '空闲')]}"/>
|
attrs="{'invisible': ['|', ('hide_shelf', '=', True), ('location_status', '!=', '空闲')]}"/>
|
||||||
<button string="启用货位" name="action_location_status_enable" type="object" class="oe_highlight"
|
<button string="启用货位" name="action_location_status_enable" type="object"
|
||||||
|
class="oe_highlight"
|
||||||
attrs="{'invisible': ['|', ('hide_shelf', '=', True), ('location_status', '!=', '禁用')]}"/>
|
attrs="{'invisible': ['|', ('hide_shelf', '=', True), ('location_status', '!=', '禁用')]}"/>
|
||||||
|
|
||||||
<!-- <button name="%(shelf_location_kanban_action_id)d"-->
|
|
||||||
<!-- type="action"-->
|
|
||||||
<!-- class="oe_stat_button"-->
|
|
||||||
<!-- context="{'search_default_maintenance_equipment_id': [active_id]}"-->
|
|
||||||
<!-- icon="fa-wrench">-->
|
|
||||||
<!-- <field string="目标位置调拨" name="destination_move_ids" widget="statinfo"/>-->
|
|
||||||
<!-- </button>-->
|
|
||||||
</header>
|
</header>
|
||||||
<sheet>
|
<sheet>
|
||||||
<div class="oe_button_box" name="button_box">
|
<div class="oe_button_box" name="button_box">
|
||||||
@@ -78,15 +71,13 @@
|
|||||||
class="oe_stat_button"
|
class="oe_stat_button"
|
||||||
context="{'search_default_current_location_id': [active_id]}"
|
context="{'search_default_current_location_id': [active_id]}"
|
||||||
icon="fa-exchange">
|
icon="fa-exchange">
|
||||||
|
|
||||||
<field string="当前位置历史" name="current_move_ids" widget="statinfo"/>
|
<field string="当前位置历史" name="current_move_ids" widget="statinfo"/>
|
||||||
</button>
|
</button>
|
||||||
<button name="%(stock_move_line_action1)d"
|
<button name="%(stock_move_line_action1)d"
|
||||||
type="action"
|
type="action"
|
||||||
class="oe_stat_button"
|
class="oe_stat_button"
|
||||||
context="{'search_default_destination_location_id': [active_id]}"
|
context="{'search_default_destination_location_id': [active_id]}"
|
||||||
icon="fa-exchange">
|
icon="fa-exchange">
|
||||||
|
|
||||||
<field string="目标位置历史" name="destination_move_ids" widget="statinfo"/>
|
<field string="目标位置历史" name="destination_move_ids" widget="statinfo"/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user