documentation icon indicating copy to clipboard operation
documentation copied to clipboard

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

Open lordkrandel opened this issue 1 year ago • 4 comments

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

lordkrandel avatar Sep 11 '24 12:09 lordkrandel

Pull request status dashboard

robodoo avatar Sep 11 '24 12:09 robodoo

This should have the same branch name as https://github.com/odoo/odoo/pull/179692 in order to be merged and tested together

william-andre avatar Sep 11 '24 12:09 william-andre

This should have the same branch name as odoo/odoo#179692 in order to be merged and tested together

The strange thing, it appears to me, is that they have. immagine

immagine

lordkrandel avatar Sep 12 '24 08:09 lordkrandel

I just remembered I created it with the wrong target, then changed it straight after, probably it's unaligned. I'm asking the runbot team.

lordkrandel avatar Sep 12 '24 08:09 lordkrandel