تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2526 أدوات العرض

I have made my custom button in journal entries form of odoo 15 and i want to generate sequence with that button instead of post button please guide me.

الصورة الرمزية
إهمال
الكاتب

Thank you @Mehjabin.


أفضل إجابة

Hi Danish,

name = fields.Char(string='Number', copy=False, compute='_compute_name', readonly=False, store=True, index=True, tracking=True)

This is the field where the sequence is generating in journal entry, and is using the compute function "_compute_name" for this. You can modify this function as you need and try

Hope this will help you

Thank You

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 22
3748
1
مارس 25
1625
4
أكتوبر 24
1898
0
أبريل 24
2081
0
فبراير 24
1301