summaryrefslogtreecommitdiff
path: root/doc/_extensions/github_link.py
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2021-03-22 13:00:54 +0000
committerJosse Colpaert <jco@odoo.com>2021-03-26 11:48:22 +0000
commit9cbf63bd644d6d6d629266fe31edc91b44f22aa6 (patch)
treeac5b591a35e1feebce69215d3598e4fe7e84f408 /doc/_extensions/github_link.py
parent069449b0e9bb950bba118fa274ab21350cfb7647 (diff)
[FIX] l10n_latam_invoice_document: only trigger constraint when partner_id is set
Before, when importing twice the same invoice, or even with the more theoretical possibility of having the same number for different partners, the constraint would be triggered, giving unnecessary problems when importing vendor bills with an uncertain partner_id. If we check the logic followed in the regular accounting on the ref field, it only triggers when a partner is set, so we can follow the same logic here. closes odoo/odoo#68389 X-original-commit: f43ae2375a6550e0d03c69fb8389ec13b40307ab Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'doc/_extensions/github_link.py')
0 files changed, 0 insertions, 0 deletions