Odoo18-Base/addons/repair/models/stock_move_line.py
2025-01-06 10:57:38 +07:00

11 lines
300 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class StockMoveLine(models.Model):
_inherit = 'stock.move.line'
def _should_show_lot_in_invoice(self):
return super()._should_show_lot_in_invoice() or self.move_id.repair_line_type