跳至內容
選單
此問題已被標幟
3 回覆
6540 瀏覽次數

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
8月 24
2454
3
12月 23
91291
3
9月 21
5274
1
9月 15
9034
4
8月 25
5730