diff --git a/user_warehouse_restriction/models/res_config_settings.py b/user_warehouse_restriction/models/res_config_settings.py index 2f5fd82b4..5f82b7be3 100755 --- a/user_warehouse_restriction/models/res_config_settings.py +++ b/user_warehouse_restriction/models/res_config_settings.py @@ -39,7 +39,7 @@ class ResConfigSettings(models.TransientModel): @api.onchange('group_user_warehouse_restriction') def _onchange_group_user_warehouse_restriction(self): - print("_onchange_group_user_warehouse_restriction") + """This method is triggered when the 'group_user_warehouse_restriction' field is changed. if it's true, assigns the current user as the allowed user of all existing warehouses.""" diff --git a/user_warehouse_restriction/models/res_users.py b/user_warehouse_restriction/models/res_users.py index 0cd0d452d..00f2d17e5 100644 --- a/user_warehouse_restriction/models/res_users.py +++ b/user_warehouse_restriction/models/res_users.py @@ -46,11 +46,9 @@ class ResUsers(models.Model): def write(self, vals): self.clear_caches() - print(vals) return super(ResUsers, self).write(vals) def _compute_check_user(self): - print("_compute_check_user") """To determine if the user has warehouse location restrictions. Sets the check_user field accordingly.""" restriction_group_id = self.env.ref( diff --git a/user_warehouse_restriction/models/stock_picking.py b/user_warehouse_restriction/models/stock_picking.py index c9e31ed4f..9e8dd946f 100644 --- a/user_warehouse_restriction/models/stock_picking.py +++ b/user_warehouse_restriction/models/stock_picking.py @@ -29,7 +29,6 @@ class StockPicking(models.Model): @api.onchange('location_id', 'location_dest_id') def _onchange_location_id(self): - print("_onchange_location_id") """Domain for location_id and location_dest_id.""" if self.env['ir.config_parameter'].sudo().get_param('user_warehouse_restriction.group_user_warehouse_restriction'): return {