* Move files and reorganize directories according to guidelines
* Lint and clean code, remove dead code
* Migrate code to the new API
Applied to stock submodules: stock_account, stock_calendar,
stock_landed_costs.
The following modules were already in new API, but cleaned and reorganized:
stock_dropshipping, stock_picking_wave, sale_stock
Two fixes from saas-12 in yaml_import have been included in this branch
because originally developped when fixing issues related to the new API
migration.
* 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