콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
9005 화면

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"
아바타
취소
관련 게시물 답글 화면 활동
3
9월 25
279
1
8월 25
221
1
8월 25
298
0
8월 25
178
1
8월 25
222