Skip to content
Snippets Groups Projects
Commit ce423e6a authored by Pedro M. Baeza's avatar Pedro M. Baeza
Browse files

[IMP] purchase: Take into account purchase order date for sequence


**Steps to reproduce**

* Define "Purchase Order" sequence for using date ranges checking "Use subsequences per date_range".
* Change sequence prefix to "PO/%(year)s/".
* Create a purchase order with order date in 2020 (a different year than current one).

**Current behavior**

Got a purchase order with 2019 (current year) number.

**Expected behavior**

Got a purchase order with 2020 number.

closes odoo/odoo#37762

Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
parent 20baf00d
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment