OCA / sale-workflow

Odoo Sales, Workflow and Organization
GNU Affero General Public License v3.0
294 stars 1.03k forks source link

[16.0] sale_quotation_number : wrong behavior when you change sale.quotation sequence prefix #2912

Open menadz opened 9 months ago

menadz commented 9 months ago

Module

sale_quotation_number

Describe the bug

In the sequences configuration, i set the sale quotation prefix to something different than "SQ", when i create a quotation, it will keep the same sequence as when i confirm the quotation

I found out that this module works only if the sale.quotation prefix start with "SQ" (SQI, SQO, SQS for example works too)

To Reproduce

Affected versions: 16.0

Steps to reproduce the behavior:

  1. in Sales -> Configuration : uncheck ‘Use same enumeration for quotations and sale orders’
  2. General Settings -> Technical -> Sequence
  3. Search for sale.quotation sequence and open it
  4. Change the prefix to something different to default value (SQ) :

image

  1. Create a sale quotation
  2. Confirm the sale quotation

Expected behavior 1.Create a sale quotation with the following sequence FP0001 2.Confirm the sale quotation to a sale order and get the its proper sequence (SO0001)

simoneversienti commented 9 months ago

There's a similar issue here: https://github.com/OCA/sale-workflow/issues/2756

aaladro-kernet commented 4 months ago

Hello, have the same issue, pr here : https://github.com/OCA/sale-workflow/pull/3213