* All methods are converted into an api.multi style (using ids instead of
a browse record or an id)
* Removed api.v7 methods for two methods defined in purchase and overriden
in stock_calendar, now used only in a true multi-style (old and new API)
* Moved methods having orderpoint as primary object on the orderpoint model
* Removed unused next_day field on resource.calendar model; it was
introduced with hacks of resource.calendar, and never used.
The whole override of resource models should be cleaned but will be done
after migration of resource and stock.calendar.
* All methods are converted into an api.multi style (using ids instead of
a browse record or an id)
* Dead code on product.template model: existing method on product.product
has to be used
* ``_get_accounting_data_for_valuation`` and ``_prepare_account_move_line``
methods moved on the stock.move model as their primary object is a
stock move
* Simplified implementation and call parameters of ``_get_price`` of
account.invoice.line to ease code understanding
* All methods are converted into an api.multi style (using ids instead of
a browse record or an id)
* Two methods on stock.landed.cost model that work actually on stock.move
records are moved to the stock.move model
* Unnecessary parameters removed from get_valuation_lines to ease the code
understanding
This method is used only in stock_account that is about to be migrated
into the new API. To ease the migration the method is converted into
a multi method, using a decorator.
fa502dcab8: [FIX] tools: yaml_import: typo
during migration
15835236f2: [FIX] tools: yaml_import: fields
with inverse When importing from yaml do not remove valid values for
computed fields with an inverse method
When launching a server with two similar addons path, e.g.:
- /home/alice/dev
- /home/alice/devodoo
launching the server in dev mode may crash due to the poor matching using
`path.startswith(...)` method which may make `/home/alice/devodoo/bob/main.xml`
match in addons folder `/home/alice/dev` and with a non-exitant local path
`odoo/bob/main.xml`.
Instead of relying on the name, use the `os.path.commonprefix()` method to match
on real paths and avoid partial matching.
commonprefix will only work if the folder name ends with the appropriate
separator (which is not guarantee for a user provided addons-path) so force a
trailing `/` using os.path.join(..., '')`.
Closes#12359
Before this rev., the debug manager's state was only updated when pushing a new
action but not when coming back to a previous action using the breadcrumbs.
So when the latter case happened, the debug manager was desynchronized with the
action manager and it allowed to edit an action that wasn't the current action.