Skip to content

Commit

Permalink
[FIX] Taking away remnants of account_reversal module
Browse files Browse the repository at this point in the history
  • Loading branch information
hbto committed Dec 9, 2018
1 parent c840289 commit b399cd5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 31 deletions.
6 changes: 0 additions & 6 deletions account_multicurrency_revaluation/model/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,3 @@ class ResCompany(models.Model):
string='Currency gain & loss Default Journal',
domain=[('type', '=', 'general')],
)
reversable_revaluations = fields.Boolean(
string='Reversable Revaluations',
help="Revaluations entries will be created "
"as \"To Be Reversed\".",
default=True,
)
8 changes: 0 additions & 8 deletions account_multicurrency_revaluation/model/res_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,3 @@ class AccountConfigSettings(models.TransientModel):
default_model='res.company',
readonly=False,
)
reversable_revaluations = fields.Boolean(
related='company_id.reversable_revaluations',
string='Reversable Revaluations',
help="Revaluations entries will be created "
"as \"To Be Reversed\".",
default=True,
readonly=False,
)
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def get_lines(self):
LEFT join res_currency on
(account_move_line.currency_id = res_currency.id)
WHERE account_move_line.account_id = %s
AND account_move.to_be_reversed = true
AND account_move_line.gl_balance is not null
ORDER BY res_partner.name,
account_move_line.gl_foreign_balance,
Expand Down
14 changes: 0 additions & 14 deletions account_multicurrency_revaluation/views/res_config_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@
<xpath expr="//div[@id='invoicing_settings']" position="after">
<h2>Multicurrency revaluation</h2>
<div class="row mt16 o_settings_container" id="multicurrency_revaluation_settings">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="reversable_revaluations"/>
</div>
<div class="o_setting_right_pane">
<div class="content-group">
<label for="reversable_revaluations"/>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
<div class="text-muted">
Revaluations entries will be created as 'To Be Reversed'.
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ def _create_move_and_lines(
self, amount, debit_account_id, credit_account_id,
sums, label, form, partner_id, currency_id,
analytic_debit_acc_id=False, analytic_credit_acc_id=False):
reversable = form.journal_id.company_id.reversable_revaluations
base_move = {
'name': label,
'journal_id': form.journal_id.id,
'date': form.revaluation_date,
'to_be_reversed': reversable
}

base_line = {
Expand Down

0 comments on commit b399cd5

Please sign in to comment.