Skip to content

Commit

Permalink
[MERGE] forward port of branch 7.0 up to 100eba8
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Jun 11, 2014
2 parents 387093a + 100eba8 commit 3c7a54a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/account_voucher/voucher_payment_receipt_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@
<field name="writeoff_amount" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<field name="payment_option" required="1" attrs="{'invisible':[('writeoff_amount','=',0)]}"/>
<field name="writeoff_acc_id"
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)], 'required':[('payment_option','=','with_writeoff')]}"
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)], 'required':[('payment_option','=','with_writeoff'), ('writeoff_amount','!=',0)]}"
domain="[('type','=','other')]"/>
<field name="comment"
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)]}"/>
Expand Down
2 changes: 1 addition & 1 deletion openerp/osv/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ def get(self, cr, obj, ids, name, uid=False, context=None, values=None):
if values and not multi and name in values[0]:
result = {v['id']: v[name] for v in values}
elif values and multi and all(n in values[0] for n in name):
result = {v['id']: dict({n: v[n]} for n in name) for v in values}
result = {v['id']: dict((n, v[n]) for n in name) for v in values}
else:
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
for id in ids:
Expand Down

0 comments on commit 3c7a54a

Please sign in to comment.