diff --git a/account_move_accrual_entry/README.rst b/account_move_accrual_entry/README.rst new file mode 100644 index 000000000..dbe0a4c3d --- /dev/null +++ b/account_move_accrual_entry/README.rst @@ -0,0 +1,85 @@ +===================== +Accrual Journal Entry +===================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:dab6460f4d456b07fd5adbd5bd0275c06375bdd6296cc6db5938b95bf31f2f45 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-NuoBiT%2Fodoo--addons-lightgray.png?logo=github + :target: https://github.com/NuoBiT/odoo-addons/tree/18.0/account_move_accrual_entry + :alt: NuoBiT/odoo-addons + +|badge1| |badge2| |badge3| + +This module creates a journal entry at accrual date and adds a +smart-button in the invoice to access it + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module, you need to go to invoice settings and set the +following parameters: + +- Default accrual account +- Default accrual asset account type + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* NuoBiT Solutions SL + +Contributors +------------ + +- `NuoBiT `__: + + - Frank Cespedes fcespedes@nuobit.com + - Eric Antones eantones@nuobit.com + - Deniz Gallo dgallo@nuobit.com + +Maintainers +----------- + +.. |maintainer-FrankC013| image:: https://github.com/FrankC013.png?size=40px + :target: https://github.com/FrankC013 + :alt: FrankC013 +.. |maintainer-eantones| image:: https://github.com/eantones.png?size=40px + :target: https://github.com/eantones + :alt: eantones + +Current maintainers: + +|maintainer-FrankC013| |maintainer-eantones| + +This module is part of the `NuoBiT/odoo-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/account_move_accrual_entry/__init__.py b/account_move_accrual_entry/__init__.py new file mode 100644 index 000000000..21101d349 --- /dev/null +++ b/account_move_accrual_entry/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from . import models diff --git a/account_move_accrual_entry/__manifest__.py b/account_move_accrual_entry/__manifest__.py new file mode 100644 index 000000000..24526cc69 --- /dev/null +++ b/account_move_accrual_entry/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright NuoBiT Solutions SL - Frank Cespedes +# Copyright NuoBiT Solutions SL - Eric Antones +# Copyright 2025 NuoBiT Solutions SL - Deniz Gallo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +{ + "name": "Accrual Journal Entry", + "summary": "This module create journal entry with accrual date", + "version": "18.0.1.0.0", + "category": "Accounting", + "author": "NuoBiT Solutions SL", + "website": "https://github.com/NuoBiT/odoo-addons", + "license": "AGPL-3", + "depends": ["account"], + "data": [ + "views/account_move_views.xml", + "views/res_config_settings_views.xml", + ], + "maintainers": ["FrankC013", "eantones"], +} diff --git a/account_move_accrual_entry/i18n/es.po b/account_move_accrual_entry/i18n/es.po new file mode 100644 index 000000000..617105441 --- /dev/null +++ b/account_move_accrual_entry/i18n/es.po @@ -0,0 +1,181 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_move_accrual_entry +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-05-16 16:31+0000\n" +"PO-Revision-Date: 2023-05-16 16:31+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_move_accrual_entry +#: model_terms:ir.ui.view,arch_db:account_move_accrual_entry.res_config_settings_view_form_inherit_account_sii +msgid "" +"Accrual Parameters\n" +" " +msgstr "" +"Parámetros de periodificación\n" +" " + +#. module: account_move_accrual_entry +#: model_terms:ir.ui.view,arch_db:account_move_accrual_entry.view_move_form +msgid "Accrual entry" +msgstr "Asiento Periodif." + +#. module: account_move_accrual_entry +#: model_terms:ir.ui.view,arch_db:account_move_accrual_entry.res_config_settings_view_form_inherit_account_sii +msgid "Account" +msgstr "Cuenta" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move_line__accrual_account_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_company__accrual_account_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_config_settings__accrual_account_id +msgid "Accrual Account" +msgstr "Cuenta de periodificación" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_company__accrual_account_asset_type_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_config_settings__accrual_account_asset_type_id +msgid "Accrual Account Asset Type" +msgstr "Tipo de cuenta de activo" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_bank_statement_line__accrual_date +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move__accrual_date +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move_line__accrual_date +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_payment__accrual_date +msgid "Accrual Date" +msgstr "Fecha de periodificación" + +#. module: account_move_accrual_entry +#: code:addons/account_move_accrual_entry/models/account_move.py:0 +#, python-format +msgid "Accrual Journal Entry" +msgstr "Asiento de periodificación" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_bank_statement_line__accrual_move_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move__accrual_move_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_payment__accrual_move_id +msgid "Accrual Move" +msgstr "" + +#. module: account_move_accrual_entry +#: model_terms:ir.ui.view,arch_db:account_move_accrual_entry.res_config_settings_view_form_inherit_account_sii +msgid "Accrual parameters used on sale invoices" +msgstr "Parámetros de periodificación usados en facturas de venta" + +#. module: account_move_accrual_entry +#: model_terms:ir.ui.view,arch_db:account_move_accrual_entry.res_config_settings_view_form_inherit_account_sii +msgid "Journal" +msgstr "Diario" + +#. module: account_move_accrual_entry +#: model_terms:ir.ui.view,arch_db:account_move_accrual_entry.res_config_settings_view_form_inherit_account_sii +msgid "Asset account type" +msgstr "Tipo de cuenta de activo" + +#. module: account_move_accrual_entry +#: model:ir.model,name:account_move_accrual_entry.model_res_company +msgid "Companies" +msgstr "Compañías" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_bank_statement_line__company_accrual_account_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move__company_accrual_account_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_payment__company_accrual_account_id +msgid "Company Accrual Account" +msgstr "" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_bank_statement_line__company_accrual_account_asset_type_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move__company_accrual_account_asset_type_id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_payment__company_accrual_account_asset_type_id +msgid "Company Accrual Account Asset Type" +msgstr "" + +#. module: account_move_accrual_entry +#: model:ir.model,name:account_move_accrual_entry.model_res_config_settings +msgid "Config Settings" +msgstr "Opciones de configuración" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move__display_name +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move_line__display_name +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_company__display_name +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_config_settings__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move__id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move_line__id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_company__id +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: account_move_accrual_entry +#: code:addons/account_move_accrual_entry/models/account_move.py:0 +#, python-format +msgid "" +"It's not allowed to create an Accrual Journal Entry if there's assets in the" +" invoice" +msgstr "No está permitido crear el asiento de periodificación si la factura contiene activos" + +#. module: account_move_accrual_entry +#: model:ir.model,name:account_move_accrual_entry.model_account_move +msgid "Journal Entry" +msgstr "Asiento contable" + +#. module: account_move_accrual_entry +#: model:ir.model,name:account_move_accrual_entry.model_account_move_line +msgid "Journal Item" +msgstr "Apunte contable" + +#. module: account_move_accrual_entry +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move____last_update +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_account_move_line____last_update +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_company____last_update +#: model:ir.model.fields,field_description:account_move_accrual_entry.field_res_config_settings____last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: account_move_accrual_entry +#: code:addons/account_move_accrual_entry/models/account_move.py:0 +#, python-format +msgid "Please set the account type for assets in the invoicing settings." +msgstr "" +"Por favor, establezca el tipo de cuenta para activos en la configuración de " +"facturación." + +#. module: account_move_accrual_entry +#: code:addons/account_move_accrual_entry/models/account_move.py:0 +#, python-format +msgid "Please set the accrual journal in the invoicing settings." +msgstr "" +"Por favor, establezca el diario de periodificación en la configuración de " +"facturación." + +#. module: account_move_accrual_entry +#: code:addons/account_move_accrual_entry/models/account_move.py:0 +#, python-format +msgid "Please set the accrual account in the invoicing settings." +msgstr "" +"Por favor, establezca la cuenta de periodificación en la configuración de " +"facturación." + +#. module: account_move_accrual_entry +#: code:addons/account_move_accrual_entry/models/account_move.py:0 +#, python-format +msgid "The accrual date must be prior to the invoice date" +msgstr "" +"La fecha de periodificación debe ser anterior a la fecha de la factura" diff --git a/account_move_accrual_entry/models/__init__.py b/account_move_accrual_entry/models/__init__.py new file mode 100644 index 000000000..1c3a7bdd4 --- /dev/null +++ b/account_move_accrual_entry/models/__init__.py @@ -0,0 +1,4 @@ +from . import account_move_line +from . import account_move +from . import res_config_settings +from . import res_company diff --git a/account_move_accrual_entry/models/account_move.py b/account_move_accrual_entry/models/account_move.py new file mode 100644 index 000000000..ec137bcb5 --- /dev/null +++ b/account_move_accrual_entry/models/account_move.py @@ -0,0 +1,182 @@ +# Copyright NuoBiT Solutions SL - Frank Cespedes +# Copyright NuoBiT Solutions SL - Eric Antones +# Copyright 2025 NuoBiT Solutions SL - Deniz Gallo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +from odoo import _, api, fields, models +from odoo.exceptions import UserError, ValidationError + + +class AccountMove(models.Model): + _inherit = "account.move" + + accrual_date = fields.Date() + accrual_move_id = fields.Many2one( + comodel_name="account.move", + copy=False, + readonly=True, + ) + + # auxiliar computed fields to simplify the validations and make the code clear + company_accrual_account_id = fields.Many2one( + comodel_name="account.account", + compute="_compute_company_accrual_account_id", + ) + + @api.depends("company_id") + def _compute_company_accrual_account_id(self): + for rec in self: + if rec.move_type in ("out_invoice", "out_refund"): + accrual_account = rec.company_id.accrual_account_id + if rec.company_id and rec.accrual_date and not accrual_account: + raise UserError( + _( + "Please set the accrual" + " account in the invoicing settings." + ) + ) + rec.company_accrual_account_id = accrual_account + else: + rec.company_accrual_account_id = False + + company_accrual_journal_id = fields.Many2one( + comodel_name="account.journal", + compute="_compute_company_accrual_journal_id", + ) + + @api.depends("company_id") + def _compute_company_accrual_journal_id(self): + for rec in self: + if rec.move_type in ("out_invoice", "out_refund"): + accrual_journal = rec.company_id.accrual_journal_id + if rec.company_id and rec.accrual_date and not accrual_journal: + raise UserError( + _( + "Please set the accrual " + "journal in the invoicing settings." + ) + ) + rec.company_accrual_journal_id = accrual_journal + else: + rec.company_accrual_journal_id = False + + company_accrual_account_asset_type_id = fields.Many2one( + comodel_name="account.account", + compute="_compute_accrual_account_asset_type_id", + ) + + @api.depends("company_id") + def _compute_accrual_account_asset_type_id(self): + for rec in self: + if rec.move_type in ("out_invoice", "out_refund"): + accrual_account_asset_type = ( + rec.company_id.accrual_account_asset_type_id + ) + if rec.company_id and not accrual_account_asset_type: + raise UserError( + _( + "Please set the account " + "type for assets in the invoicing settings." + ) + ) + rec.company_accrual_account_asset_type_id = accrual_account_asset_type + else: + rec.company_accrual_account_asset_type_id = False + + @api.onchange("accrual_date") + def _onchange_accrual_date(self): + for rec in self: + for line in rec.invoice_line_ids: + if rec.move_type in ("out_invoice", "out_refund") and rec.accrual_date: + if ( + not line.accrual_account_id + and line.account_id != rec.company_accrual_account_id + ): + line.accrual_account_id = line.account_id + line.account_id = rec.company_accrual_account_id + else: + line.account_id = line.accrual_account_id + line.accrual_account_id = False + + @api.constrains("accrual_date", "date", "move_type") + def _check_accrual_consistency(self): + for rec in self: + if ( + rec.move_type in ("out_invoice", "out_refund") + and rec.accrual_date + and rec.accrual_date >= rec.date + ): + raise ValidationError( + _("The accrual date must be prior to the invoice date") + ) + + def _accrual_reconcile(self, rec): + for l0, l1 in zip(self.invoice_line_ids, rec.line_ids, strict=False): + (l0 | l1).reconcile() + + def _prepare_lines(self): + line_ids = [] + for idx in range(2): + for line in self.invoice_line_ids: + ji = { + "name": line.name, + "date": self.accrual_date, + "partner_id": line.partner_id.id, + "account_id": line.account_id.id + if idx == 0 + else line.accrual_account_id.id, + "debit": line.credit if idx == 0 else line.debit, + "credit": line.debit if idx == 0 else line.credit, + } + line_ids.append(ji) + return line_ids + + def _create_accrual_move(self): + line_ids = [(0, 0, line_dict) for line_dict in self._prepare_lines()] + return self.env[self._name].create( + { + "company_id": self.company_id.id, + "partner_id": self.partner_id.id, + "journal_id": self.company_accrual_journal_id.id, + "date": self.accrual_date, + "move_type": "entry", + "line_ids": line_ids, + } + ) + + def _post(self, soft=True): + res = super()._post(soft=soft) + for rec in self: + if rec.move_type in ("out_invoice", "out_refund") and rec.accrual_date: + asset_lines = rec.invoice_line_ids.filtered( + lambda x, rec=rec: x.accrual_account_id.account_type + == rec.company_accrual_account_asset_type_id.account_type + ) + if asset_lines: + raise UserError( + _( + "It's not allowed to create an Accrual Journal Entry " + "if there's assets in the invoice" + ) + ) + accrual_move = rec._create_accrual_move() + super(AccountMove, accrual_move)._post(soft=False) + rec.accrual_move_id = accrual_move + rec._accrual_reconcile(accrual_move) + return res + + def button_draft(self): + res = super().button_draft() + if self.accrual_move_id: + super(AccountMove, self.accrual_move_id).button_draft() + self.accrual_move_id.with_context(force_delete=True).unlink() + return res + + def action_journal_entry(self): + self.ensure_one() + return { + "name": _("Accrual Journal Entry"), + "type": "ir.actions.act_window", + "view_mode": "form", + "res_model": "account.move", + "res_id": self.accrual_move_id.id, + } diff --git a/account_move_accrual_entry/models/account_move_line.py b/account_move_accrual_entry/models/account_move_line.py new file mode 100644 index 000000000..87200b3a0 --- /dev/null +++ b/account_move_accrual_entry/models/account_move_line.py @@ -0,0 +1,31 @@ +# Copyright NuoBiT Solutions SL - Frank Cespedes +# Copyright NuoBiT Solutions SL - Eric Antones +# Copyright 2025 NuoBiT Solutions SL - Deniz Gallo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +from odoo import api, fields, models + + +class AccountMoveLine(models.Model): + _inherit = "account.move.line" + + accrual_date = fields.Date(related="move_id.accrual_date", readonly=True) + accrual_account_id = fields.Many2one( + comodel_name="account.account", + string="Accrual Account", + ) + + @api.onchange("account_id") + def _onchange_accrual_entry_account_id(self): + for line in self: + if ( + line.display_type not in ("line_section", "line_note") + and line.move_id.move_type in ("out_invoice", "out_refund") + and line.move_id.accrual_date + ): + if not line.accrual_account_id: + line.accrual_account_id = line.account_id + else: + line.accrual_account_id = line.move_id._get_computed_account() + line.account_id = line.move_id.company_accrual_account_id + else: + line.accrual_account_id = False diff --git a/account_move_accrual_entry/models/res_company.py b/account_move_accrual_entry/models/res_company.py new file mode 100644 index 000000000..b577d7f65 --- /dev/null +++ b/account_move_accrual_entry/models/res_company.py @@ -0,0 +1,32 @@ +# Copyright NuoBiT Solutions SL - Frank Cespedes +# Copyright NuoBiT Solutions SL - Eric Antones +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from odoo import fields, models + + +class Company(models.Model): + _inherit = "res.company" + + accrual_account_id = fields.Many2one( + comodel_name="account.account", + domain=[ + ("reconcile", "=", True), + ("deprecated", "=", False), + ("account_type", "not in", ("receivable", "payable")), + ("internal_group", "!=", "off"), + ], + ) + + accrual_journal_id = fields.Many2one( + comodel_name="account.journal", + domain=[("type", "=", "general")], + ) + + accrual_account_asset_type_id = fields.Many2one( + comodel_name="account.account", + default=lambda self: self.env["account.account"].search( + [("account_type", "=", "asset_fixed")], limit=1 + ), + domain=[("internal_group", "=", "asset")], + ) diff --git a/account_move_accrual_entry/models/res_config_settings.py b/account_move_accrual_entry/models/res_config_settings.py new file mode 100644 index 000000000..c97caa238 --- /dev/null +++ b/account_move_accrual_entry/models/res_config_settings.py @@ -0,0 +1,26 @@ +# Copyright NuoBiT Solutions SL - Frank Cespedes +# Copyright NuoBiT Solutions SL - Eric Antones +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + accrual_account_id = fields.Many2one( + comodel_name="account.account", + related="company_id.accrual_account_id", + readonly=False, + ) + + accrual_journal_id = fields.Many2one( + comodel_name="account.journal", + related="company_id.accrual_journal_id", + readonly=False, + ) + + accrual_account_asset_type_id = fields.Many2one( + comodel_name="account.account", + related="company_id.accrual_account_asset_type_id", + readonly=False, + ) diff --git a/account_move_accrual_entry/pyproject.toml b/account_move_accrual_entry/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_move_accrual_entry/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_move_accrual_entry/readme/CONFIGURE.md b/account_move_accrual_entry/readme/CONFIGURE.md new file mode 100644 index 000000000..24b6d31da --- /dev/null +++ b/account_move_accrual_entry/readme/CONFIGURE.md @@ -0,0 +1,5 @@ +To configure this module, you need to go to invoice settings and set the +following parameters: + +- Default accrual account +- Default accrual asset account type diff --git a/account_move_accrual_entry/readme/CONTRIBUTORS.md b/account_move_accrual_entry/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..0ff45d152 --- /dev/null +++ b/account_move_accrual_entry/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- [NuoBiT](https://www.nuobit.com): + - Frank Cespedes + - Eric Antones + - Deniz Gallo diff --git a/account_move_accrual_entry/readme/DESCRIPTION.md b/account_move_accrual_entry/readme/DESCRIPTION.md new file mode 100644 index 000000000..34cc446e8 --- /dev/null +++ b/account_move_accrual_entry/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module creates a journal entry at accrual date and adds a +smart-button in the invoice to access it diff --git a/account_move_accrual_entry/static/description/icon.png b/account_move_accrual_entry/static/description/icon.png new file mode 100644 index 000000000..1cd641e79 Binary files /dev/null and b/account_move_accrual_entry/static/description/icon.png differ diff --git a/account_move_accrual_entry/static/description/index.html b/account_move_accrual_entry/static/description/index.html new file mode 100644 index 000000000..e52fa2fb1 --- /dev/null +++ b/account_move_accrual_entry/static/description/index.html @@ -0,0 +1,434 @@ + + + + + +Accrual Journal Entry + + + +
+

Accrual Journal Entry

+ + +

Beta License: AGPL-3 NuoBiT/odoo-addons

+

This module creates a journal entry at accrual date and adds a +smart-button in the invoice to access it

+

Table of contents

+ +
+

Configuration

+

To configure this module, you need to go to invoice settings and set the +following parameters:

+
    +
  • Default accrual account
  • +
  • Default accrual asset account type
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • NuoBiT Solutions SL
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

Current maintainers:

+

FrankC013 eantones

+

This module is part of the NuoBiT/odoo-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/account_move_accrual_entry/views/account_move_views.xml b/account_move_accrual_entry/views/account_move_views.xml new file mode 100644 index 000000000..e6c392c24 --- /dev/null +++ b/account_move_accrual_entry/views/account_move_views.xml @@ -0,0 +1,70 @@ + + + + + account.move.form.sii + account.move + + + + + +
+ + +
+ + + + + + + + + + display_type == False + accrual_date != False + +
+
+
diff --git a/account_move_accrual_entry/views/res_config_settings_views.xml b/account_move_accrual_entry/views/res_config_settings_views.xml new file mode 100644 index 000000000..7fada6ad5 --- /dev/null +++ b/account_move_accrual_entry/views/res_config_settings_views.xml @@ -0,0 +1,57 @@ + + + + + res.config.settings.form.inherit.account.sii + res.config.settings + + + +
+
+
+ Accrual Parameters + +
+ Accrual parameters used on sale invoices +
+
+
+
+
+
+
+
+
+
+
+ + + +