Hello, I have a question for imports csv with Odoo. I have a function who to call a webservices according to fields in my model. When I import a csv file, this function is called. However, I don't want this function is called. How to do ? PS : This function for webservices is called when I create or when I modify a record.
Code :
# Appel cette méthode quand on créé un nouvel enregistrement
@api.model def create(self, vals):
record = super(ResPartnerSchool, self).create(vals)
record.changed_half_pension()
return record
# Appel cette méthode quand on modifie un enregistrement
@api.multi def write(self, vals):
result = super(ResPartnerSchool, self).write(vals)
self.changed_half_pension()
return result
Thanks