Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
6535 Представления

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 Ответы Просмотры Активность
2
авг. 24
2451
3
дек. 23
91287
3
сент. 21
5271
1
сент. 15
9034
4
авг. 25
5718