Add missing domain on production's process

This commit is contained in:
Sergi Almacellas Abellana 2014-06-10 16:29:32 +02:00
parent 2f640cafa4
commit d3c5e1203b
1 changed files with 5 additions and 1 deletions

View File

@ -255,7 +255,11 @@ class Route:
class Production:
__name__ = 'production'
process = fields.Many2One('production.process', 'Process')
process = fields.Many2One('production.process', 'Process',
domain=[
('output_products', '=', Eval('product', 0)),
],
depends=['product'])
@classmethod
def __setup__(cls):