Skip to content

Commit

Permalink
[FIX] point_of_sale: bank statement currency field renamed
Browse files Browse the repository at this point in the history
In the refactoring of v9.0 accounting module (c04065a) the currency
field on account.bank.statement has been renamed currency_id.

sentry-32303830312e3239303433353734
  • Loading branch information
nle-odoo committed Oct 20, 2015
1 parent eca1983 commit 91f3e5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/point_of_sale/static/src/js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ exports.PosModel = Backbone.Model.extend({
},
},{
model: 'account.bank.statement',
fields: ['account_id','currency','journal_id','state','name','user_id','pos_session_id'],
fields: ['account_id','currency_id','journal_id','state','name','user_id','pos_session_id'],
domain: function(self){ return [['state', '=', 'open'],['pos_session_id', '=', self.pos_session.id]]; },
loaded: function(self, cashregisters, tmp){
self.cashregisters = cashregisters;
Expand Down
10 changes: 5 additions & 5 deletions addons/point_of_sale/views/report_sessionsummary.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@
<td><span t-field="statement.journal_id"/></td>
<td class="text-right">
<span t-field="statement.balance_start"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
<td class="text-right">
<span t-field="statement.total_entry_encoding"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
<td class="text-right">
<span t-field="statement.balance_end_real"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
<td class="text-right">
<span t-field="statement.difference"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
<td class="text-right" groups="base.group_multi_currency">
<span t-field="statement.currency"
Expand Down Expand Up @@ -110,7 +110,7 @@
<td><span t-field="line.account_id"/></td>
<td class="text-right">
<span t-field="line.amount"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency"}'/>
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 91f3e5a

Please sign in to comment.