This commit is contained in:
2026-02-08 22:06:19 +01:00
parent c02d7212bb
commit 231b733222

View File

@@ -129,11 +129,11 @@ class MtmStrategy(ModelSQL, ModelView):
('matrix', '=', comp.price_matrix.id), ('matrix', '=', comp.price_matrix.id),
] ]
if self.purchase_line: # if self.purchase_line:
domain += [ # domain += [
('origin', '=', self.purchase_line.from_location), # ('origin', '=', self.purchase_line.from_location),
('destination', '=', self.purchase_line.to_location), # ('destination', '=', self.purchase_line.to_location),
] # ]
lines = MatrixLine.search(domain) lines = MatrixLine.search(domain)
if lines: if lines: