Hello, I have Odoo8.
I have this field in model 'product.pricelist.version'
pagos_realizados = fields.Many2many('account.voucher', 'pagos_vouchers', 'id_pago', 'id_voucher', string='Pagos realizados', domain=[('es_acopio', '=', True), ('partner_id.customer', '=', True), ('fue_usado', '=', False)])
And this field in 'account.voucher' model
pricelist_version = fields.Many2many('product.pricelist.version', 'pagos_vouchers', 'id_voucher', 'id_pago')
The field 'fue_usado' is a field of model account.voucher, which is a computed field, is false if the voucher is related to any pricelist; in other cases is true.
I can check by a view that the 'fue_usado' field is FALSE in various vouchers, but the domain not filters it. The domains works correctly with the two first rules, but ignores the third. Why? Thanks!
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/7/15, 3:24 PM|
|Seen: 476 times|
|Last updated: 3/16/15, 8:10 AM|