Odoo Help

Welcome!

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

0

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

By
Santhoshkumar
on 6/26/14, 7:48 AM 601 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
0

Koffi KPONOUGLO

--Koffi KPONOUGLO--
768
| 5 2 6
Lomé, Togo
--Koffi KPONOUGLO--

Koffi KPONOUGLO

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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