Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/7/15, 3:24 PM|
|Seen: 808 times|
|Last updated: 3/16/15, 8:10 AM|