Merge branch refs/heads/develop into refs/heads/release/release_2.1
This commit is contained in:
@@ -418,19 +418,19 @@ class ShelfLocation(models.Model):
|
||||
host = printer_config.printer_id.ip_address
|
||||
port = printer_config.printer_id.port
|
||||
self.print_qr_code(barcode, host, port)
|
||||
# 获取当前wizard的视图ID或其他标识信息
|
||||
view_id = self.env.context.get('view_id')
|
||||
# 构造返回wizard页面的action字典
|
||||
action = {
|
||||
'type': 'ir.actions.act_window',
|
||||
'name': '返回 Wizard',
|
||||
'res_model': 'sf.shelf', # 替换为你的wizard模型名称
|
||||
'view_mode': 'form',
|
||||
'view_id': view_id, # 如果需要基于特定的视图返回
|
||||
'target': 'new', # 如果需要在新的窗口或标签页打开
|
||||
'res_id': self.shelf_id, # 如果你想要返回当前记录的视图
|
||||
}
|
||||
return action
|
||||
# # 获取当前wizard的视图ID或其他标识信息
|
||||
# view_id = self.env.context.get('view_id')
|
||||
# # 构造返回wizard页面的action字典
|
||||
# action = {
|
||||
# 'type': 'ir.actions.act_window',
|
||||
# 'name': '返回 Wizard',
|
||||
# 'res_model': 'sf.shelf', # 替换为你的wizard模型名称
|
||||
# 'view_mode': 'form',
|
||||
# 'view_id': view_id, # 如果需要基于特定的视图返回
|
||||
# 'target': 'new', # 如果需要在新的窗口或标签页打开
|
||||
# 'res_id': self.shelf_id, # 如果你想要返回当前记录的视图
|
||||
# }
|
||||
# return action
|
||||
|
||||
# # 仓库类别(selection:库区、库位、货位)
|
||||
# location_type = fields.Selection([
|
||||
|
||||
@@ -102,11 +102,11 @@
|
||||
attrs="{'invisible': ['|', '|', '|', ('picking_type_code', '=', 'incoming'), ('immediate_transfer', '=', True), '&', ('state', '!=', 'assigned'), ('move_type', '!=', 'one'), '&', ('state', 'not in', ('assigned', 'confirmed')), ('move_type', '=', 'one')]}"
|
||||
data-hotkey="w"/>
|
||||
</xpath>
|
||||
<xpath expr="//form//header//button[@name='button_scrap']" position="replace">
|
||||
<button name="button_scrap" groups="sf_base.group_sf_stock_user" type="object" string="报废"
|
||||
attrs="{'invisible': ['|', '&', ('picking_type_code', '=', 'incoming'), ('state', '!=', 'done'), '&', ('picking_type_code', '=', 'outgoing'), ('state', '=', 'done')]}"
|
||||
data-hotkey="y"/>
|
||||
</xpath>
|
||||
<!-- <xpath expr="//form//header//button[@name='button_scrap']" position="replace">-->
|
||||
<!-- <button name="button_scrap" groups="sf_base.group_sf_stock_user" type="object" string="报废"-->
|
||||
<!-- attrs="{'invisible': ['|', '&', ('picking_type_code', '=', 'incoming'), ('state', '!=', 'done'), '&', ('picking_type_code', '=', 'outgoing'), ('state', '=', 'done')]}"-->
|
||||
<!-- data-hotkey="y"/>-->
|
||||
<!-- </xpath>-->
|
||||
<xpath expr="//form//header//button[@name='action_assign']" position="replace">
|
||||
<button name="action_assign" attrs="{'invisible': [('show_check_availability', '=', False)]}"
|
||||
string="检查可用量" type="object" class="oe_highlight"
|
||||
|
||||
Reference in New Issue
Block a user