İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
8075 Görünümler

Hi everyone,

   What would the right way to add odoo fields as prefix in sequence? I want to use Internal Reference field (ref; res_partner) as prefix to order number sequence code, so i know straight ahead who is the customer by looking at order number. 

Thanks in advance.

Avatar
Vazgeç

Is this possible in odoo 16 Saas without customization

Üretici En İyi Yanıt

Sorry, took me a while to come back to this. Which file should I be working on? Sorry, i'm new to odoo. Where does it keep sequence setting for sales orders?

ok, i found file ir_sequence.py, where i should add my field (by the way, field i want to show in sequence is "doc.partner_id.ref". How can i define it and make it work as, let say %(ref) in my sequence settings? Thanks!

Avatar
Vazgeç
En İyi Yanıt

In create() method you can append it

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
May 25
2236
1
Eyl 24
1186
1
Haz 23
2134
1
Nis 23
11189
1
Haz 22
2460