Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Webkit Tax Report

By
abdul aziz yaakup
on 11/19/14, 7:48 PM 643 views

Can it be possible to generate a webkit report by pull the datas from more than one object (i.e: from account.account and account.tax.code)? 

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 11/20/14, 1:34 AM

Sukri, a webkit report (if you are using report_webkit module) works with one ORM model.  You can still access the information from other models related to the master model.  So, if your master model or the webkit report is account.invoice, then you have access to it's partner_id (which is res.partner), it's lines (which is account.invoice.line), the line's account_id (which is account.account), etc.

Now, if you really need to combine unrelated models (though I'm not sure how you're going to combine it if it is unrelated), you can still develop a database VIEW and create a model with _auto set to False.  Something like used in analytical reports (addons/account/report/account_invoice_report.py is one example).

Thanks Ivan for the tips. Really late reply from me.

abdul aziz yaakup
on 11/4/15, 9:48 PM
0
YannCopp
On 2/11/16, 5:50 AM

Have you found a solution ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/19/14, 7:48 PM
Seen: 643 times
Last updated: 2/11/16, 5:50 AM