I overrided write and create functions in model : 'account.move.line' I only want to browse the lines of Invoice Lines. How to distinguish between Invoice Lines and Journal Items in self? Thanks.
@api.model
def write(self, vals):
res = super(AccountMoveLine, self).write(vals)
for line in self:
...