odoo/documentation#10992

Created by Accounting, Paolo Gatti (pgi)
Closed
label
odoo-dev:master-base-refs-pgi
head
241bb9c11fcc0b513a43e131b69d00279a87efbd
odoo/odoo odoo/enterprise odoo/documentation
master #179692 #69800 #10992

[IMP] base, account: `refs` for multiple records retrieval

The ref method both in Environment and in ChartTemplate can now accept multiple xml_ids, reducing the number of queries necessary. The xml_ids must all refer to the same model, or ValueError is raised.
raise_if_not_found argument is made a keyword-only argument so now it's mandatory for the function calls to include the argument name.

Community PR: odoo/odoo#179692
Enterprise PR: odoo/enterprise#69800

immagine
immagine