[IMP] account: make currency_exchange_journal_id field visible in settings

This commit is contained in:
qdp-odoo
2018-01-18 08:00:45 +01:00
committed by Nicolas Martinelli
parent 73c9b3d014
commit 6e9163150e
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -14,6 +14,12 @@ class AccountConfigSettings(models.TransientModel):
default=lambda self: self.env.user.company_id)
currency_id = fields.Many2one('res.currency', related="company_id.currency_id", required=True,
string='Currency', help="Main currency of the company.")
currency_exchange_journal_id = fields.Many2one(
'account.journal',
related='company_id.currency_exchange_journal_id',
string="Exchange Gain or Loss Journal",
domain=[('type', '=', 'general')],
help='The accounting journal where automatic exchange differences will be registered')
has_chart_of_accounts = fields.Boolean(compute='_compute_has_chart_of_accounts', string='Company has a chart of accounts')
chart_template_id = fields.Many2one('account.chart.template', string='Template',
domain="[('visible','=', True)]")
+4
View File
@@ -128,6 +128,10 @@
<div class="mt16">
<button name="%(base.action_currency_form_company)d" icon="fa-arrow-right" type="action" string="Currencies" class="btn-link"/>
</div>
<div class="row mt16">
<label for="currency_exchange_journal_id" class="col-md-3 o_light_label"/>
<field name="currency_exchange_journal_id"/>
</div>
</div>
</div>
</div>