OCA / stock-logistics-barcode

https://odoo-community.org/psc-teams/logistics-18
GNU Affero General Public License v3.0
158 stars 324 forks source link

product_multi_barcode: remove useless costly dependency #545

Closed sebastienbeau closed 1 month ago

sebastienbeau commented 10 months ago

When having a product with a lot of variant if you try to remove some product.attribute.value it will remove the related product.product and everytime a product.product is remove this will trigger the computed field On my db removing a product.product take 10s without this change and 3s after

A test have been added to check that this change to not have impact when creating a product_template with a barcode

@kev-Roche

legalsylvain commented 10 months ago

Thanks !

Please take a look on precommit.

github-actions[bot] commented 2 months ago

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.