Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
7000 Widoki

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?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

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

 

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 24
3078
3
gru 23
92573
3
wrz 21
5994
1
wrz 15
9667
4
sie 25
7648