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'])
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jul 22
|
7405 | ||
|
1
Jun 21
|
1058 | ||
[SOLVED] Get related field
Solved
|
|
2
Feb 21
|
299 | |
|
5
Sep 20
|
12742 | ||
|
4
Jun 20
|
48215 |