aml = self.env['account.move.line'].search([])
for record in aml:
if record.payment_id == self.id
self.env['account.move.line'].create({'number_id':self.number_id})
I have piece of code. I want get payment_id from account_move_line but when i print it. it will account.payment(21,)
I can't compare with any other id. Help me, please. Thanks
Read more about Odoo Customization Tips: https://goo.gl/8HgnCF