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

Hi all,

I'm creating a custom field with a custom module, the code is working fine and the field is correctly created, but it is a Base field and the Copied property is flaggad and I can't modify it through gui.

the code I'm using is the following:

class Partner(models.Model):
  _inherit = 'res.partner'
  x_fiscal_code = fields.Char(string= 'Codice Fiscale', index=True, copy=False)
  x_fiscal_code_new = fields.Char(string= 'Codice Fiscale New', index=True, copy=False)


field x_fiscal_code was created but from gui it is copy=True and fieldType=BaseField

field x_fiscal_code_new was not created, even if I get not errors installing my custom module

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
نوفمبر 21
1052
1
يوليو 21
2607
0
مارس 21
2364
3
فبراير 21
17507
10
يوليو 20
15548