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/web_kanban/static/src/js/kanban.js

Resolved by reverting 0d3971a5
in favour of odoo@11cd8ba06
  • Loading branch information
OCA git bot authored and OCA git bot committed Aug 17, 2015
2 parents 62b1e03 + 11cd8ba commit c6c3d78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions addons/account/account_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def post_write(self, cr, uid, ids, context=None):
# No liquidity account exists, no template available
if not ids: continue

ref_acc_bank = obj_acc.browse(cr, uid, ids[0], context=context).parent_id
sibbling_acc_bank = obj_acc.browse(cr, uid, ids[0], context=context)
ref_acc_bank = sibbling_acc_bank.parent_id
while True:
new_code = str(ref_acc_bank.code.ljust(dig-len(str(current_num)), '0')) + str(current_num)
ids = obj_acc.search(cr, uid, [('code', '=', new_code), ('company_id', '=', bank.company_id.id)])
Expand All @@ -81,7 +82,7 @@ def post_write(self, cr, uid, ids, context=None):
'name': name,
'code': new_code,
'type': 'liquidity',
'user_type': ref_acc_bank.user_type.id,
'user_type': sibbling_acc_bank.user_type.id,
'reconcile': False,
'parent_id': ref_acc_bank.id,
'company_id': bank.company_id.id,
Expand Down
2 changes: 1 addition & 1 deletion addons/web_kanban/static/src/js/kanban.js
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ instance.web_kanban.KanbanRecord = instance.web.Widget.extend({
email = _.str.trim(email || '').toLowerCase();
var default_ = _.str.isBlank(email) ? 'mm' : 'identicon';
var email_md5 = $.md5(email);
return 'https://www.gravatar.com/avatar/' + email_md5 + '.png?s=' + size + '&d=' + default_;
return '//www.gravatar.com/avatar/' + email_md5 + '.png?s=' + size + '&d=' + default_;
},
kanban_image: function(model, field, id, cache, options) {
options = options || {};
Expand Down

0 comments on commit c6c3d78

Please sign in to comment.