Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in action_confirm of sale_quotation_number module #2756

Open
lorenzoallegrucci opened this issue Oct 31, 2023 · 2 comments
Open

Bug in action_confirm of sale_quotation_number module #2756

lorenzoallegrucci opened this issue Oct 31, 2023 · 2 comments
Labels

Comments

@lorenzoallegrucci
Copy link

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 referring self.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

@OpenCode
Copy link
Contributor

OpenCode commented Jan 8, 2024

#2126

@simoneversienti
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants