In invoice when i'm trying to register a payment this error message shows up :
The operation cannot be completed, probably due to the following:
deletion: you may be trying to delete a record while other records still reference it
creation/update: a mandatory field is not correctly set [object with reference: name - name]
I cheked the access rights but nothing, the error message still appears.
- Note1: I am able to register payment if I use admin user.
- Note2: Not sure if it could be releated with having multicompany enabled.
EDIT1:
Checking Odoo server logs I found this:
bad query: INSERT INTO "account_full_reconcile" ("id", "name", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('account_full_reconcile_id_seq'), NULL, 7, 7, (now() at time zone 'UTC'), (now() at time zone 'UTC')) RETURNING id
EDIT2:
In the previous bad query error can be seen that problem is that "name" field is Null.Label for this field is "Number".
So checking "account_full_reconcile" table in Odoo database, in the column "name" I have two non-consecutive values: "A1" and "A4". Also in column "id" there are non-consecutive id: "19" and "30". Not sure if It's related with the error.