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

Hi, I add a column (field) in my sale order line.

But when I save the quotation, the value of the column isn't saved in the database.

Someone tells me it comes from the readonly, I try this but it doesn't work :

stocking = fields.Char(string='Stocking',help="Legend",readonly=False)

Thanks in advance?

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

In the view, just have to remove the "readonly=True" from

<field name="stocking" readonly=True/>

 

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

Dear

Inherit that model.

Again redefine that field with change the attribute of read only is false.

You need to update that database.

Cheers,

Ankit H Gandhi.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 24
2454
3
ديسمبر 23
91291
3
سبتمبر 21
5274
1
سبتمبر 15
9034
4
أغسطس 25
5731