Commit Graph

4 Commits

Author SHA1 Message Date
Carlos Serra-Toro
690db5e8dc [FIX] stock_buffer_sales_analysis: attending the code review
Several changes were done because of the code review:
* The category of the module is now "Warehouse", in alignment
  with the categories user in OCA (https://odoo-community.org/shop)
* The list of fields in the depends() for the method
  _compute_last_inventory_date() missed several fields, that are
  now listed as dependencies.
* A new unit test has been added to account for the concern of the
  functional needing a compute_sudo in its definition, just in case
  a non privileged stock user was stuck into permission problems.
2021-01-29 13:40:35 +01:00
Carlos Serra-Toro
85d6f31639 [FIX] Add missing fields in the api.depends
Thanks to sebalix for spotting them.
2021-01-27 17:16:32 +01:00
Carlos Serra-Toro
4c06813b01 Apply suggestions from code review
Co-authored-by: Guewen Baconnier <guewen.baconnier@camptocamp.com>
2021-01-26 07:59:44 +01:00
Carlos Serra-Toro
65968ba75e [ADD] stock_location_last_inventory_date
This new module adds a stored computed field on locations that stores
the last inventory date for the location, for validated inventories.
This is only computed for leaf locations, not parent ones.
2021-01-25 16:41:53 +01:00