Skip to content

Commit

Permalink
FIX advance preventive context from transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
jjscarafia committed Sep 18, 2015
1 parent f82a72f commit 140613e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sipreco_public_budget/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@
'installable': True,
'name': 'Public Budget Sipreco Customizations',
'test': [],
'version': '8.0.0.0.0'}
'version': '8.0.0.1.0'}
2 changes: 1 addition & 1 deletion sipreco_public_budget/views/transaction_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</form>
<!-- because it wont update till we save it we add definitive part tipe in context -->
<field name="advance_preventive_line_ids" position="attributes">
<attribute name="context">{'default_definitive_partner_type': definitive_partner_type}</attribute>
<attribute name="context">{'default_definitive_partner_type': definitive_partner_type, 'default_advance_line': 1, 'default_preventive_status': 'confirmed', 'advance_line': 1}</attribute>
</field>
<field name="preventive_line_ids" position="attributes">
<attribute name="context">{'default_definitive_partner_type': definitive_partner_type}</attribute>
Expand Down

0 comments on commit 140613e

Please sign in to comment.