@@ -30,7 +30,7 @@ class ProductPricesUpdateWizard(models.TransientModel):
3030 check = fields .Boolean ("Check before changing" )
3131
3232 def change_prices (self ):
33- active_ids = self ._context .get ("active_ids" , [])
33+ active_ids = self .env . context .get ("active_ids" , [])
3434 products_vals = []
3535 if not active_ids :
3636 raise UserError (_ ("You must select at least one product" ))
@@ -113,11 +113,11 @@ class ProductPricesUpdateWizardResult(models.TransientModel):
113113 @api .model
114114 def _get_details (self ):
115115 ret = []
116- price_discount = self ._context .get ("price_discount" , 0.0 )
117- price_surcharge = self ._context .get ("price_surcharge" , 0.0 )
118- price_round = self ._context .get ("price_round" , 0.0 )
119- product_tmpl_ids = self ._context .get ("product_tmpl_ids" , [])
120- price_type = self ._context .get ("price_type" , False )
116+ price_discount = self .env . context .get ("price_discount" , 0.0 )
117+ price_surcharge = self .env . context .get ("price_surcharge" , 0.0 )
118+ price_round = self .env . context .get ("price_round" , 0.0 )
119+ product_tmpl_ids = self .env . context .get ("product_tmpl_ids" , [])
120+ price_type = self .env . context .get ("price_type" , False )
121121 for product_tmpl in self .env ["product.template" ].browse (product_tmpl_ids ):
122122 if price_type == "list_price" :
123123 old_price = product_tmpl .list_price
@@ -137,7 +137,7 @@ def _get_details(self):
137137
138138 def confirm (self ):
139139 products_vals = []
140- price_type = self ._context .get ("price_type" , False )
140+ price_type = self .env . context .get ("price_type" , False )
141141 for line in self .detail_ids :
142142 vals = {
143143 "product_tmpl" : line .product_tmpl_id ,
0 commit comments