We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fcfa07 commit 99567a6Copy full SHA for 99567a6
sale_quotation_number/models/sale_order.py
@@ -49,12 +49,11 @@ def get_sale_order_seq(self):
49
return self.env["ir.sequence"].next_by_code("sale.order")
50
51
def _action_confirm(self):
52
+ sequence = self.env["ir.sequence"].search(
53
+ [("code", "=", "sale.quotation")], limit=1
54
+ )
55
for order in self:
- if not (
- order.state == "sale"
- and order.quotation_seq_used
56
- and not order.company_id.keep_name_so
57
- ):
+ if sequence and self.name[: len(sequence.prefix)] != sequence.prefix:
58
continue
59
quo = ""
60
if order.origin and order.origin != "":
0 commit comments