Skip to content

Commit

Permalink
Merge remote-tracking branch 'odoo/7.0' into 7.0
Browse files Browse the repository at this point in the history
Conflicts:
	addons/analytic/analytic_view.xml
  • Loading branch information
OCA git bot authored and OCA git bot committed Mar 4, 2015
2 parents 9f40468 + 56f3f01 commit 44a991a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/analytic/analytic_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<field name="type" invisible="context.get('default_type', False)"/>
<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'}"/>
<field name="code"/>
<field name="parent_id" on_change="on_change_parent(parent_id)"/>
<field name="parent_id" on_change="on_change_parent(parent_id)" />
<field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','&lt;&gt;','view')]}"/>
</group>
</group>
Expand Down
4 changes: 2 additions & 2 deletions addons/board/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from operator import itemgetter
from textwrap import dedent

from openerp import tools
from openerp import tools, SUPERUSER_ID
from openerp.osv import fields, osv

class board_board(osv.osv):
Expand Down Expand Up @@ -144,7 +144,7 @@ def board_create(self, cr, uid, ids, context=None):
''')
}, context=context)

menu_id = self.pool.get('ir.ui.menu').create(cr, uid, {
menu_id = self.pool.get('ir.ui.menu').create(cr, SUPERUSER_ID, {
'name': this.name,
'parent_id': this.menu_parent_id.id,
'action': 'ir.actions.act_window,%s' % (action_id,)
Expand Down
2 changes: 2 additions & 0 deletions addons/crm/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ def on_change_partner(self, cr, uid, ids, partner_id, context=None):
partner = self.pool.get('res.partner').browse(cr, uid, partner_id, context=context)
values = {
'partner_name' : partner.name,
'title': partner.title and partner.title.id or False,
'street' : partner.street,
'street2' : partner.street2,
'city' : partner.city,
Expand All @@ -359,6 +360,7 @@ def on_change_partner(self, cr, uid, ids, partner_id, context=None):
'mobile' : partner.mobile,
'fax' : partner.fax,
'zip': partner.zip,
'function': partner.function,
}
return {'value' : values}

Expand Down

0 comments on commit 44a991a

Please sign in to comment.