When I try to override my res.partner write method it executes multiple time
How can I make sure it just does once or that I can only increment my field after it runs
@api.multi
def write(self, vals):
next_custnum = self.getnextcustno()
vals['cust_no'] = next_custnum
res = super(gjlcrm_partner, self).write(vals)
print("Execute Write")
print("Execute Write after")
self.addNextCustNo()
return res
Write and create both executes 2x on inheritance of red.partner ? How come ? Want to add changed items to a custom model but insert twice .. please help ?