diff --git a/product_update_price_last_purchase/models/product_product.py b/product_update_price_last_purchase/models/product_product.py index dbdacbc..e7cb35f 100644 --- a/product_update_price_last_purchase/models/product_product.py +++ b/product_update_price_last_purchase/models/product_product.py @@ -44,7 +44,6 @@ class ProductProduct(models.Model): for product in self: if product.last_purchase_price_received_compute_type != "manual_update": product.lst_price = product.theoretical_price - product.to_print_label = True class ProductPackaging(models.Model): diff --git a/product_update_price_last_purchase/models/product_template.py b/product_update_price_last_purchase/models/product_template.py index cad50fa..12354c9 100644 --- a/product_update_price_last_purchase/models/product_template.py +++ b/product_update_price_last_purchase/models/product_template.py @@ -9,12 +9,12 @@ class ProductTemplate(models.Model): _inherit = "product.template" margin_state = fields.Selection(store=True) - to_print_label = fields.Boolean( - string="To print label", - help="""The sale price has been updated on this product - and needs to be updated on the shelf.""", - default=False, - ) + # to_print_label = fields.Boolean( + # string="To print label", + # help="""The sale price has been updated on this product + # and needs to be updated on the shelf.""", + # default=False, + # ) last_purchase_price_received = fields.Float( string="Last purchase price", diff --git a/product_update_price_last_purchase/views/product_view.xml b/product_update_price_last_purchase/views/product_view.xml index 5dbea50..6a5d192 100644 --- a/product_update_price_last_purchase/views/product_view.xml +++ b/product_update_price_last_purchase/views/product_view.xml @@ -11,10 +11,7 @@ @@ -46,11 +43,6 @@ ('margin_state','in', ['too_cheap', 'too_expensive']) ]" /> -