clesgow 9200d3a5b2 [FIX] product_expiry: add sort_key for fefo strategy
Steps to reproduce:
- Enable product expiry
- Add two lots in stock:
  - lot_1 expired in 5 days
  - lot_2 expired in 2 days
- Enable the 'First Expiry First Out' removal strategy on its product
category
- Create a delivery using this product and mark is as todo

Issue:
lot_1 will be selected even though it will expire later.

Following 2151a34, _gather() can now use `self` to filter on itself
instead of performing a search() to save some time.
Problem is, no sort_key was defined for 'fefo' strategy.

Part-of: odoo/odoo#140175
2023-10-31 08:24:42 +00:00
2023-10-27 08:36:16 +00:00
…
…
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%