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

I tried to use "track_visibility" for some fields in models.py 

here is my model

class Category(models.Model):
_name = 'costing.category'

_inherit = ['portal.mixin', 'mail.thread', 'mail.activity.mixin']
description = fields.Text(string="Description")
display_name = fields.Char(string="Display Name", required=True)
is_active = fields.Boolean(string="Is Active", default=True)
name = fields.Char(string="Name", required=True, track_visibility='onchange') 
                                                                                                            

but when I tried to install it shows too many fields in the form view itself while I have only five fields

t

I checked in debug mode for form view it showing empty
الصورة الرمزية
إهمال
أفضل إجابة

Hi,

Is this the form view you defined in the code ? or auto generated view from odoo ? Please activate the developer mode and click debugger button on top of the form view and see whether there is an external id for the view .


Thanks & Regards

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

thanks for the reply niyas i created the view from the code itself but when I check from the debugger option it shows empty.

That means, the model specified in the menu action and defined model on the form view is not matching, or the created form view is not loaded in the db.
Go to the views menu under the settings and see whether you can see your view there

الكاتب

NIyas thanks for the response got the issue it's because the form name gets duplicated with another form view once I change it's working fine.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
سبتمبر 22
1909
2
أغسطس 23
6577
1
سبتمبر 22
4416
3
أغسطس 24
5347
0
مايو 23
2233