Browse Source

:Dec 30 [FIX] Bug Fixed 'order_line_sequences'

18.0
Risvana Cybro 2 days ago
parent
commit
bd52dfdd3a
  1. 2
      order_line_sequences/__manifest__.py
  2. 6
      order_line_sequences/doc/RELEASE_NOTES.md
  3. 6
      order_line_sequences/models/stock.py

2
order_line_sequences/__manifest__.py

@ -21,7 +21,7 @@
################################################################################
{
'name': 'Order Line Sequences/Line Numbers',
'version': '18.0.1.0.0',
'version': '18.0.1.0.1',
'category': 'Extra Tools',
'summary': 'Sequence numbers in order lines of sales,purchase and delivery.',
'description': """This module will help you to add sequence for order lines

6
order_line_sequences/doc/RELEASE_NOTES.md

@ -4,3 +4,9 @@
#### Version 18.0.1.0.0
#### ADD
- Initial Commit for Order Line Sequences/Line Numbers.
#### 22.12.2025
#### Version 18.0.1.0.1
#### UPDATE
- Fixed the pagination issue in delivery

6
order_line_sequences/models/stock.py

@ -31,6 +31,7 @@ class StockMove(models.Model):
compute='_compute_sequence_number',
help='Line Numbers',default=False)
@api.depends('picking_id', 'picking_id.move_ids_without_package')
def _compute_sequence_number(self):
"""Function to compute line numbers"""
@ -42,9 +43,8 @@ class StockMove(models.Model):
for picking in self.mapped('picking_id'):
sequence_number = 1
for move in picking.move_ids_without_package:
if move in self: # Only update moves in our original recordset
move.sequence_number = sequence_number
sequence_number += 1
move.sequence_number = sequence_number
sequence_number += 1
class StockPicking(models.Model):

Loading…
Cancel
Save