對應的 Python 檔案

class *model_name*(models.Model):
    _name = *model_name*

    @api.model
    def _configure_sales(self):
        # Do the configuration here

每次安裝模組時,此功能都將執行。

注意:如果從 xml 中刪除 noupdate,函式也將在升級時執行。