コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3748 ビュー

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?

最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
3
7月 25
935
1
8月 25
148
1
8月 25
428
1
8月 25
774
1
7月 25
733