OCA / product-attribute

Odoo Product Attribute
https://odoo-community.org/project/product-maintainers-27
GNU Affero General Public License v3.0
175 stars 667 forks source link

Clicking "Test Import" adds sequence numbers and leads to wrong sequences #487

Closed geniustaha closed 5 years ago

geniustaha commented 5 years ago

Bug: When we are importing products in bulk, if we click on the button test import, it updates the sequence numbers. (Even if we dont upload the sheet.) How to reproduce:

  1. Go to product Import.
  2. Upload the sheet.
  3. Click on Test Import Button.

Suppose there were 10 products of a certain category, the sequence number jumps by 10. Suppose there were 4 products, it jumps by 4. Suppose if we press the test import twice, the sequence jumps by double the numbers.

We need a mechanism to detect test imports and not to make the next sequence number update when the test import button is pressed.

pedrobaeza commented 5 years ago

Module? Version?

geniustaha commented 5 years ago

Sorry. I clicked the link and was directed to this page: https://apps.odoo.com/apps/modules/11.0/product_sequence/#bug-tracker Module: Product Sequence Version: 11

pedrobaeza commented 5 years ago

OK, understood, but this is not a problem of the module, but Odoo not unrolling that in their test import feature.

geniustaha commented 5 years ago

Ok sir. Understood. Can you please guide how I can detect if Test import is clicked or import. I can add that to differentiate. Also, if you can guide on how to unroll that sequence number, that will be great. Thanks.

pedrobaeza commented 5 years ago

No clue. I think you should add an issue on odoo/odoo about that.

geniustaha commented 5 years ago

Done: https://github.com/odoo/odoo/issues/33950