[V12] Odoo : Print Serial Number in Invoice (with use of Studio)

Опубликовано: 04 Январь 2019
на канале: Pinakin Nayi
1,631
7

Code -----
In some business needed to print product serial numbers in Invoice. You can do this minor customisation with the use of Odoo Studio.

For more : www.odoo.com/trial

Code:
for record in self:
re = ""
move_line_ids = record.mapped('sale_line_ids').mapped('move_ids').mapped('move_line_ids')
for move_line_id in move_line_ids:
re += str(move_line_id.lot_id.name) + ', '
record['x_studio_serial_numbers'] = re