Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stock_batch_picking_voucher/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
"name": "Preprinted report in batch pickings",
"version": "18.0.1.2.0",
"version": "18.0.1.3.0",
"category": "Warehouse Management",
"sequence": 14,
"summary": "",
Expand Down
7 changes: 2 additions & 5 deletions stock_batch_picking_voucher/models/stock_picking_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,10 @@ def _compute_with_vouchers(self):
rec.with_vouchers = bool(self.voucher_ids)

def do_print_and_assign(self):
# We override the method to avoid assignation
if not self.book_id:
raise UserError("Primero debe setear un talonario")
if not self.book_id.autoprinted:
self.printed = True
return self.with_context(batch=True).do_print_batch_vouchers()
self.assign_numbers(1, self.book_id)
pages = 1 if self.book_id.autoprinted else (self.estimated_number_of_pages or 1)
self.assign_numbers(pages, self.book_id)
Comment on lines +77 to +78
return self.do_print_batch_vouchers()

def do_print_batch_vouchers(self):
Expand Down
Loading