def set_values(self):
super(ResConfigSettings, self).set_values()
self.env['ir.config_parameter'].sudo().set_param('invoicefilepath', self.invoicefilepath)
print(dir(exceptions))
raise exceptions.warnings("错误, 地址无权限.")
['AccessDenied', 'AccessError', 'CacheMiss', 'MissingError', 'RedirectWarning', 'UserError', 'ValidationError', 'Warning', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'except_orm', 'warnings']
标签:__,set,invoicefilepath,warnings,self,传递信息,前台,odoo From: https://www.cnblogs.com/pythonClub/p/17419192.html