odoo/odoo#179692
Created by Accounting, Paolo Gatti (pgi)
Closed
- label
- odoo-dev:master-base-refs-pgi
- head
- 8abd6c7e29be8f6c3766be7fb554eb94898911ff
| 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.
Documentation PR: odoo/documentation#10992
Enterprise PR: odoo/enterprise#69800