Without demeriting your work, IMHO a better approach would be to include a 
field calle type_extended or something similar on product.pricelist.item model 
that includes the other rule types and a new one called "Fixed price". On the 
on_change of this field, you can change original type and discount value to -1 
if "Fixed price" is selected. On interface, you only need to hide corresponding 
fields when this type is selected, and relace the old field with this new one. 
I think it's simpler, don't you?

Regards.
-- 
https://code.launchpad.net/~therp-nl/openerp-product-attributes/7.0_lp1272282_fixed_price/+merge/203348
Your team OpenERP Community is subscribed to branch 
lp:openerp-product-attributes.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp

Reply via email to