From 13dd810ca64824b7e358cc7a05596ef98a97e73d Mon Sep 17 00:00:00 2001 From: "uco (OpenERP)" Date: Fri, 19 Mar 2010 17:32:06 +0530 Subject: [PATCH] [ADD] auction: Added docstring for wizard function. bzr revid: uco@tinyerp.co.in-20100319120206-479g0fz3eqx4a4e1 --- .../wizard/auction_catalog_flagey_report.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/addons/auction/wizard/auction_catalog_flagey_report.py b/addons/auction/wizard/auction_catalog_flagey_report.py index 4babf667a70..117389770da 100644 --- a/addons/auction/wizard/auction_catalog_flagey_report.py +++ b/addons/auction/wizard/auction_catalog_flagey_report.py @@ -27,6 +27,15 @@ class auction_catalog_flagey(osv.osv_memory): _description = 'Auction Catalog Flagey' def default_get(self, cr, uid, fields, context): + """ + To get default values for the object. + @param self: The object pointer. + @param cr: A database cursor + @param uid: ID of the user currently logged in + @param fields: List of fields for which we want default values + @param context: A standard dictionary + @return: A dictionary which of fields with values. + """ res = super(auction_catalog_flagey, self).default_get(cr, uid, fields, context=context) return res @@ -40,6 +49,15 @@ class auction_catalog_flagey(osv.osv_memory): pass def print_report(self, cr, uid, ids, context): + """ + Prints auction catalog flagey report. + @param self: The object pointer. + @param cr: A database cursor + @param uid: ID of the user currently logged in + @param ids: List of IDs selected + @param context: A standard dictionary + @return: Report + """ datas = {'ids': context.get('active_ids',[])} return { 'type': 'ir.actions.report.xml',