[FIX]account: added country_code related field in account.bank.statement

closes odoo/odoo#59266

Related: odoo/enterprise#13844
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
Benjamin Frantzen (bfr)
2020-10-06 12:13:10 +00:00
parent 41a2a109c7
commit cc255de85b
2 changed files with 2 additions and 0 deletions
@@ -243,6 +243,7 @@ class AccountBankStatement(models.Model):
is_valid_balance_start = fields.Boolean(string="Is Valid Balance Start", store=True,
compute="_compute_is_valid_balance_start",
help="Technical field to display a warning message in case starting balance is different than previous ending balance")
country_code = fields.Char(related='company_id.country_id.code')
def write(self, values):
res = super(AccountBankStatement, self).write(values)
@@ -142,6 +142,7 @@
<!-- Invisible fields -->
<field name="all_lines_reconciled" invisible="1" />
<field name="move_line_count" invisible="1"/>
<field name="country_code" invisible="1"/>
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" name="button_journal_entries"