mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
account_reconciliation_widget: Add date field account_bank_reconciliation_start on accounting config page
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
from . import models
|
from . import models
|
||||||
|
from . import wizards
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"depends": ["account"],
|
"depends": ["account"],
|
||||||
"data": [
|
"data": [
|
||||||
"security/ir.model.access.csv",
|
"security/ir.model.access.csv",
|
||||||
|
"wizards/res_config_settings_views.xml",
|
||||||
"views/assets.xml",
|
"views/assets.xml",
|
||||||
"views/account_view.xml",
|
"views/account_view.xml",
|
||||||
"views/account_bank_statement_view.xml",
|
"views/account_bank_statement_view.xml",
|
||||||
|
|||||||
1
account_reconciliation_widget/wizards/__init__.py
Normal file
1
account_reconciliation_widget/wizards/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from . import res_config_settings
|
||||||
13
account_reconciliation_widget/wizards/res_config_settings.py
Normal file
13
account_reconciliation_widget/wizards/res_config_settings.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 2022 Akretion France (http://www.akretion.com/)
|
||||||
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
|
class ResConfigSettings(models.TransientModel):
|
||||||
|
_inherit = 'res.config.settings'
|
||||||
|
|
||||||
|
account_bank_reconciliation_start = fields.Date(
|
||||||
|
related="company_id.account_bank_reconciliation_start",
|
||||||
|
readonly=False)
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright 2022 Akretion France (http://www.akretion.com/)
|
||||||
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
-->
|
||||||
|
|
||||||
|
<odoo>
|
||||||
|
|
||||||
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||||
|
<field name="model">res.config.settings</field>
|
||||||
|
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//div[@id='bank_cash']" position="inside">
|
||||||
|
<div class="col-xs-12 col-md-6 o_setting_box" id="account_bank_reconciliation_start">
|
||||||
|
<div class="o_setting_left_pane"/>
|
||||||
|
<div class="o_setting_right_pane">
|
||||||
|
<label for="account_bank_reconciliation_start"/>
|
||||||
|
<div class="text-muted">
|
||||||
|
Date from which you started using bank statements in Odoo. Leave empty if you've been using bank statements in Odoo from the start.
|
||||||
|
</div>
|
||||||
|
<field name="account_bank_reconciliation_start"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user