[FIX] product: do not add same attribute on product
[FIX] product: do not add same attribute on product

Adding an attribute with only one value does not recreate the product,
but write this attribute on every product instead. However, the current
filter is not correct: it checks if the given attribute value is not
already in the list of attribute values of the product.

The appropriate check is to verify that the attribute itself is not
already in the list of attributes of the product. Indeed, there is a
constraint to prevent the same attribute to have two different values on
the same product.

BTW, it's a new api function (`mapped`) inside an old api module. Not
the cleanest way to do it, but simpler to write.

opw-671114

hip-odoo/odoo,ygol/odoo,bplancher/odoo,laslabs/odoo,hip-odoo/odoo,dfang/odoo,stephen144/odoo,storm-computers/odoo,ygol/odoo,microcom/odoo,storm-computers/odoo,sysadminmatmoz/OCB,dfang/odoo,laslabs/odoo,laslabs/odoo,bplancher/odoo,sysadminmatmoz/OCB,laslabs/odoo,stephen144/odoo,microcom/odoo,ygol/odoo,dfang/odoo,Elico-Corp/odoo_OCB,bplancher/odoo,storm-computers/odoo,microcom/odoo,laslabs/odoo,dfang/odoo,sysadminmatmoz/OCB,dfang/odoo,stephen144/odoo,laslabs/odoo,sysadminmatmoz/OCB,bplancher/odoo,hip-odoo/odoo,microcom/odoo,Elico-Corp/odoo_OCB,ygol/odoo,sysadminmatmoz/OCB,ygol/odoo,microcom/odoo,ygol/odoo,hip-odoo/odoo,hip-odoo/odoo,stephen144/odoo,sysadminmatmoz/OCB,ygol/odoo,dfang/odoo,storm-computers/odoo,Elico-Corp/odoo_OCB,stephen144/odoo,storm-computers/odoo,hip-odoo/odoo,bplancher/odoo,Elico-Corp/odoo_OCB,bplancher/odoo,Elico-Corp/odoo_OCB,sysadminmatmoz/OCB,microcom/odoo,Elico-Corp/odoo_OCB,stephen144/odoo,storm-computers/odoo