这个V8代码。
class project_fill_assign(models.Model):
_inherit='project.task'
@api.onchange('project_id')
@api.constrains('project_id')
def _assing_of_persons(self):
logg = logging.getLogger(__name__)
logg.info('Executed')
这个V7代码。
_columns = { 'project_id':fields.many2one('project.project','Project',ondelete ='set null',select = True,track_visibility ='onchange',change_default = True), }