对应的 Python 文件
class *model_name*(models.Model):
    _name = *model_name*
    @api.model
    def _configure_sales(self):
        # Do the configuration here
每次安装模块时,此功能都将运行。
注意:如果从 xml 中删除 noupdate,函数也将在升级时运行。
class *model_name*(models.Model):
    _name = *model_name*
    @api.model
    def _configure_sales(self):
        # Do the configuration here
每次安装模块时,此功能都将运行。
注意:如果从 xml 中删除 noupdate,函数也将在升级时运行。