Hi All,
I Have Code like this,
am = line2[tmp]['debit'] - line2[tmp]['credit'] + (l['debit'] - l['credit'])
any code line with calculation give me error :
TypeError: unsupported operand type(s) for -: 'tuple' and 'float'
any help
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi All,
I Have Code like this,
am = line2[tmp]['debit'] - line2[tmp]['credit'] + (l['debit'] - l['credit'])
any code line with calculation give me error :
TypeError: unsupported operand type(s) for -: 'tuple' and 'float'
any help
try:
am = line2[tmp]['debit'] and line2[tmp]['debit'][0] - line2[tmp]['credit'] and line2[tmp]['credit'][0] + (l['debit'] - l['credit'])