Skip to Content
Menú
This question has been flagged
2 Respostes
5093 Vistes

Hi

I have set multi-company and created a demo company in odoo 9. Then I created a demo user who has privilege in demo company only.

Demo user can validate invoice.

But he can't click validate button of register payment

Odoo Warning - Validation Error

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]

Did I skipped anything ?

Plz help me.

Avatar
Descartar
Autor

In odoo-9.0c-20160806/openerp/addons/account/models/account_payment.py

The code execute until following line

self.invoice_ids.register_payment(counterpart_aml)

Have you any hints?

Best Answer

I had the same problem. I had to manually create an "Account Reconcile Sequence" record for the 2nd company... just duplicated and changed Company. From Technical -- sequences -- Account reconcile sequence.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 25
1524
1
de març 23
5245
1
d’oct. 22
11422
7
de gen. 22
18856
2
de març 21
5187