diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2019-08-16 11:37:39 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2019-08-16 12:50:07 +0000 |
| commit | 5e268d889306dc6ea83011b77a64844bf0451e77 (patch) | |
| tree | c449158c1bc6df053238944a3314493d9608682e /doc/reference/javascript_reference.rst | |
| parent | c2bcd15998df89989ba332690c04ca995f54cbc3 (diff) | |
[FIX] account: avoid deleting contact on invoice
From Invoicing/Accounting generate an invoice toward a customer
which is a child contact of a company.
Click on "Validate" and print the invoice: the name and contact
information of the customer will be in the report.
Now go into Contacts and delete the customer. If you print again the
report there will be no mention of the customer, and also from the
invoicing tree view there is no customer information.
This is due to the contraint on the deletion that affect only the
parent contact (i.e. a company) which is being billed.
The solution is to put a constraint on the account model to restrict the
deletion of the contact if it is customer of an invoice.
opw-2052717
closes odoo/odoo#35761
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
