Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
6612 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

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

 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 24
2510
3
thg 12 23
91352
3
thg 9 21
5312
1
thg 9 15
9058
4
thg 8 25
5855