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

Hello every one,

I need to give taxes in sales quotation and sales order as a readonly field, i have given readonly  =True but itsn't working i even given readonly mode in state also is not working

 

Can any one help me...

Thanks in Advance..

Awatar
Odrzuć

Can you please post the source of your modifications?

Najlepsza odpowiedź

I think is not good to set tax field into readonly when you are in draft state. But you still want to do this you can change it directly in the sale_order.py file in sale module addons(line 687)

        'tax_id': fields.many2many('account.tax', 'sale_order_tax', 'order_line_id', 'tax_id', 'Taxes', readonly=True, states={'draft': [('readonly',True)]}),

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
1495
5
paź 25
1486
0
paź 25
143
1
paź 25
265
2
paź 25
488