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

hi all,

can I add a Many2one type Transient field in my Model? if yes, how I can create and use it in Model and View?

regards

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

Fields cannot be transient, only models can be defined as transient.

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

Hi,

You cannot define a field with its type as Transient in Odoo.

Only models can be defined as Transient.

Thanks

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

That's true : only models can be transient, not fields

But what you are searching for may be adding the option `store=False` to your field definition

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أبريل 21
2009
1
أبريل 21
2681
1
فبراير 24
1733
2
سبتمبر 23
5990
0
يناير 22
2427