Community mailing list archives

Record rule to forbid sale less price

Mohamed Hagag
- 02/10/2015 08:58:52


I created this security rule for order line object and it's global


but it raises the below error:

ValueError: "name 'product_id' is not defined" while evaluating u"[('price_unit','>=',[product_id.lst_price])]"

why it can't find the 2nd field of the same object which in this case product_id ?

in general how can I say  field A = field B in a filter ?

I found that it expects the 2nd part to be user.ANY_FIELD or a raw value only .

Any help is very appreciated .