Skip to content
Browse files

[FIX] purchase_stock: RFQ automatically created with an inactive vendor

Steps to reproduce the bug:
- Let's consider the storable product P and the vendor V
- Set V as a supplier of P
- Archive V
- Go to product P and click on button "Replenish"


A RFQ was created with the vendor V

Now when archiving a vendor V, all the product.supplierinfo records linked to V
will be archived.


X-original-commit: 5040c17
  • Loading branch information...
simongoffin authored and fw-bot committed Sep 5, 2019
1 parent 9bf0b04 commit 0d6f0846e95017a961f8d75dead8f76cea6b112c
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/product/models/
@@ -805,6 +805,7 @@ class SupplierInfo(models.Model):
'res.partner', 'Vendor',
domain=[('supplier', '=', True)], ondelete='cascade', required=True,
help="Vendor of this product")
active = fields.Boolean(related='', readonly=True)
product_name = fields.Char(
'Vendor Product Name',
help="This vendor's product name will be used when printing a request for quotation. Keep empty to use the internal one.")

0 comments on commit 0d6f084

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