Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/commercially_launched
This commit is contained in:
@@ -412,7 +412,13 @@ class ImportComplexModelWizard(models.TransientModel):
|
|||||||
# )
|
# )
|
||||||
|
|
||||||
def download_excel_template(self):
|
def download_excel_template(self):
|
||||||
excel_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url') + '/quality_control/static/src/binary/出厂检验报告上传模版.xlsx'
|
base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url') + '/quality_control/static/src/binary/出厂检验报告上传模版.xlsx'
|
||||||
|
|
||||||
|
# 只有当原始 URL 使用 http 时才替换为 https
|
||||||
|
if base_url.startswith("http://"):
|
||||||
|
excel_url = base_url.replace("http://", "https://")
|
||||||
|
else:
|
||||||
|
excel_url = base_url
|
||||||
value = dict(
|
value = dict(
|
||||||
type='ir.actions.act_url',
|
type='ir.actions.act_url',
|
||||||
target='self',
|
target='self',
|
||||||
|
|||||||
Reference in New Issue
Block a user