I add a deductions tree in account invoice. for Further Deductions upon invoice. I modify the computation for the amount_total and residual .For example the total is 805, then i have 200 for the deductions When i click the Register Payment button the value of the paid amount is 605, which is right but when I click pay, the the register payment button appears again. Then when i pay 200 the register payment button disappear and refund invoice appears. It means that it did'nt read my modified computation but i still need to pay the exact amount that has no deductions. Please help i'm doing this for a week now.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
hi , to modify in your residual account , you have to override the _compute_residual function in accout_invoice class :
@api.multi
def _compute_residual(self):
a= super(account_invoice,self)._compute_residual()
#your changes
return a
Can you please elaborate more on #your changes.. ??
I tried this and a is always an empty list..
I will be thankful if you can point some more tips around and write sample code of CHANGES .. ??
I want to change residual here.
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
1
Apr. 22
|
1285 | ||
|
0
Mai 19
|
4482 | ||
|
1
März 15
|
7226 | ||
|
5
Dez. 23
|
21182 | ||
|
1
März 15
|
5341 |