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

Is print button on the header default on a new created module?

By
splucena
on 9/10/13, 12:26 AM 1,506 views

I'm using ubuntu 12.04 and opeerp 7.0-20130828-231133. I have created a simple module, added data, clicked on the form view only edit, create, more buttons appeared, shouldn't there be a print button as well?

1

Grover Menacho

--Grover Menacho--
2523
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Systems Engineer + MBA

Grover Menacho
On 9/10/13, 12:28 AM

Nope, you have to add at least a report to your new module to enable it.

For example:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
  <data>
    <report id="sale.report_sale_order"
            name="sale.order.webkit"
            auto="False"
            model="sale.order"
            file="sale_order_webkit/report/sale_order.mako"
            string="Quotation - Order"
            webkit_header="base_headers_webkit.base_reports_portrait_header"
            report_type="webkit"/>
  </data>
</openerp>

This automatically adds a link on the Print Menu. It's based on the model.

After creating a report module how should I go enabling the report button. Should I include that in the xml of the report?

splucena
on 9/10/13, 12:32 AM

I've updated my answer, It depends on which type of report you want to use, but basically this is the way.

GH Mediacloud, Grover Menacho
on 9/10/13, 12:54 AM

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: 9/10/13, 12:26 AM
Seen: 1506 times
Last updated: 3/16/15, 8:10 AM