Remove issue9017 for product supplier copy. It's already aplayed in production.

This commit is contained in:
Bernat Brunet 2021-01-14 14:10:16 +01:00
parent 2a2fc36fa6
commit 1066927d64
2 changed files with 0 additions and 37 deletions

View File

@ -1,36 +0,0 @@
Index: trytond/trytond/modules/purchase/product.py
===================================================================
--- a/trytond/trytond/modules/purchase/product.py
+++ b/trytond/trytond/modules/purchase/product.py
@@ -91,6 +91,15 @@ class Template(metaclass=PoolMeta):
name, gettext('purchase.msg_change_purchase_uom'))
super(Template, cls).write(*args)
+ @classmethod
+ def copy(cls, templates, default=None):
+ if default is None:
+ default = {}
+ else:
+ default = default.copy()
+ default.setdefault('product_suppliers', None)
+ return super(Template, cls).copy(templates, default=default)
+
class Product(metaclass=PoolMeta):
__name__ = 'product.product'
@@ -110,6 +119,15 @@ class Product(metaclass=PoolMeta):
"Purchase Price", digits=price_digits), 'get_purchase_price_uom')
@classmethod
+ def copy(cls, products, default=None):
+ if default is None:
+ default = {}
+ else:
+ default = default.copy()
+ default.setdefault('product_suppliers', None)
+ return super(Product, cls).copy(products, default=default)
+
+ @classmethod
def get_purchase_price_uom(cls, products, name):
quantity = Transaction().context.get('quantity') or 0
return cls.get_purchase_price(products, quantity=quantity)

1
series
View File

@ -38,7 +38,6 @@ party_identifier_migration.diff # set vat_eu as valid vat
issue8860.diff # [stock_forecast] stock_forecast does not spread all the quantities
statement_of_account.diff # [account] Cumulate balance of previous fiscal years
issue9017.diff # [purchase] Doesn't copy product_suppliers when a template or a product is duplicated
model.diff # [trytond] Allows dynamic fields in Model as required by the wizard in sale_pos_template_quantities
issue9103.diff # [trytond] User-defined reports for custom template extensions