跳至內容
選單
此問題已被標幟
1 回覆
4553 瀏覽次數

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

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
5
8月 24
2782
0
8月 24
1383
3
9月 23
3622
0
1月 22
2506
1
3月 25
4474