Merge lp:~openerp-dev/openobject-addons/trunk-web_pdf_reports_inbuilt-pga into lp:openobject-addons

Proposed by Parth Gajjar(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-web_pdf_reports_inbuilt-pga
Merge into: lp:openobject-addons
Diff against target: 47 lines (+24/-0)
2 files modified
base_setup/res_config.py (+15/-0)
base_setup/res_config_view.xml (+9/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-web_pdf_reports_inbuilt-pga
Reviewer Review Type Date Requested Status
Mantavya Gajjar (Open ERP) (community) Needs Information
Review via email: mp+178657@code.launchpad.net

Description of the change

hello,
Added check-box in General Setting for enable and disable PDF reports in browser.
Thanks,
PGA

To post a comment you must log in.
Revision history for this message
Mantavya Gajjar (Open ERP) (mga) wrote :

Make a good text on module description and change the text on settings menu

Replace (View Report -> Enable this for open PDF reports in browser.)

With (View Report -> Enable this to have inline pdf report viewer.)

or some good text

review: Needs Information
8836. By Parth Gajjar(Open ERP)

[IMP] Changed text in general setting

8837. By Parth Gajjar(Open ERP)

[IMP] improved code

8838. By Parth Gajjar(Open ERP)

[IMP] improved label

8839. By Parth Gajjar(Open ERP)

[IMP] improved code

8840. By Parth Gajjar(Open ERP)

merged with trunk-addons

Unmerged revisions

8840. By Parth Gajjar(Open ERP)

merged with trunk-addons

8839. By Parth Gajjar(Open ERP)

[IMP] improved code

8838. By Parth Gajjar(Open ERP)

[IMP] improved label

8837. By Parth Gajjar(Open ERP)

[IMP] improved code

8836. By Parth Gajjar(Open ERP)

[IMP] Changed text in general setting

8835. By Parth Gajjar(Open ERP)

merged with latest trunk

8834. By Parth Gajjar(Open ERP)

Merged with trunk

8833. By Parth Gajjar(Open ERP)

[ADD] Added checkbox in Gereral Setting for enable and disable inbuilt_pdf

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'base_setup/res_config.py'
2--- base_setup/res_config.py 2013-09-17 13:08:14 +0000
3+++ base_setup/res_config.py 2013-09-30 10:30:54 +0000
4@@ -38,8 +38,23 @@
5 'module_base_import': fields.boolean("Allow users to import data from CSV files"),
6 'module_google_drive': fields.boolean('Attach Google documents to any record',
7 help="""This installs the module google_docs."""),
8+ 'inbuilt_pdf': fields.boolean('Enable this to have inline pdf report viewer.',
9+ help="Allows user to have inline pdf report viewer"),
10 }
11+
12+ def get_default_inbuilt_pdf(self, cr, uid, ids, context=None):
13+ inbuilt_pdf = self.pool.get("ir.config_parameter").get_param(cr, uid, "inbuilt_pdf", default=False, context=context)
14+ if inbuilt_pdf == "True":
15+ inbuilt_pdf=True
16+ else:
17+ inbuilt_pdf=False
18+ return {'inbuilt_pdf': inbuilt_pdf}
19
20+ def set_inbuilt_pdf(self, cr, uid, ids, context=None):
21+ config_parameters = self.pool.get("ir.config_parameter")
22+ for record in self.browse(cr, uid, ids, context=context):
23+ config_parameters.set_param(cr, uid, "inbuilt_pdf", record.inbuilt_pdf or "False", context=context)
24+
25 def open_company(self, cr, uid, ids, context=None):
26 user = self.pool.get('res.users').browse(cr, uid, uid, context)
27 return {
28
29=== modified file 'base_setup/res_config_view.xml'
30--- base_setup/res_config_view.xml 2013-09-13 13:21:50 +0000
31+++ base_setup/res_config_view.xml 2013-09-30 10:30:54 +0000
32@@ -90,6 +90,15 @@
33 </div>
34 </div>
35 </group>
36+ <group>
37+ <label for="id" string="View Report"/>
38+ <div name="inbuilt_pdf">
39+ <div>
40+ <field name="inbuilt_pdf" class="oe_inline"/>
41+ <label for="inbuilt_pdf" class="oe_inline"/>
42+ </div>
43+ </div>
44+ </group>
45 </form>
46 </field>
47 </record>

Subscribers

People subscribed via source and target branches

to all changes: