10 lines
278 B
Python
10 lines
278 B
Python
from odoo import models
|
|
|
|
|
|
class AccountMoveLine(models.Model):
|
|
_inherit = 'account.move.line'
|
|
|
|
def _eligible_for_stock_account(self):
|
|
self.ensure_one()
|
|
return super()._eligible_for_stock_account() and not any(sol.is_rental for sol in self.sale_line_ids)
|