You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Odoo 17, in the module sale_renting there is identical field "start_date", "end_date", these fields are datetime fields
To Reproduce
Affected versions: 17.0
Steps to reproduce the behavior:
Install sale_renting
Go into Renting module
Create a product that can be rented
Create a sale_order with a rentable product
You've got an error
File "/usr/lib/python3/dist-packages/odoo/addons/sale_stock_renting/models/sale_order_line.py", line 98, in
keyfunc = lambda line_id: (max(lines_grouping_key[line_id][0], now), lines_grouping_key[line_id][1], lines_grouping_key[line_id][2])
TypeError: '>' not supported between instances of 'datetime.datetime' and 'bool'
Expected behavior
Chanege the type of start_date & end_date and complete compatibility with sale_renting module.
The text was updated successfully, but these errors were encountered:
Forgot to mention that this module has a link with "Account Invoice Start End Dates".
In Odoo 17 there is two new fields that invalided the module "account_invoice_start_end_dates" -> deferred_start_date and deferred_end_sate.
So it needs to update this feature "Upon invoice creation, the values of the start/end dates of the sale order line are copied to the start/end dates of invoice lines."
Module
sale_start_end_dates
Describe the bug
With Odoo 17, in the module sale_renting there is identical field "start_date", "end_date", these fields are datetime fields
To Reproduce
Affected versions: 17.0
Steps to reproduce the behavior:
File "/usr/lib/python3/dist-packages/odoo/addons/sale_stock_renting/models/sale_order_line.py", line 98, in
keyfunc = lambda line_id: (max(lines_grouping_key[line_id][0], now), lines_grouping_key[line_id][1], lines_grouping_key[line_id][2])
TypeError: '>' not supported between instances of 'datetime.datetime' and 'bool'
Expected behavior
Chanege the type of start_date & end_date and complete compatibility with sale_renting module.
The text was updated successfully, but these errors were encountered: