pledra / odoo-product-configurator

Odoo modules enabling dynamic product configuration
https://www.pledra.com
GNU Affero General Public License v3.0
106 stars 140 forks source link

Disable "Duplicate" button in Attribute Value form [v10.0] #166

Closed SokreamPhanqrl closed 4 years ago

SokreamPhanqrl commented 4 years ago

We should disable the "Duplicate" button on Product Attribute Value's form view, to prevent user from using the duplicate function.

When you duplicate an attribute value (source attribute value), the new attribute value is added to existing products which have the source attribute value assigned.

Ex:

  1. Source attribute value: Size - XXL on Product Tshirt.
  2. Duplicate the Size - XXL(source attribute) --> Size XXS (this new attribute will add to Tshirt )
  3. Tshirt Size - XXL will have 2 attributes which are XXL(source attribute) and XXS(new attribute)
PCatinean commented 4 years ago

Hello @SokreamPhanqrl and thank you for the report. We actually came across this issue in the newer versions and it turned out the product_ids field (reference towards the existing linked products) was copied as well. I will backport this to v10 so one can still have access to the copy functionality without having the issue described.

PCatinean commented 4 years ago

@SokreamPhanqrl please let me know if this solved the issue for you then I can close the issue.

SokreamPhanqrl commented 4 years ago

@SokreamPhanqrl please let me know if this solved the issue for you then I can close the issue.

Yes this is better. Thank you