Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
8999 Visualizzazioni

How to add measure total with tax in invoice business intelligence report any one have idea or any module?

 

Avatar
Abbandona

Hi, also need this. Did you managed to get it working?

Risposta migliore

Hi,

Try the code like below.

in .py

class AccountInvoiceReport(models.Model):
_inherit = 'account.invoice.report'

total_w_tax = fields.Float('Total With Tax', store=True)

def _select(self):
res = super(AccountInvoiceReport, self)._select()
select_str = res + """, move.amount_total AS total_w_tax """
return select_str
in .xml

https://ibb.co/7jRh0Wf

https://ibb.co/ypxm4kV

Regards

Avatar
Abbandona

Is it doable from Odoo Studio so far? I doubt, but who knows...

Risposta migliore

Good morning, 

If field total with tax not exist,

Add function calculate TotalWithTAX and affect it to new field,

then you can inherit view graph of invoices then add your field with 

type="measure"
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 25
4
3
set 25
266
1
ago 25
214
1
ago 25
289
0
ago 25
176