消息通知url修改
This commit is contained in:
@@ -16,7 +16,6 @@ class SFMessageStockPicking(models.Model):
|
|||||||
obj.add_queue('调拨入库')
|
obj.add_queue('调拨入库')
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
@api.depends('move_type', 'immediate_transfer', 'move_ids.state', 'move_ids.picking_id')
|
@api.depends('move_type', 'immediate_transfer', 'move_ids.state', 'move_ids.picking_id')
|
||||||
def _compute_state(self):
|
def _compute_state(self):
|
||||||
super(SFMessageStockPicking, self)._compute_state()
|
super(SFMessageStockPicking, self)._compute_state()
|
||||||
@@ -56,11 +55,11 @@ class SFMessageStockPicking(models.Model):
|
|||||||
we_config_info = self.env['we.config'].sudo().search([], limit=1)
|
we_config_info = self.env['we.config'].sudo().search([], limit=1)
|
||||||
redirect_domain = self.env['we.app'].sudo().search([('id', '=', we_config_info.odoo_app_id.id)]).redirect_domain
|
redirect_domain = self.env['we.app'].sudo().search([('id', '=', we_config_info.odoo_app_id.id)]).redirect_domain
|
||||||
full_url = 'https://%s/' % redirect_domain
|
full_url = 'https://%s/' % redirect_domain
|
||||||
action_id = self.env.ref('stock.action_picking_tree_ready').id
|
action_id = self.env.ref('stock.stock_picking_type_action').id
|
||||||
menu_id = self.env['ir.model.data'].search([('name', '=', 'module_theme_treehouse')]).id
|
menu_id = self.env['ir.model.data'].search([('name', '=', 'module_theme_treehouse')]).id
|
||||||
# 查询参数
|
# 查询参数
|
||||||
params = {'menu_id': menu_id, 'action': action_id, 'model': 'stock.picking',
|
params = {'menu_id': menu_id, 'action': action_id, 'model': 'stock.picking',
|
||||||
'view_type': 'list'}
|
'view_type': 'kanban'}
|
||||||
# 拼接查询参数
|
# 拼接查询参数
|
||||||
query_string = urlencode(params)
|
query_string = urlencode(params)
|
||||||
# 拼接URL
|
# 拼接URL
|
||||||
|
|||||||
Reference in New Issue
Block a user