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.
I have 2 page in my notebook invoiced and refund that use the same model hospital.account.lines with many2one ref to hospital.billing , Now I want only invoice page to see those item that were invoiced and the same with refund page only those refunded items.
Why does domain not work?
A possibility would be to seperate them into 2 fields. You can then have the 2 fields with 2 different domains. The field definition should be something like:
'billing_refunded_id' : fields.many2one('hospital.billing', 'Refunded item', domain='[('state','=','refund')]',
'billing_invoiced_id' : fields.many2one('hospital.billing', 'Invoiced item', domain='[('state','=','invoiced')]'
Just from the top of my head, so mind any typo's.
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: 6/19/14, 2:07 AM|
|Seen: 397 times|
|Last updated: 3/16/15, 8:10 AM|