Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4608 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
5
ส.ค. 24
2891
0
ส.ค. 24
1427
sequence prefix. แก้ไขแล้ว
3
ก.ย. 23
3695
0
ม.ค. 22
2537
1
มี.ค. 25
4524