Hii,
I am sorry i just made a small mistake in the outputs i have provided.
I tried to check the value of account of the invoice.account with
account._get_eval()
*Output*
In [9]: account._get_eval()
Out[9]:
{'active': True,
'balance': Decimal('0.00'),
'childs': [],
'code': None,
'company': 34,
'create_date': datetime.datetime(2015, 4, 27, 8, 56, 30, 201566),
'create_uid': 1,
'credit': Decimal('0.00'),
'currency': 142,
'currency_digits': 2,
'debit': Decimal('0.00'),
'deferral': True,
'deferrals': [],
'general_ledger_balance': False,
'id': 90,
'kind': u'revenue',
'left': 159,
'name': u'Main Income',
'note': None,
'parent': None,
'party_required': False,
'rec_name': u'Main Income',
'reconcile': False,
'right': 160,
'second_currency': None,
'taxes': [],
'template': None,
'type': 95,
'write_date': None,
'write_uid': None}
The value of invoice with invoice._get_eval()
*Output*
In [10]: invoice._get_eval()
Out[10]:
{'account': 90,
'accounting_date': None,
'amount_to_pay': None,
'amount_to_pay_today': None,
'cancel_move': None,
'comment': None,
'company': 34,
'create_date': datetime.datetime(2015, 4, 27, 8, 56, 27, 769534),
'create_uid': 1,
'currency': 142,
'currency_date': None,
'currency_digits': 2,
'description': None,
'id': -12,
'invoice_address': 1,
'invoice_date': None,
'invoice_report_cache': None,
'invoice_report_format': None,
'journal': 1,
'lines': [-13, -17],
'lines_to_pay': [],
'move': None,
'number': None,
'origins': None,
'party': 1,
'party_lang': u'en_US',
'payment_lines': [],
'payment_term': 27,
'rec_name': None,
'reconciled': False,
'reference': None,
'state': 'draft',
'tax_amount': Decimal('36.80'),
'taxes': [-14],
'total_amount': Decimal('356.80'),
'type': 'out_invoice',
'type_name': None,
'untaxed_amount': Decimal('320.00'),
'write_date': None,
'write_uid': None}
Regards,
Jitesh