diff --git a/l10n_ro_account/README.rst b/l10n_ro_account/README.rst deleted file mode 100644 index 63f75dc2..00000000 --- a/l10n_ro_account/README.rst +++ /dev/null @@ -1,73 +0,0 @@ -================= -Romania - Account -================= - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! This file is generated by oca-gen-addon-readme !! - !! changes will be overwritten. !! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -.. |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-dhongu%2Fl10n--romania-lightgray.png?logo=github - :target: https://github.com/dhongu/l10n-romania/tree/15.0/l10n_ro_account - :alt: dhongu/l10n-romania - -|badge1| |badge2| |badge3| - -Funcționalități: - - limitare încasare numerar - - afișare contrui în format scurt - - corecție traducere încasare - -**Table of contents** - -.. contents:: - :local: - -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 smashing it by providing a detailed and welcomed -`feedback `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Terrabit - -Contributors -~~~~~~~~~~~~ - -* `Terrabit `_: - - * Dorin Hongu - - -Do not contact contributors directly about support or help with technical issues. - -Maintainers -~~~~~~~~~~~ - -.. |maintainer-dhongu| image:: https://github.com/dhongu.png?size=40px - :target: https://github.com/dhongu - :alt: dhongu - -Current maintainer: - -|maintainer-dhongu| - -This module is part of the `dhongu/l10n-romania `_ project on GitHub. - -You are welcome to contribute. diff --git a/l10n_ro_account/__init__.py b/l10n_ro_account/__init__.py deleted file mode 100644 index d11b1ad9..00000000 --- a/l10n_ro_account/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# © 2020 Terrabit -# See README.rst file on addons root folder for license details - -from . import models diff --git a/l10n_ro_account/__manifest__.py b/l10n_ro_account/__manifest__.py deleted file mode 100644 index 6fe384bc..00000000 --- a/l10n_ro_account/__manifest__.py +++ /dev/null @@ -1,16 +0,0 @@ -# © 2020 Terrabit -# See README.rst file on addons root folder for license details - - -{ - "name": "Romania - Account", - "version": "15.0.1.0.0", - "summary": "Romania - Account", - "license": "AGPL-3", - "author": "Terrabit,Odoo Community Association (OCA)", - "website": "https://github.com/OCA/l10n-romania", - "category": "Localization", - "depends": ["account", "l10n_ro"], - "data": [], - "maintainers": ["dhongu"], -} diff --git a/l10n_ro_account/i18n/ro.po b/l10n_ro_account/i18n/ro.po deleted file mode 100644 index 2f0f2211..00000000 --- a/l10n_ro_account/i18n/ro.po +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_ro_account -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-23 05:28+0000\n" -"PO-Revision-Date: 2021-03-23 05:28+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 -#: model:ir.actions.act_window,name:account.action_account_payments -#: model:ir.ui.menu,name:account.menu_action_account_payments_receivable -msgid "Payments" -msgstr "Încasări" - - -#. module: l10n_ro_account -#: model:ir.model,name:l10n_ro_account.model_account_payment -msgid "Payments" -msgstr "Plăți" - -#. module: l10n_ro_account -#: code:addons/l10n_ro_account/models/account_payment.py:0 -#, python-format -msgid "The payment amount cannot be greater than 10000" -msgstr "Valoarea încasată nu poate să fie mai mare de 10000" - -#. module: l10n_ro_account -#: code:addons/l10n_ro_account/models/account_payment.py:0 -#, python-format -msgid "The payment amount cannot be greater than 5000" -msgstr "Valoarea încasată nu poate să fie mai mare de 5000" \ No newline at end of file diff --git a/l10n_ro_account/models/__init__.py b/l10n_ro_account/models/__init__.py deleted file mode 100644 index 466072fd..00000000 --- a/l10n_ro_account/models/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# © 2020 Terrabit -# See README.rst file on addons root folder for license details - -from . import account_payment -from . import account_account diff --git a/l10n_ro_account/models/account_account.py b/l10n_ro_account/models/account_account.py deleted file mode 100644 index 13d61ff9..00000000 --- a/l10n_ro_account/models/account_account.py +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright (C) 2018 Terrabit -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from odoo import api, fields, models - - -class Account(models.Model): - _inherit = "account.account" - - l10n_ro_external_code = fields.Char(compute="_compute_l10n_ro_external_code", store=True) - - @api.depends("code") - def _compute_l10n_ro_external_code(self): - for account in self: - account.l10n_ro_external_code = account.internal_to_external() - - def external_code_to_internal(self, code): - account_id = False - if "." in code: - odoo_code, analytic = code.split(".") - odoo_code = (odoo_code + "00000")[:4] + analytic.zfill(2) - else: - odoo_code = (code + "00000")[:6] - account = self.env["account.account"].search([("code", "=", odoo_code)]) - if len(account) == 1: - account_id = account.id - return account_id - - def internal_to_external(self): - if not self.code or len(self.code) < 4: - return self.code - cont = self.code[:4] - while cont and cont[-1] == "0": - cont = cont[:-1] - try: - analitic = int(self.code[4:]) - except Exception: - analitic = self.code[4:] - if analitic: - cont += "." + str(analitic) - return cont - - def name_get(self): - result = [] - rest = self - for account in self: - if account.company_id.l10n_ro_accounting: - code = account.l10n_ro_external_code or account.code - name = code + " " + account.name - result.append((account.id, name)) - rest -= account - return result + super(Account, rest).name_get() diff --git a/l10n_ro_account/models/account_payment.py b/l10n_ro_account/models/account_payment.py deleted file mode 100644 index 44bed433..00000000 --- a/l10n_ro_account/models/account_payment.py +++ /dev/null @@ -1,27 +0,0 @@ -# © 2020 Terrabit -# See README.rst file on addons root folder for license details - -from odoo import _, api, models -from odoo.exceptions import ValidationError - - -class AccountPayment(models.Model): - _inherit = "account.payment" - - @api.constrains("amount") - def _check_amount(self): - # in 14.0 este facut _sql_constraints check_amount_not_negative - # super(AccountPayment, self)._check_amount() - # todo: de adaugat in configurare suma limita - for payment in self: - if ( - payment.payment_type == "inbound" - and payment.partner_type == "customer" - and payment.journal_id.type == "cash" - ): - if payment.partner_id.is_company: - if payment.amount > 5000: - raise ValidationError(_("The payment amount cannot be greater than 5000")) - else: - if payment.amount > 10000: - raise ValidationError(_("The payment amount cannot be greater than 10000")) diff --git a/l10n_ro_account/readme/CONTRIBUTORS.rst b/l10n_ro_account/readme/CONTRIBUTORS.rst deleted file mode 100644 index 0cad4041..00000000 --- a/l10n_ro_account/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,6 +0,0 @@ -* `Terrabit `_: - - * Dorin Hongu - - -Do not contact contributors directly about support or help with technical issues. diff --git a/l10n_ro_account/readme/DESCRIPTION.rst b/l10n_ro_account/readme/DESCRIPTION.rst deleted file mode 100644 index d524a027..00000000 --- a/l10n_ro_account/readme/DESCRIPTION.rst +++ /dev/null @@ -1,4 +0,0 @@ -Funcționalități: - - limitare încasare numerar - - afișare contrui în format scurt - - corecție traducere încasare diff --git a/l10n_ro_account/static/description/icon.png b/l10n_ro_account/static/description/icon.png deleted file mode 100644 index b931298e..00000000 Binary files a/l10n_ro_account/static/description/icon.png and /dev/null differ diff --git a/l10n_ro_account/static/description/index.html b/l10n_ro_account/static/description/index.html deleted file mode 100644 index 534a7edb..00000000 --- a/l10n_ro_account/static/description/index.html +++ /dev/null @@ -1,428 +0,0 @@ - - - - - - -Romania - Account - - - -
-

Romania - Account

- - -

Beta License: AGPL-3 dhongu/l10n-romania

-
-
Funcționalități:
-
    -
  • limitare încasare numerar
  • -
  • afișare contrui în format scurt
  • -
  • corecție traducere încasare
  • -
-
-
-

Table of contents

- -
-

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 smashing it by providing a detailed and welcomed -feedback.

-

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

-
-
-

Credits

-
-

Authors

-
    -
  • Terrabit
  • -
-
-
-

Contributors

- -

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

-
-
-

Maintainers

-

Current maintainer:

-

dhongu

-

This module is part of the dhongu/l10n-romania project on GitHub.

-

You are welcome to contribute.

-
-
-
- -