Skip to content
Permalink
Browse files

fixup! [IMP] purchase_stock: merge RFQ from RR only for same date

  • Loading branch information
amoyaux committed Dec 2, 2019
1 parent 13ca933 commit c992df80db15b7d7007a318d0aef7b2d3924bc2c
Showing with 1 addition and 2 deletions.
  1. +1 −2 addons/purchase_stock/models/stock_rule.py
@@ -299,8 +299,7 @@ def _make_po_get_domain(self, company_id, values, partner):
('picking_type_id', '=', self.picking_type_id.id),
('company_id', '=', company_id.id),
]
orderpoint = values.get('orderpoint_id')
if orderpoint:
if values.get('orderpoint_id'):
procurement_date = fields.Date.to_date(values['date_planned']) - relativedelta(days=int(values['supplier'].delay))
domain = expression.AND([domain, [
('date_order', '<=', datetime.combine(procurement_date, datetime.max.time())),

0 comments on commit c992df8

Please sign in to comment.
You can’t perform that action at this time.