-
- Downloads
[FIX] account_edi*: retrieve records within allowed companies
_retrieve_{partner,product,tax} methods were not taking into account a
scope of a company, and methods like _import_ubl or _import_facturx
could end up on creating an invoice with a company mismatch between the
company of the journal and the company of the partner, product or tax.
With this commit, these methods will consider the allowed_company_ids
context value, and calling code should set it to an acceptable value.
OPW-2560795
closes odoo/odoo#75738
Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
Showing
- addons/account_edi/models/account_edi_format.py 13 additions, 8 deletionsaddons/account_edi/models/account_edi_format.py
- addons/account_edi_facturx/models/account_edi_format.py 6 additions, 4 deletionsaddons/account_edi_facturx/models/account_edi_format.py
- addons/account_edi_facturx/test_file/test_facturx.xml 3 additions, 0 deletionsaddons/account_edi_facturx/test_file/test_facturx.xml
- addons/account_edi_facturx/tests/test_facturx.py 18 additions, 0 deletionsaddons/account_edi_facturx/tests/test_facturx.py
- addons/account_edi_ubl/models/account_edi_format.py 4 additions, 3 deletionsaddons/account_edi_ubl/models/account_edi_format.py
Loading
Please register or sign in to comment