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

Proposed by Bhumika Shrimali
Status: Merged
Merged at revision: 4424
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-dev-addons1
Merge into: lp:openobject-addons
Diff against target: 177 lines (+32/-15)
9 files modified
crm/crm.py (+13/-1)
crm/crm_meeting_view.xml (+1/-1)
crm/wizard/crm_add_note_view.xml (+1/-1)
l10n_ch/wizard/create_dta.py (+0/-1)
mrp/mrp.py (+1/-2)
project/wizard/project_task_close.py (+9/-3)
project/wizard/project_task_delegate.py (+4/-4)
project_planning/project_planning_demo.xml (+2/-2)
thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-dev-addons1
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+48469@code.launchpad.net

Description of the change

Bug fixes by addons1 team

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'crm/crm.py'
2--- crm/crm.py 2011-01-14 00:11:01 +0000
3+++ crm/crm.py 2011-02-17 10:06:23 +0000
4@@ -303,7 +303,10 @@
5 if not add:
6 return {'value': {'email_from': False}}
7 address = self.pool.get('res.partner.address').browse(cr, uid, add)
8- return {'value': {'email_from': address.email, 'phone': address.phone}}
9+ if address.email:
10+ return {'value': {'email_from': address.email, 'phone': address.phone}}
11+ else:
12+ return {'value': {'phone': address.phone}}
13
14 def _history(self, cr, uid, cases, keyword, history=False, subject=None, email=False, details=None, email_from=False, message_id=False, attach=[], context=None):
15 mailgate_pool = self.pool.get('mailgate.thread')
16@@ -742,6 +745,15 @@
17 _columns = {
18 'context_section_id': fields.many2one('crm.case.section', 'Sales Team'),
19 }
20+ def write(self, cr, uid, ids, vals, context=None):
21+ res = super(users, self).write(cr, uid, ids, vals, context=context)
22+ section_obj=self.pool.get('crm.case.section')
23+ if isinstance(ids, (str, int, long)):
24+ ids = [ids]
25+ for user in self.browse(cr, uid, ids, context):
26+ if user.context_section_id:
27+ section_obj.write(cr, uid, [user.context_section_id.id], {'member_ids':[(4, user.id)]},context)
28+ return res
29 users()
30
31
32
33=== modified file 'crm/crm_meeting_view.xml'
34--- crm/crm_meeting_view.xml 2011-01-20 17:20:12 +0000
35+++ crm/crm_meeting_view.xml 2011-02-17 10:06:23 +0000
36@@ -59,7 +59,7 @@
37 <field name="section_id" widget="selection"
38 groups="base.group_extended"/>
39 </group><group col="2" colspan="2">
40- <separator colspan="2" string="Contacts"/>
41+ <separator colspan="2" string="Contact"/>
42 <field name="partner_id" string="Partner"
43 on_change="onchange_partner_id(partner_id)" />
44 <field name="partner_address_id"
45
46=== modified file 'crm/wizard/crm_add_note_view.xml'
47--- crm/wizard/crm_add_note_view.xml 2011-01-14 00:11:01 +0000
48+++ crm/wizard/crm_add_note_view.xml 2011-02-17 10:06:23 +0000
49@@ -30,7 +30,7 @@
50 <separator string="" colspan="6"/>
51 <group colspan="6" col="4" >
52 <field name="state" />
53- <button string="_Cancel" icon="gtk-cancel" special="cancel" />
54+ <button string="_Cancel" icon="gtk-close" special="cancel" />
55 <button name="action_add" type="object" string="_Add" icon="gtk-ok" />
56 </group>
57 </form>
58
59=== modified file 'l10n_ch/wizard/create_dta.py'
60--- l10n_ch/wizard/create_dta.py 2011-01-24 13:21:29 +0000
61+++ l10n_ch/wizard/create_dta.py 2011-02-17 10:06:23 +0000
62@@ -374,7 +374,6 @@
63 raise osv.except_osv(_('Error'),
64 _('No IBAN for the company bank account.'))
65
66- dta_line_obj = pool.get('account.dta.line')
67 res_partner_bank_obj = pool.get('res.partner.bank')
68
69 seq = 1
70
71=== modified file 'mrp/mrp.py'
72--- mrp/mrp.py 2011-02-14 11:45:07 +0000
73+++ mrp/mrp.py 2011-02-17 10:06:23 +0000
74@@ -672,7 +672,6 @@
75 stock_mov_obj = self.pool.get('stock.move')
76 production = self.browse(cr, uid, production_id, context=context)
77
78- final_product_todo = []
79
80 produced_qty = 0
81 if production_mode == 'consume_produce':
82@@ -714,7 +713,7 @@
83
84 if production_mode == 'consume_produce':
85 # To produce remaining qty of final product
86- vals = {'state':'confirmed'}
87+ #vals = {'state':'confirmed'}
88 #final_product_todo = [x.id for x in production.move_created_ids]
89 #stock_mov_obj.write(cr, uid, final_product_todo, vals)
90 #stock_mov_obj.action_confirm(cr, uid, final_product_todo, context)
91
92=== modified file 'project/wizard/project_task_close.py'
93--- project/wizard/project_task_close.py 2011-01-14 00:11:01 +0000
94+++ project/wizard/project_task_close.py 2011-02-17 10:06:23 +0000
95@@ -22,7 +22,7 @@
96 from osv import fields, osv
97 import tools
98 from tools.translate import _
99-
100+import re
101 class project_task_close(osv.osv_memory):
102 """
103 Close Task
104@@ -99,8 +99,14 @@
105 }
106
107 to_adr = []
108- header = (project.warn_header or '') % val
109- footer = (project.warn_footer or '') % val
110+ header = footer = ''
111+ try:
112+ header_str = (project.warn_header or '')
113+ footer_str = (project.warn_footer or '')
114+ header = (re.sub(r'\%\W*\(', '%(', header_str)) % val
115+ footer = (re.sub(r'\%\W*\(', '%(', footer_str)) % val
116+ except:
117+ raise osv.except_osv(_('Error'), _("Invlaid automatic variables used in project header or foooter."))
118 body = u'%s\n%s\n%s\n\n-- \n%s' % (header, task.description, footer, signature)
119 if data.manager_warn and data.manager_email:
120 to_adr.append(data.manager_email)
121
122=== modified file 'project/wizard/project_task_delegate.py'
123--- project/wizard/project_task_delegate.py 2011-01-14 00:11:01 +0000
124+++ project/wizard/project_task_delegate.py 2011-02-17 10:06:23 +0000
125@@ -53,17 +53,17 @@
126
127 if 'name' in fields:
128 if task_name.startswith(_('CHECK: ')):
129- newname = str(task_name).replace(_('CHECK: '), '')
130+ newname = tools.ustr(task_name).replace(_('CHECK: '), '')
131 else:
132- newname = task_name or ''
133+ newname = tools.ustr(task_name or '')
134 res.update({'name': newname})
135 if 'planned_hours' in fields:
136 res.update({'planned_hours': task.remaining_hours or 0.0})
137 if 'prefix' in fields:
138 if task_name.startswith(_('CHECK: ')):
139- newname = str(task_name).replace(_('CHECK: '), '')
140+ newname = tools.ustr(task_name).replace(_('CHECK: '), '')
141 else:
142- newname = task_name or ''
143+ newname = tools.ustr(task_name or '')
144 prefix = _('CHECK: ') + newname
145 res.update({'prefix': prefix})
146 if 'new_task_description' in fields:
147
148=== modified file 'project_planning/project_planning_demo.xml'
149--- project_planning/project_planning_demo.xml 2011-02-01 15:50:23 +0000
150+++ project_planning/project_planning_demo.xml 2011-02-17 10:06:23 +0000
151@@ -7,8 +7,8 @@
152 <record id="project_plannning_1" model="report_account_analytic.planning">
153 <field name="name">Project_Planning</field>
154 <field name="business_days">20</field>
155- <field name="date_from" eval="time.strftime('%Y-%m-01 10:00:00')"/>
156- <field name="date_to" eval="time.strftime('%Y-%m-28 15:00:00')"/>
157+ <field name="date_from" eval="time.strftime('%Y-%m-01')"/>
158+ <field name="date_to" eval="time.strftime('%Y-%m-28')"/>
159 <field name="state">open</field>
160 <field name="user_id" ref="project.res_users_project_manager"/>
161 </record>
162
163=== modified file 'thunderbird/plugin/openerp_plugin.xpi'
164Binary files thunderbird/plugin/openerp_plugin.xpi 2011-02-14 11:45:07 +0000 and thunderbird/plugin/openerp_plugin.xpi 2011-02-17 10:06:23 +0000 differ
165=== modified file 'thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar'
166Binary files thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar 2011-02-14 11:45:07 +0000 and thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar 2011-02-17 10:06:23 +0000 differ
167=== modified file 'thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js'
168--- thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js 2011-02-01 14:25:28 +0000
169+++ thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js 2011-02-17 10:06:23 +0000
170@@ -1384,6 +1384,7 @@
171 xmlRpcClient.asyncCall(listPartnerHandler,cmdPartnerList,'execute',[ strDbName,struid,strpass,strobj,strmethod,strvalue ],6);
172 }
173
174+
175 //function to create the xmlrpc supported variables for xmlrpc request
176 function dictcontact(a,b){
177 var temp = xmlRpcClient.createType(xmlRpcClient.ARRAY,{});

Subscribers

People subscribed via source and target branches

to all changes: