İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5351 Görünümler

1) On project I have created the following filter 'date selection': [['date_start', '>', ((context_today() - datetime.timedelta(8)).strftime('%Y-%m-%d') )]]. It works normally.

2) I have a marketing campaign addressed to 'projects' and I implement a segment using the filter 'date selection'.

The segment process stops with the following error:

File "/opt/openerp/v7/addons/marketing_campaign/marketing_campaign.py", line 358, in process_segment  criteria += eval(segment.ir_filter_id.domain)

File "/opt/openerp/v7/server/openerp/tools/safe_eval.py", line 285, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)

File "", line 1, in <module>

NameError: name 'context_today' is not defined

 Anyone can help me?

Avatar
Vazgeç
Üretici En İyi Yanıt


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Mar 15
5331
2
Oca 24
2606
2
Haz 22
4549
2
Haz 18
6094
2
Kas 16
13713