Skip to content

Commit

Permalink
fixup! fixup! [ADD] l10n_de_dtvf
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Mar 17, 2023
1 parent 7a2422e commit e985fe4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions l10n_de_dtvf/models/account_account.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2022 Hunki Enterprises BV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models


class AccountAccount(models.Model):
_inherit = "account.account"

datev_export_nonautomatic = fields.Boolean(
"Suppress automatic calculations in DATEV",
help="When this flag is set, journal items from this account will be exported "
"with field 'BU-Schlussel' set to '40', which inhibits automatic calculations "
"in DATEV.",
)
18 changes: 18 additions & 0 deletions l10n_de_dtvf/views/account_account.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 Hunki Enterprises BV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

<record id="view_account_account_form" model="ir.ui.view">
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_form" />
<field name="arch" type="xml">
<group position="after">
<group name="l10n_de_dtvf">
<field name="datev_export_nonautomatic" />
</group>
</group>
</field>
</record>

</odoo>

0 comments on commit e985fe4

Please sign in to comment.