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

Hi,


in an invoice, when you change the discount on a line, amount of the line and of the invoice is automatically recalculated.


I would like to do the same by clicking on a button that i've added in the invoice form view. 

Probably by calling the same function than the automatic way.


Is anybody know how to do that?


Vincent

アバター
破棄
最善の回答

I don't know the version, but in your button click you can add some custom code like in V13,

for line in self.move_line_ids:

    line._onchange_price_subtotal()

アバター
破棄
著作者 最善の回答

Hello Abdalmola Mustapha,

Sorry i don't understood your answer.

Could you explain differently or share an example please.

Vincent

アバター
破棄
最善の回答

in line automatic calculate but if only if customize in method calculate  to stop auto discount
after that using your method to calculate discount

アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 25
1101
0
3月 15
3354
2
3月 15
6701
1
7月 25
630
2
7月 25
754