Skip to content

Commit 44a991a

Browse files
OCA git botOCA git bot
OCA git bot
authored and
OCA git bot
committed
Merge remote-tracking branch 'odoo/7.0' into 7.0
Conflicts: addons/analytic/analytic_view.xml
2 parents 9f40468 + 56f3f01 commit 44a991a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

addons/analytic/analytic_view.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<field name="type" invisible="context.get('default_type', False)"/>
3030
<field name="template_id" on_change="on_change_template(template_id,context)" domain="[('type','=','template')]" attrs="{'invisible': [('type','in',['view', 'normal','template'])]}" context="{'default_type' : 'template'}"/>
3131
<field name="code"/>
32-
<field name="parent_id" on_change="on_change_parent(parent_id)"/>
32+
<field name="parent_id" on_change="on_change_parent(parent_id)" />
3333
<field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','&lt;&gt;','view')]}"/>
3434
</group>
3535
</group>

addons/board/board.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from operator import itemgetter
2424
from textwrap import dedent
2525

26-
from openerp import tools
26+
from openerp import tools, SUPERUSER_ID
2727
from openerp.osv import fields, osv
2828

2929
class board_board(osv.osv):
@@ -144,7 +144,7 @@ def board_create(self, cr, uid, ids, context=None):
144144
''')
145145
}, context=context)
146146

147-
menu_id = self.pool.get('ir.ui.menu').create(cr, uid, {
147+
menu_id = self.pool.get('ir.ui.menu').create(cr, SUPERUSER_ID, {
148148
'name': this.name,
149149
'parent_id': this.menu_parent_id.id,
150150
'action': 'ir.actions.act_window,%s' % (action_id,)

addons/crm/crm_lead.py

+2
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def on_change_partner(self, cr, uid, ids, partner_id, context=None):
349349
partner = self.pool.get('res.partner').browse(cr, uid, partner_id, context=context)
350350
values = {
351351
'partner_name' : partner.name,
352+
'title': partner.title and partner.title.id or False,
352353
'street' : partner.street,
353354
'street2' : partner.street2,
354355
'city' : partner.city,
@@ -359,6 +360,7 @@ def on_change_partner(self, cr, uid, ids, partner_id, context=None):
359360
'mobile' : partner.mobile,
360361
'fax' : partner.fax,
361362
'zip': partner.zip,
363+
'function': partner.function,
362364
}
363365
return {'value' : values}
364366

0 commit comments

Comments
 (0)