@@ -20,7 +20,7 @@ def _first_picking_copy_vals(self, key, lines):
20
20
"""The data to be copied to new pickings is updated with data from the
21
21
grouping key. This method is designed for extensibility, so that
22
22
other modules can store more data based on new keys."""
23
- vals = super (PurchaseOrderLine , self )._first_picking_copy_vals (key , lines )
23
+ vals = super ()._first_picking_copy_vals (key , lines )
24
24
for key_element in key :
25
25
if "location_dest_id" in key_element .keys ():
26
26
vals ["location_dest_id" ] = key_element ["location_dest_id" ].id
@@ -33,9 +33,7 @@ def _get_group_keys(self, order, line, picking=False):
33
33
dictionary element with the field that you want to group by. This
34
34
method is designed for extensibility, so that other modules can add
35
35
additional keys or replace them by others."""
36
- key = super (PurchaseOrderLine , self )._get_group_keys (
37
- order , line , picking = picking
38
- )
36
+ key = super ()._get_group_keys (order , line , picking = picking )
39
37
default_picking_location_id = line .order_id ._get_destination_location ()
40
38
default_picking_location = self .env ["stock.location" ].browse (
41
39
default_picking_location_id
@@ -47,11 +45,11 @@ def _get_sorted_keys(self, line):
47
45
"""Return a tuple of keys to use in order to sort the order lines.
48
46
This method is designed for extensibility, so that other modules can
49
47
add additional keys or replace them by others."""
50
- keys = super (PurchaseOrderLine , self )._get_sorted_keys (line )
48
+ keys = super ()._get_sorted_keys (line )
51
49
return keys + (line .location_dest_id .id ,)
52
50
53
51
def _create_stock_moves (self , picking ):
54
- res = super (PurchaseOrderLine , self )._create_stock_moves (picking )
52
+ res = super ()._create_stock_moves (picking )
55
53
for line in self :
56
54
default_picking_location_id = line .order_id ._get_destination_location ()
57
55
default_picking_location = self .env ["stock.location" ].browse (
0 commit comments