From 49e83f054b4d60d4fffbc691fbeab6a23bdf5b4f Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Thu, 31 Mar 2011 16:11:18 +0530 Subject: [PATCH 01/56] [FIX] survey: Fixed buildbot warning. bzr revid: uco@tinyerp.com-20110331104118-wpkebdiysq7u1gc6 --- addons/survey/wizard/survey_browse_answer.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/survey/wizard/survey_browse_answer.py b/addons/survey/wizard/survey_browse_answer.py index b1bef814a86..2d740aa2655 100644 --- a/addons/survey/wizard/survey_browse_answer.py +++ b/addons/survey/wizard/survey_browse_answer.py @@ -21,7 +21,6 @@ from osv import osv from osv import fields -from tools.translate import _ class survey_browse_answer(osv.osv_memory): _name = 'survey.browse.answer' From 241d8ffbf2139a8779faf40a6ed56511e3746051 Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Thu, 31 Mar 2011 16:15:02 +0530 Subject: [PATCH 02/56] [REF] survey: Refactored. bzr revid: uco@tinyerp.com-20110331104502-c2hdl8ldzgnpx38w --- addons/survey/wizard/survey_browse_answer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/wizard/survey_browse_answer.py b/addons/survey/wizard/survey_browse_answer.py index 2d740aa2655..1798a7c418c 100644 --- a/addons/survey/wizard/survey_browse_answer.py +++ b/addons/survey/wizard/survey_browse_answer.py @@ -63,7 +63,7 @@ class survey_browse_answer(osv.osv_memory): record = self.read(cr, uid, ids, []) record = record and record[0] or {} if record['response_id']: - res_id = [(record['response_id'][0])] + res_id = [(record.get('response_id') and record['response_id'][0])] else: sur_response_obj = self.pool.get('survey.response') res_id = sur_response_obj.search(cr, uid, [('survey_id', '=',int(record['survey_id']))]) From dae3189fda270bfb39ab66b1f55cb5a09c85d90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= <> Date: Tue, 17 May 2011 15:01:01 +0530 Subject: [PATCH 03/56] [FIX] account: Add company column in taxes list lp bug: https://launchpad.net/bugs/782293 fixed bzr revid: ara@tinyerp.com-20110517093101-sp07bvmf6xno9rjf --- addons/account/account_view.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index e0a355c35bf..a9904dcf25b 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -897,6 +897,7 @@ + From d3d1065fc83d29e7f11e50d343f61dcfcefc7678 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Thu, 19 May 2011 10:46:07 +0530 Subject: [PATCH 04/56] [FIX] account: Add company column in taxes list bzr revid: ara@tinyerp.com-20110519051607-e5eyjbuhdsrkslvb --- addons/account/account_view.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index a9904dcf25b..d3d54a51918 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -910,6 +910,7 @@ + From 25fc84728e1f4e1034ae9b79d6876a06cf327ac7 Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Wed, 8 Jun 2011 12:58:32 +0530 Subject: [PATCH 05/56] [FIX] account: Fixed issue of 'balance' type tax using chart of accounts. lp bug: https://launchpad.net/bugs/789658 fixed bzr revid: uco@tinyerp.com-20110608072832-dg68dfnsvnzz58vm --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index f6dd36c01fc..07ff993694a 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2473,7 +2473,7 @@ class account_tax_template(osv.osv): 'name': fields.char('Tax Name', size=64, required=True), 'sequence': fields.integer('Sequence', required=True, help="The sequence field is used to order the taxes lines from lower sequences to higher ones. The order is important if you have a tax that has several tax children. In this case, the evaluation order is important."), 'amount': fields.float('Amount', required=True, digits=(14,4), help="For Tax Type percent enter % ratio between 0-1."), - 'type': fields.selection( [('percent','Percent'), ('fixed','Fixed'), ('none','None'), ('code','Python Code')], 'Tax Type', required=True), + 'type': fields.selection( [('percent','Percent'), ('fixed','Fixed'), ('none','None'), ('code','Python Code'), ('balance','Balance')], 'Tax Type', required=True), 'applicable_type': fields.selection( [('true','True'), ('code','Python Code')], 'Applicable Type', required=True, help="If not applicable (computed through a Python code), the tax won't appear on the invoice."), 'domain':fields.char('Domain', size=32, help="This field is only used if you develop your own module allowing developers to create specific taxes in a custom domain."), 'account_collected_id':fields.many2one('account.account.template', 'Invoice Tax Account'), From f2c41053ea4d5216897d115df81662aad1d7d9b4 Mon Sep 17 00:00:00 2001 From: "Bhumika (OpenERP)" Date: Thu, 16 Jun 2011 18:04:36 +0530 Subject: [PATCH 06/56] [Fix]: mail_gateway : Fix fetch attachement even if the check box add attachement is not checked bzr revid: sbh@tinyerp.com-20110616123436-tclirmg6vju75i1j --- addons/mail_gateway/mail_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail_gateway/mail_gateway.py b/addons/mail_gateway/mail_gateway.py index c67a2668192..e891c081279 100644 --- a/addons/mail_gateway/mail_gateway.py +++ b/addons/mail_gateway/mail_gateway.py @@ -519,7 +519,7 @@ class mailgate_tool(osv.osv_memory): body = content has_plain_text = True elif part.get_content_maintype() in ('application', 'image'): - if filename : + if filename and attach: attachments[filename] = part.get_payload(decode=True) else: res = part.get_payload(decode=True) From 05120d4d1037b0b1a06817471126a12eebe53a24 Mon Sep 17 00:00:00 2001 From: mtr Date: Thu, 16 Jun 2011 19:05:49 +0530 Subject: [PATCH 07/56] [FIX] sale:-renamed the label 'Shipped Qty'=> 'Shipped' on Sales Analysis lp bug: https://launchpad.net/bugs/797715 fixed bzr revid: mtr@mtr-20110616133549-pndpm5m4w1j98axc --- addons/sale/report/sale_report.py | 2 +- addons/sale/report/sale_report_view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale/report/sale_report.py b/addons/sale/report/sale_report.py index aaaec228d7b..e4f917ba063 100644 --- a/addons/sale/report/sale_report.py +++ b/addons/sale/report/sale_report.py @@ -31,7 +31,7 @@ class sale_report(osv.osv): 'date': fields.date('Date Order', readonly=True), 'date_confirm': fields.date('Date Confirm', readonly=True), 'shipped': fields.boolean('Shipped', readonly=True), - 'shipped_qty_1': fields.integer('Shipped Qty', readonly=True), + 'shipped_qty_1': fields.integer('Shipped', readonly=True), 'year': fields.char('Year', size=4, readonly=True), 'month': fields.selection([('01', 'January'), ('02', 'February'), ('03', 'March'), ('04', 'April'), ('05', 'May'), ('06', 'June'), ('07', 'July'), ('08', 'August'), ('09', 'September'), diff --git a/addons/sale/report/sale_report_view.xml b/addons/sale/report/sale_report_view.xml index 41cdecee0ea..c62510e9ab6 100644 --- a/addons/sale/report/sale_report_view.xml +++ b/addons/sale/report/sale_report_view.xml @@ -21,7 +21,7 @@ - + From ca2598f997dbea98d9d9bad5f890cf3e872e129e Mon Sep 17 00:00:00 2001 From: "Bhumika (OpenERP)" Date: Fri, 17 Jun 2011 12:09:14 +0530 Subject: [PATCH 08/56] [IMP]: fetchmail: improve the log message bzr revid: sbh@tinyerp.com-20110617063914-lue87brktmevt9a8 --- addons/fetchmail/fetchmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 41f84cfdedd..58a580d79c3 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -199,7 +199,7 @@ class email_server(osv.osv): pop_server.quit() - logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail fetch %s email(s) from %s' % (numMsgs, server.name)) + logger.notifyChannel(server.type, netsvc.LOG_INFO, 'fetchmail fetch %s email(s) from %s' % (numMsgs, server.name)) except Exception, e: logger.notifyChannel(server.type, netsvc.LOG_WARNING, '%s' % (tools.ustr(e))) From 6df880e9a4a092b1614154a68ef5f5eb31e1bf67 Mon Sep 17 00:00:00 2001 From: "Bhumika (OpenERP)" Date: Fri, 17 Jun 2011 13:57:38 +0530 Subject: [PATCH 09/56] [IMP]: fetchmail: improve the log message bzr revid: sbh@tinyerp.com-20110617082738-i0umdo9cptek6l4j --- addons/fetchmail/fetchmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 58a580d79c3..386b48f1546 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -116,7 +116,7 @@ class email_server(osv.osv): if context is None: context = {} for server in self.browse(cr, uid, ids, context=context): - logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail start checking for new emails on %s' % (server.name)) + logger.notifyChannel(server.type, netsvc.LOG_INFO, 'fetchmail start checking for new emails on %s' % (server.name)) context.update({'server_id': server.id, 'server_type': server.type}) try: if server.type == 'imap': From c89947c8fb60a3b2ae247a2a4d22f34c95a0de5c Mon Sep 17 00:00:00 2001 From: "DBR (OpenERP)" Date: Mon, 20 Jun 2011 10:42:42 +0530 Subject: [PATCH 10/56] [FIX] Fix the new step in the configuration for host name lp bug: https://launchpad.net/bugs/785673 fixed bzr revid: dbr@tinyerp.com-20110620051242-irs0jljjfpbkdbaq --- addons/caldav/wizard/caldav_browse.py | 24 ++++++++++++++++++--- addons/caldav/wizard/caldav_browse_view.xml | 22 +++++++++++++++++++ addons/crm_caldav/crm_caldav_view.xml | 2 +- 3 files changed, 44 insertions(+), 4 deletions(-) diff --git a/addons/caldav/wizard/caldav_browse.py b/addons/caldav/wizard/caldav_browse.py index 9e67f972216..134454627c1 100644 --- a/addons/caldav/wizard/caldav_browse.py +++ b/addons/caldav/wizard/caldav_browse.py @@ -197,8 +197,9 @@ configuration host = config.get('xmlrpc_interface', None) port = config.get('xmlrpc_port',8069) if host == '' or None: - host = 'localhost' - port = 8069 + obj = self.pool.get('user.preference').browse(cr,uid,uid,context) + host = obj.host_name + port = 8069 if not config.get_misc('webdav','enable',True): raise Exception("WebDAV is disabled, cannot continue") user_pool = self.pool.get('res.users') @@ -238,6 +239,7 @@ class user_preference(osv.osv_memory): 'calendar' :fields.many2one('basic.calendar', 'Calendar', required=True), 'service': fields.selection([('webdav','CalDAV')], "Services"), 'device' : fields.selection([('other', 'Other'), ('iphone', 'iPhone'), ('android', 'Android based device'),('thunderbird', 'Sunbird/Thunderbird'), ('evolution','Evolution')], "Software/Devices"), + 'host_name': fields.char('Host Name', size=64, required=True), } def _get_default_calendar(self, cr, uid, context): @@ -278,6 +280,22 @@ class user_preference(osv.osv_memory): 'target': 'new', 'context': context, } - + + def next_window(self, cr, uid, ids, context=None): + obj_model = self.pool.get('ir.model.data') + model_data_ids = obj_model.search(cr,uid,[('model','=','ir.ui.view'),('name','=','user_prefernce_form')]) + resource_id = obj_model.read(cr, uid, model_data_ids, fields=['res_id']) + context.update({'res_id': ids}) + resource_id = obj_model.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id'] + + return { + 'view_type': 'form', + 'view_mode': 'form', + 'res_model': 'user.preference', + 'views': [(resource_id,'form')], + 'type': 'ir.actions.act_window', + 'target': 'new', + 'context': context, + } user_preference() diff --git a/addons/caldav/wizard/caldav_browse_view.xml b/addons/caldav/wizard/caldav_browse_view.xml index 53af6029883..18429232de0 100644 --- a/addons/caldav/wizard/caldav_browse_view.xml +++ b/addons/caldav/wizard/caldav_browse_view.xml @@ -24,6 +24,28 @@ + + host_preference + user.preference + form + +
+ + +