OCA / odoo-pim

GNU Affero General Public License v3.0
39 stars 61 forks source link

[14.0][FIX] set domain for attribute options #168

Closed Kev-Roche closed 11 months ago

Kev-Roche commented 1 year ago

At the moment, about an attribute.attribute, the domain is empty for a custom field with type "select" or "multiselect". So, if we have two different fields with two different options but with the same name (e.g. primary_color and secondary_color with both an option "white"), when we import the data, an error raise "too many values for the option with name "white". This error is not raising when adding values by the interface, only when importing with code or pattern_import_export for example. Here the fix. cc @rvalyi, @sebastienbeau

github-actions[bot] commented 1 year 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.