mirror of
https://github.com/NaN-tic/trytond-production_process.git
synced 2023-12-14 05:53:01 +01:00
Add missing domain on production's process
This commit is contained in:
parent
2f640cafa4
commit
d3c5e1203b
|
@ -255,7 +255,11 @@ class Route:
|
||||||
class Production:
|
class Production:
|
||||||
__name__ = 'production'
|
__name__ = 'production'
|
||||||
|
|
||||||
process = fields.Many2One('production.process', 'Process')
|
process = fields.Many2One('production.process', 'Process',
|
||||||
|
domain=[
|
||||||
|
('output_products', '=', Eval('product', 0)),
|
||||||
|
],
|
||||||
|
depends=['product'])
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __setup__(cls):
|
def __setup__(cls):
|
||||||
|
|
Loading…
Reference in a new issue