FIX search outputs by lot

#041300
This commit is contained in:
Raimon Esteve 2020-08-24 10:17:42 +02:00
parent 71170836d2
commit 97945158cd
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ class PrintProductionMassBalanceReport(HTMLReport):
('company', '=', company_id),
]
if data.get('lot'):
domain += [('inputs.lot', '=', data['lot'])]
domain += [('outputs.lot', '=', data['lot'])]
else:
domain = [
('inputs.product', '=', requested_product),