From 7ffd86c0a9491fa5214f4a2d840ea93035a622dc Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Tue, 17 Jul 2018 08:05:59 +0200 Subject: [PATCH] remove bad use of api.model the body of the methods depend on self containing exactly one record --- .../models/stock_slot_verification_request.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/stock_inventory_verification_request/models/stock_slot_verification_request.py b/stock_inventory_verification_request/models/stock_slot_verification_request.py index cf7910034..316615566 100644 --- a/stock_inventory_verification_request/models/stock_slot_verification_request.py +++ b/stock_inventory_verification_request/models/stock_slot_verification_request.py @@ -62,20 +62,17 @@ class SlotVerificationRequest(models.Model): string='Involved Inventory Lines') involved_inv_line_count = fields.Integer(compute=_count_involved_inv_lines) - @api.model def _get_involved_moves_domain(self): domain = [('product_id', '=', self.product_id.id), '|', ('location_id', '=', self.location_id.id), ('location_dest_id', '=', self.location_id.id)] return domain - @api.model def _get_involved_lines_domain(self): domain = [('product_id', '=', self.product_id.id), ('location_id', '=', self.location_id.id)] return domain - @api.model def _get_involved_lines_and_locations(self): involved_moves = self.env['stock.move'].search( self._get_involved_moves_domain())