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
I agree with @lorenzoallegrucci .
Check on hardcoded string "SQ" can be a big limitation (and causes bug) for env where the default sale.quotation (SQ) sequence is not used
Module
sale_quotation_number
Describe the bug
On line 46 https://github.com/OCA/sale-workflow/blob/14.0/sale_quotation_number/models/sale_order.py#L46
it should be:
if order.name[:2] != "SQ":
but the actual code is referringself.name
Moreover, can anyone explain me what is the goal of this hardcoded "SQ" check?
Wouldn't be better to compare ir.sequence prefix?
To Reproduce
Affected versions: 14.0, 16.0
The text was updated successfully, but these errors were encountered: