0
2 答案
0
最佳答案
After further analysis, I noticed that Postgres was receiving a ROLLBACK query every time the sync_with_external method was being called. So the problem wasn´t the write() method.
Finally the culprit was a line of code at the end of the custom method:
raise exceptions.Warning(_("Customer synced successfully"))
I thought raising a Warning was innocent enough to be used just to display a success message to the user. Little I knew this was going to cost me several days of rethinking my life choices and almost falling into insanity.
I hope this helps anyone that may fall into this same issue.
Hello,
I think you need to change the field name.
Reason: Odoo already external id field in import and export data.
Thanks.
Already tried another field name, but same results