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

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

 

Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Najlepsza odpowiedź

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"
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 25
232
0
sie 25
184
2
sie 25
180
2
sie 25
769
2
sie 25
498