Hi all
i am trying to make overtime rule and get wrong python code
the rule
result = (((contract.wage/30)/8)*0.25)*(inputs.OVERTIME_DAY_DAYS and inputs.OVERTIME_DAY_DAYS.amount)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- プロジェクト
- MRP
この質問にフラグが付けられました
1
返信
3357
ビュー
I guess the problem is with this part: (inputs.OVERTIME_DAY_DAYS and inputs.OVERTIME_DAY_DAYS.amount).
Try to write it as: (bool(inputs.OVERTIME_DAY_DAYS.amount) and inputs.OVERTIME_DAY_DAYS.amount).
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
0
5月 22
|
3017 | ||
|
1
5月 22
|
2566 | ||
|
1
1月 22
|
2308 | ||
|
1
10月 21
|
14774 | ||
|
2
1月 24
|
14870 |