File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
stock_picking_batch_extended Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ def action_print_picking(self):
67
67
pickings = self .mapped ("picking_ids" )
68
68
if not pickings :
69
69
raise UserError (_ ("Nothing to print." ))
70
- return self .env .ref (
71
- "stock_picking_batch_extended.action_report_batch_picking"
72
- ). report_action ( self )
70
+ return self .env .ref ("stock.action_report_delivery" ). report_action (
71
+ self . picking_ids
72
+ )
73
73
74
74
def remove_undone_pickings (self ):
75
75
"""Remove of this batch all pickings which state is not done / cancel."""
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def test_print_picking(self):
83
83
report_name = result .get ("report_name" )
84
84
self .assertEqual (
85
85
result .get ("report_name" ),
86
- "stock_picking_batch_extended.report_batch_picking " ,
86
+ "stock.report_deliveryslip " ,
87
87
)
88
88
report_pdf = self .env ["ir.actions.report" ]._render (report_name , self .batch .ids )
89
89
self .assertGreaterEqual (len (report_pdf [0 ]), 1 )
You can’t perform that action at this time.
0 commit comments