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

How to add new state in invoice form view in odoo 13

الصورة الرمزية
إهمال
أفضل إجابة

You can add as following


class AccountInvoiceInherit(models.Model):
_inherit = 'account.move'

state = fields.Selection(selection_add=[
('new_state', 'New Satate'), ('done',)
])
الصورة الرمزية
إهمال
الكاتب

Thank you..But i want to add statein between draft and open.how can i do that?

Hi,

Updated in my answer

Thanks

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 21
2355
0
أبريل 21
2312
1
يونيو 23
3124
1
يناير 23
2915
0
سبتمبر 22
2624