Skip to content

Commit

Permalink
[FIX] purchase_stock: RFQ automatically created with an inactive vendor
Browse files Browse the repository at this point in the history
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"

Bug:

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.

opw:2066616

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

0 comments on commit 0d6f084

Please sign in to comment.