跳至内容
菜单
此问题已终结
2 回复
8844 查看

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

 

形象
丢弃

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

最佳答案

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

形象
丢弃

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

最佳答案

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"
形象
丢弃
相关帖文 回复 查看 活动
2
8月 25
634
2
8月 25
332
4
8月 25
364
0
8月 25
301
0
8月 25
286