域名获取修改
This commit is contained in:
@@ -19,9 +19,8 @@ class SFMessagePurchase(models.Model):
|
|||||||
return contents
|
return contents
|
||||||
|
|
||||||
def request_url(self, id):
|
def request_url(self, id):
|
||||||
we_config_info = self.env['we.config'].sudo().search([], limit=1)
|
url = self.env['ir.config_parameter'].get_param('web.base.url')
|
||||||
redirect_domain = self.env['we.app'].sudo().search([('id', '=', we_config_info.odoo_app_id.id)]).redirect_domain
|
full_url = 'https://%s/' % url
|
||||||
full_url = 'https://%s/' % redirect_domain
|
|
||||||
action_id = self.env.ref('purchase.purchase_form_action').id
|
action_id = self.env.ref('purchase.purchase_form_action').id
|
||||||
menu_id = self.env['ir.model.data'].search([('name', '=', 'module_website_payment')]).id
|
menu_id = self.env['ir.model.data'].search([('name', '=', 'module_website_payment')]).id
|
||||||
# 查询参数
|
# 查询参数
|
||||||
|
|||||||
@@ -52,9 +52,8 @@ class SFMessageStockPicking(models.Model):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
def request_url(self):
|
def request_url(self):
|
||||||
we_config_info = self.env['we.config'].sudo().search([], limit=1)
|
url = self.env['ir.config_parameter'].get_param('web.base.url')
|
||||||
redirect_domain = self.env['we.app'].sudo().search([('id', '=', we_config_info.odoo_app_id.id)]).redirect_domain
|
full_url = 'https://%s/' % url
|
||||||
full_url = 'https://%s/' % redirect_domain
|
|
||||||
action_id = self.env.ref('stock.stock_picking_type_action').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
|
||||||
# 查询参数
|
# 查询参数
|
||||||
|
|||||||
@@ -62,9 +62,8 @@ class SFMessageWork(models.Model):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
def request_url(self):
|
def request_url(self):
|
||||||
we_config_info = self.env['we.config'].sudo().search([], limit=1)
|
url = self.env['ir.config_parameter'].get_param('web.base.url')
|
||||||
redirect_domain = self.env['we.app'].sudo().search([('id', '=', we_config_info.odoo_app_id.id)]).redirect_domain
|
full_url = 'https://%s/' % url
|
||||||
full_url = 'https://%s/' % redirect_domain
|
|
||||||
action_id = self.env.ref('sf_manufacturing.mrp_workorder_action_tablet').id
|
action_id = self.env.ref('sf_manufacturing.mrp_workorder_action_tablet').id
|
||||||
menu_id = self.env['ir.model.data'].search([('name', '=', 'module_stock_dropshipping')]).id
|
menu_id = self.env['ir.model.data'].search([('name', '=', 'module_stock_dropshipping')]).id
|
||||||
# 查询参数
|
# 查询参数
|
||||||
|
|||||||
Reference in New Issue
Block a user