Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1996 Lượt xem

I work with 'excel_import_export' OCA module, I want to add condition for 'E5' by replacing Zeros by blank :


{ '__EXPORT__':
{ 1: { '_HEAD_':
{ 'B2': 'partner_id.display_name${value or ""}#{align=left;style=text}', }, '_EXTEND_results':
{ 'A5': 'name${value or ""}#{style=text}',
'B5': 'date_order${value or ""}#{style=date}',
'C5': 'amount_untaxed${value or 0}#{style=number}@{sum}',
'D5': 'amount_tax${value or 0}#{style=number}@{sum}',
'E5': 'amount_total${value or 0}#{style=number}', }, }, }, }


I try with this code , but I still having error:

'E5': 'amount_total${value or 0}#{style=number}' if amount_total!=0.0 else ' '

How can I do it? Any help please? 

Thanks.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
41
4
thg 3 23
16827
2
thg 7 22
3695
1
thg 11 21
18402
2
thg 10 21
7375