تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
8863 أدوات العرض

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"
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أغسطس 25
154
2
أغسطس 25
716
2
أغسطس 25
450
4
أغسطس 25
432
0
أغسطس 25
346