Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I created a custom report of sales quotation. But the original quotation report is displaying in my quotation button. Code is posted here.Any one plz help
Module : quotation
<?xml version="1.0" encoding="utf-8"?>
<report auto="False" id="report_quotation_sale" model="sale.order" name="sale.order"
rml="quotation_report/report/quotation_report.rml" string="Sales Quotation"
quotation- report -__init__.py
quotation- report - quotation.py
from openerp.report import report_sxw
from openerp.osv import osv
from openerp import pooler
def __init__(self, cr, uid, name, context=None):
super(quotation_report, self).__init__(cr, uid, name, context=context)
quotation- report - quotation_report.rml
What was the error in my code? This rml is entirely different from sale quotation report, then how is displaying the same report.
You did everything right, except you never actualy caaled your report...
As i can se you are dealing with sales orders...
Now, go to sale module, and check sale_order class, method print_quotation -> this is called from button print quotation.. and you need to override this method,
AND / OR you need to define new or override existing report server action ( print from More menu on top of creen)
(check in module sale: sale/sale_report.xml )
Hope ti helps :)
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/24/14, 2:50 AM|
|Seen: 1124 times|
|Last updated: 3/16/15, 8:10 AM|