Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
6543 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Concatenate two fields in a third one แก้ไขแล้ว
2
ส.ค. 24
2454
readonly option in fields? แก้ไขแล้ว
3
ธ.ค. 23
91291
3
ก.ย. 21
5274
1
ก.ย. 15
9034
4
ส.ค. 25
5730