Odoo Help


Need to make taxes as readonly in sales quotation and order ?

on 6/26/14, 7:48 AM 832 views

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

Can you please post the source of your modifications?

René Schuster
on 6/26/14, 7:57 AM
On 7/15/14, 3:24 PM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/26/14, 7:48 AM
Seen: 832 times
Last updated: 3/16/15, 8:10 AM