Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3720 Prikazi

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..

Avatar
Opusti

Can you please post the source of your modifications?

Best Answer

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)]}),

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
jul. 25
909
1
avg. 25
392
1
avg. 25
740
1
jul. 25
685
2
jul. 25
534