feat: Add product reference and lot number fields to stock move lines and create new delivery slip report
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user