发送消息

This commit is contained in:
guanhuan
2024-12-20 16:12:30 +08:00
parent c4b02f7717
commit 5a06811732
4 changed files with 3 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ class SFMessageMrpProduction(models.Model):
def get_request_url(self):
url = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
action_id = self.env.ref('sf_message.mrp_workorder_issued_action').id
menu_id = self.env['ir.model.data'].sudo().search([('name', '=', 'module_stock_dropshipping')]).id
menu_id = self.env.ref('mrp.menu_mrp_root').id
active_id = self.env['mrp.workcenter'].sudo().search([('name', '=', '工件装夹中心')]).id
# 查询参数
params = {'menu_id': menu_id, 'action': action_id, 'model': 'mrp.workorder',