Skip to content

Commit

Permalink
[FIX] base: ir field - set dependence as required when creating a com…
Browse files Browse the repository at this point in the history
…pute field.

When you create a computed field, if you don't set the dependencies field
Odoo raises a traceback keyerror for ''.

Courtesy of @odony
  • Loading branch information
JKE-be committed Mar 18, 2016
1 parent 58d587d commit f01c195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/addons/base/ir/ir_model_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
domain="[('ttype','=','serialized'), ('model_id', '=', model_id)]"
attrs="{'readonly': [('state','=','base')]}"/>
<field name="related"/>
<field name="depends"/>
<field name="depends" attrs="{'required': [('compute', '!=', False)] }"/>
<field name="compute"/>
</group>
<h3>How to define a computed field</h3>
Expand Down

0 comments on commit f01c195

Please sign in to comment.