Remove unneeded if
This commit is contained in:
@@ -45,7 +45,6 @@ class PurchaseSuggestionGenerate(models.TransientModel):
|
||||
@api.model
|
||||
def _prepare_suggest_line(self, product_id, qty_dict):
|
||||
porderline_id = False
|
||||
if qty_dict['product'].seller_id:
|
||||
porderlines = self.env['purchase.order.line'].search([
|
||||
('state', 'not in', ('draft', 'cancel')),
|
||||
('product_id', '=', product_id)],
|
||||
|
||||
Reference in New Issue
Block a user