Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4572 Widoki

Hi all,

I would like to customize a sequence with the customer reference (used as code). I tried the following variable in my sequence : %(partner_id.ref)sSO

But I got the error

File "/home/mcassuto/SFL/openERP/7.0/server/openerp/addons/base/ir/ir_sequence.py", line 218, in _interpolate return s % d KeyError: u'partner_id.ref'

Is there a way to use model fields rather than the provided variables ?

Thanks, Marc

Awatar
Odrzuć
Najlepsza odpowiedź

No, actually ir.sequence only supports %(hour)s and date functions. If you want to modify this you have to create a new module and develop it by yourself.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
5
sie 24
2796
0
sie 24
1395
sequence prefix. Rozwiązane
3
wrz 23
3639
0
sty 22
2511
1
mar 25
4479