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'])
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
يوليو 22
|
9099 | ||
|
1
يونيو 21
|
2382 | ||
[SOLVED] Get related field
تم الحل
|
|
2
فبراير 21
|
299 | |
|
5
سبتمبر 20
|
14261 | ||
|
4
يونيو 20
|
49659 |