Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4211 Widoki

Hello,


in pos_order, I inherited "action_invoice" to send a value I created for a reduction ticket (here is the code : http://pastebin.com/JxjXgD5y).

The action is done when you click on the button in the red circle here : http://i.imgur.com/o1bT6Ev.png


The problem I have is that I don't know how and where I can get this value in account_invoice.


Thank you in advance for your help !

Awatar
Odrzuć
Najlepsza odpowiedź

Dear Matthieu,

if i understand you correctly , when you want to send value directly to total that is impossible because the total field in invoice is functional field , it's function return the total after sum all the subtotal on the invoice lines. if you want to send value to invoice you can do by any of two ways:

1- send it in invoice lines.

2. create new field on account.invoice and send the value directly,. in this case you must modify the total functional field.

Awatar
Odrzuć
Autor

Yes, thank you. I think in my case, the second option is the best one. But there is no "_columns" so I think we need to create it in "compute_amount(self)". Am i right ? Once again, thank you so much !

Powiązane posty Odpowiedzi Widoki Czynność
1
mar 23
2349
2
lip 20
27104
1
mar 15
4266
0
mar 15
3612
0
sie 22
3106