@Carlos
You could create boolean fields for every color and put those rules in the view definition, like:
from openerp import models, fields, api
class module_example(models.Model):
_name = 'module.example'
blue = fields.Boolean('Blue')
pink = fields.Boolean('Pink')
yellow = fields.Boolean('Yellow')
and in the xml:
<record id="module_example_form" model="ir.ui.view">
<field name="name">myquality list</field>
<field name="model">myquality.myquality</field>
<field name="arch" type="xml">
<form>
<group>
<field name="blue" attrs="{'invisible': [('pink','=',True),('yellow','=',True)]}"/>
<field name="pink" attrs="{'invisible': [('blue','=',True),('yellow','=',True)]}"/>
<field name="yellow" attrs="{'invisible': [('pink','=',True),('blue','=',True)]}"/>
</group>
</form>
</field>
</record>
Please check the following link for custom module:
https://youtu.be/Xya_fCNr6tw
Thanks & Regards