feat: Add product reference and lot number fields to stock move lines and create new delivery slip report

This commit is contained in:
2026-02-07 14:54:02 +03:30
parent 2c1bdd8c19
commit 5651579d08
3 changed files with 111 additions and 0 deletions

View File

@@ -20,6 +20,18 @@ class StockMoveLine(models.Model):
readonly=True,
)
lot_number = fields.Char(
string='Lot Number',
related='lot_id.name',
readonly=True,
)
product_ref = fields.Char(
string='Product Reference',
related='product_id.default_code',
readonly=True,
)
@api.depends('move_id.create_date')
def _compute_production_date(self):
"""Set production date to today or the move's creation date"""