From 73297439ff4af6f78f42a4b4606bb144e158fbb2 Mon Sep 17 00:00:00 2001 From: Nhomar Hernandez Date: Mon, 12 Nov 2012 00:42:05 -0430 Subject: [PATCH 001/373] [FIX] Improved message when you define a view with an incorrect name in developing time lp bug: https://launchpad.net/bugs/1077794 fixed bzr revid: nhomar@gmail.com-20121112051205-a8uxa76xbwsn6jen --- openerp/addons/base/ir/ir_ui_view.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openerp/addons/base/ir/ir_ui_view.py b/openerp/addons/base/ir/ir_ui_view.py index 2f2a610877d..ba681938f70 100644 --- a/openerp/addons/base/ir/ir_ui_view.py +++ b/openerp/addons/base/ir/ir_ui_view.py @@ -121,8 +121,10 @@ class view(osv.osv): if no error occurred, else False. """ try: - fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context) - return fvg['arch'] + fvg = self.pool.get(view.model) and self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context) + if not fvg: + _logger.exception("Your view definition is wrong, model = '%s' defined on view = '%s' doesn't exist " % (view.model,view.name) ) + return fvg and fvg['arch'] or False except: _logger.exception("Can't render view %s for model: %s", view.xml_id, view.model) return False From f3d09104f9537f77c17b08bf060a440bb8e222db Mon Sep 17 00:00:00 2001 From: Vishmita Date: Thu, 29 Nov 2012 12:53:34 +0530 Subject: [PATCH 002/373] [FIX]onchange method for state bzr revid: vja@tinyerp.com-20121129072334-mz4ydyni8toz1u8p --- openerp/addons/base/res/res_company.py | 8 ++++++-- openerp/addons/base/res/res_company_view.xml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/openerp/addons/base/res/res_company.py b/openerp/addons/base/res/res_company.py index b2f3e812145..2fe919886cf 100644 --- a/openerp/addons/base/res/res_company.py +++ b/openerp/addons/base/res/res_company.py @@ -123,7 +123,7 @@ class res_company(osv.osv): 'street2': fields.function(_get_address_data, fnct_inv=_set_address_data, size=128, type='char', string="Street2", multi='address'), 'zip': fields.function(_get_address_data, fnct_inv=_set_address_data, size=24, type='char', string="Zip", multi='address'), 'city': fields.function(_get_address_data, fnct_inv=_set_address_data, size=24, type='char', string="City", multi='address'), - 'state_id': fields.function(_get_address_data, fnct_inv=_set_address_data, type='many2one', domain="[('country_id', '=', country_id)]", relation='res.country.state', string="Fed. State", multi='address'), + 'state_id': fields.function(_get_address_data, fnct_inv=_set_address_data, type='many2one', relation='res.country.state', string="Fed. State", multi='address'), 'bank_ids': fields.one2many('res.partner.bank','company_id', 'Bank Accounts', help='Bank accounts related to this company'), 'country_id': fields.function(_get_address_data, fnct_inv=_set_address_data, type='many2one', relation='res.country', string="Country", multi='address'), 'email': fields.function(_get_address_data, fnct_inv=_set_address_data, size=64, type='char', string="Email", multi='address'), @@ -160,7 +160,11 @@ class res_company(osv.osv): res += '\n%s: %s' % (title, ', '.join(name for id, name in account_names)) return {'value': {'rml_footer': res, 'rml_footer_readonly': res}} - + def onchange_state(self, cr, uid, ids, state_id, context=None): + if state_id: + country_id = self.pool.get('res.country.state').browse(cr, uid, state_id, context).country_id.id + return {'value':{'country_id':country_id}} + return {} def on_change_country(self, cr, uid, ids, country_id, context=None): currency_id = self._get_euro(cr, uid, context=context) if country_id: diff --git a/openerp/addons/base/res/res_company_view.xml b/openerp/addons/base/res/res_company_view.xml index 1cc9b5bd833..c0893e2a42e 100644 --- a/openerp/addons/base/res/res_company_view.xml +++ b/openerp/addons/base/res/res_company_view.xml @@ -46,7 +46,7 @@
- +
From c5d1c296329a9b5845a3ee74b4dd1be41ecd2a7c Mon Sep 17 00:00:00 2001 From: Vishmita Date: Thu, 29 Nov 2012 13:03:27 +0530 Subject: [PATCH 003/373] [FIX]Change Timesheet(hr_timesheet) module name bzr revid: vja@tinyerp.com-20121129073327-q8ij3lpvxel0p7as --- addons/hr_timesheet/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet/__openerp__.py b/addons/hr_timesheet/__openerp__.py index bff25e8e55d..fa14c45f84a 100644 --- a/addons/hr_timesheet/__openerp__.py +++ b/addons/hr_timesheet/__openerp__.py @@ -21,7 +21,7 @@ { - 'name': 'Timesheets', + 'name': 'Time Tracking', 'version': '1.0', 'category': 'Human Resources', 'sequence': 23, From 36c13a66b08c1fdcf4a48c006bdc2e26bf8f95b0 Mon Sep 17 00:00:00 2001 From: ggh-openerp Date: Thu, 29 Nov 2012 15:50:30 +0530 Subject: [PATCH 004/373] [Imp] Improved code for Event module bzr revid: ggh@tinyerp.com-20121129102030-iyn0ct8dmfa00al8 --- addons/event/event_view.xml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml index 9a548679dd3..3ee83a8553e 100644 --- a/addons/event/event_view.xml +++ b/addons/event/event_view.xml @@ -6,7 +6,7 @@ event.registration form Registrations - calendar,tree,form,graph + tree,form,calendar,graph {'search_default_event_id': active_id, 'default_event_id': active_id} @@ -137,19 +137,13 @@ - - + + - - - - - - + + - - - + From 50bb815990ddf6f0ec20751e561b78155e967beb Mon Sep 17 00:00:00 2001 From: Vishmita Date: Thu, 29 Nov 2012 18:17:28 +0530 Subject: [PATCH 005/373] [FIX]Add buttons in Email form bzr revid: vja@tinyerp.com-20121129124728-7wg53p69cqrkw7dp --- addons/mail/mail_mail_view.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/mail/mail_mail_view.xml b/addons/mail/mail_mail_view.xml index 72d41e33a84..7cfda6f78e3 100644 --- a/addons/mail/mail_mail_view.xml +++ b/addons/mail/mail_mail_view.xml @@ -6,6 +6,11 @@ mail.mail
+
+