The Question has been closed for reason: duplicate questionby
How can we use dynamic domains in onchange event in new Odoo API?
I'm trying to do it, I have an Many2one field, and a compute One2many field. Options to be select by Many2one field should be in these One2many field.
Here are my code lines:
days = fields.One2many('af.week.day', string='Class days', compute='_compute_days',
help='Week days in which this group has classes')
day_of_week = fields.Many2one('af.week.day', string='Day of week', domain="[('id','in',days)]")
About This Community
|Asked: 12/22/14, 11:09 AM|
|Seen: 586 times|
|Last updated: 3/16/15, 8:10 AM|