Skip to content

Commit

Permalink
Merge PR #669 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by gurneyalex
  • Loading branch information
OCA-git-bot committed Jul 30, 2024
2 parents a080cf4 + edb375c commit ee8fe62
Show file tree
Hide file tree
Showing 30 changed files with 2,544 additions and 0 deletions.
123 changes: 123 additions & 0 deletions account_analytic_required/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
=========================
Account Analytic Required
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a730f262f22e1e9c4c933b5b63d3d99bd213aa3a221d3b2b3295275730a5176d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-OCA%2Faccount--analytic-lightgray.png?logo=github
:target: https://github.com/OCA/account-analytic/tree/17.0/account_analytic_required
:alt: OCA/account-analytic
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-analytic-17-0/account-analytic-17-0-account_analytic_required
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-analytic&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds an option *analytic policy* on accounts. You have the
choice between 4 policies : *always*, *never*, *posted moves* and
*optional*.

**Table of contents**

.. contents::
:local:

Configuration
=============

Example:

If you want to have an analytic account on all your *expenses*, set the
policy to *always* for the account of type *expense*. If you try to save
a journal items with an account of type *expense* without analytic
account, you will get an error message.

Usage
=====



Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-analytic/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 <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_required%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Akretion

Contributors
------------

- Alexis de Lattre <[email protected]>

- Stéphane Bidoul

- Stefan Rijnhart

- Laetitia Gangloff

- Luc De Meyer, Noviat <[email protected]>

- Yannick Vaucher <[email protected]>

- Akim Juillerat <[email protected]>

- Raf Ven <[email protected]>

- Iván Todorovich <[email protected]>

- `Trobz <https://trobz.com>`__:

- Nguyễn Minh Chiến <[email protected]>

- `APSL-Nagarro <https://apsl.tech>`__:

- Antoni Marroig <[email protected]>

Other credits
-------------

The migration of this module from 15.0 to 16.0 was financially supported
by Camptocamp

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/17.0/account_analytic_required>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_analytic_required/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions account_analytic_required/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Akretion - Alexis de Lattre
# Copyright Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "Account Analytic Required",
"version": "17.0.1.0.0",
"category": "Analytic Accounting",
"license": "AGPL-3",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
"depends": ["account_usability"],
"data": ["views/account_account_views.xml"],
"installable": True,
}
95 changes: 95 additions & 0 deletions account_analytic_required/i18n/account_analytic_required.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_required
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \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_analytic_required
#: model:ir.model,name:account_analytic_required.model_account_account
msgid "Account"
msgstr ""

#. module: account_analytic_required
#: model:ir.model.fields.selection,name:account_analytic_required.selection__account_account__analytic_policy__always
msgid "Always"
msgstr ""

#. module: account_analytic_required
#. odoo-python
#: code:addons/account_analytic_required/models/account.py:0
#, python-format
msgid ""
"Analytic policy is set to 'Always' with account '%(account)s' but the "
"analytic account is missing in the account move line with label '%(move)s'."
msgstr ""

#. module: account_analytic_required
#. odoo-python
#: code:addons/account_analytic_required/models/account.py:0
#, python-format
msgid ""
"Analytic policy is set to 'Never' with account '%(account)s' but the account"
" move line with label '%(move)s' has an analytic account "
"'%(analytic_account)s'."
msgstr ""

#. module: account_analytic_required
#. odoo-python
#: code:addons/account_analytic_required/models/account.py:0
#, python-format
msgid ""
"Analytic policy is set to 'Posted moves' with account '%(account)s' but the "
"analytic account is missing in the account move line with label '%(move)s'."
msgstr ""

#. module: account_analytic_required
#: model:ir.model,name:account_analytic_required.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_analytic_required
#: model:ir.model,name:account_analytic_required.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_analytic_required
#: model:ir.model.fields.selection,name:account_analytic_required.selection__account_account__analytic_policy__never
msgid "Never"
msgstr ""

#. module: account_analytic_required
#: model:ir.model.fields.selection,name:account_analytic_required.selection__account_account__analytic_policy__optional
msgid "Optional"
msgstr ""

#. module: account_analytic_required
#: model:ir.model.fields,field_description:account_analytic_required.field_account_account__analytic_policy
msgid "Policy for analytic account"
msgstr ""

#. module: account_analytic_required
#: model:ir.model.fields.selection,name:account_analytic_required.selection__account_account__analytic_policy__posted
msgid "Posted moves"
msgstr ""

#. module: account_analytic_required
#: model:ir.model.fields,help:account_analytic_required.field_account_account__analytic_policy
msgid ""
"Sets the policy for analytic accounts.\n"
"If you select:\n"
"- Optional: The accountant is free to put an analytic account on an account move line with this type of account.\n"
"- Always: The accountant will get an error message if there is no analytic account.\n"
"- Posted moves: The accountant will get an error message if no analytic account is defined when the move is posted.\n"
"- Never: The accountant will get an error message if an analytic account is present.\n"
"\n"
"This field is company dependent."
msgstr ""
114 changes: 114 additions & 0 deletions account_analytic_required/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_required
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-17 07:26+0000\n"
"PO-Revision-Date: 2023-02-17 07:26+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_analytic_required
#: model:ir.model,name:account_analytic_required.model_account_account
msgid "Account"
msgstr ""

#. module: account_analytic_required
#: model:ir.model.fields.selection,name:account_analytic_required.selection__account_account__analytic_policy__always
msgid "Always"
msgstr "دائماً"

#. module: account_analytic_required
#. odoo-python
#: code:addons/account_analytic_required/models/account.py:0
#, python-format
msgid ""
"Analytic policy is set to 'Always' with account '%(account)s' but the "
"analytic account is missing in the account move line with label '%(move)s'."
msgstr ""
"سياسة الحسابات التحليلية هي ’دائماً‘ للحساب ’%(account)s‘ ولكن الحساب "
"التحليلي فارغ في عنصر اليومية باسم ’%(move)s‘."

#. module: account_analytic_required
#. odoo-python
#: code:addons/account_analytic_required/models/account.py:0
#, python-format
msgid ""
"Analytic policy is set to 'Never' with account '%(account)s' but the account "
"move line with label '%(move)s' has an analytic account "
"'%(analytic_account)s'."
msgstr ""
"سياسة الحسابات التحليلية هي ’ممنوع‘ للحساب ’%(account)s‘ ولكن في عنصر "
"اليومية باسم ’%(move)s‘ تم تحديد حساب التحليلي ’%(analytic_account)s‘ ."

#. module: account_analytic_required
#. odoo-python
#: code:addons/account_analytic_required/models/account.py:0
#, python-format
msgid ""
"Analytic policy is set to 'Posted moves' with account '%(account)s' but the "
"analytic account is missing in the account move line with label '%(move)s'."
msgstr ""
"سياسة الحسابات التحليلية هي ’القيود المرحّلة‘ للحساب ’%(account)s‘ ولكن "
"الحساب التحليلي فارغ في عنصر اليومية باسم ’%(move)s‘."

#. module: account_analytic_required
#: model:ir.model,name:account_analytic_required.model_account_move
msgid "Journal Entry"
msgstr "عنصر اليومية"

#. module: account_analytic_required
#: model:ir.model,name:account_analytic_required.model_account_move_line
msgid "Journal Item"
msgstr "عنصر اليومية"

#. module: account_analytic_required
#: model:ir.model.fields.selection,name:account_analytic_required.selection__account_account__analytic_policy__never
msgid "Never"
msgstr "ممنوع"

#. module: account_analytic_required
#: model:ir.model.fields.selection,name:account_analytic_required.selection__account_account__analytic_policy__optional
msgid "Optional"
msgstr "إختياري"

#. module: account_analytic_required
#: model:ir.model.fields,field_description:account_analytic_required.field_account_account__analytic_policy
msgid "Policy for analytic account"
msgstr "سياسة للحسابات التحليلية"

#. module: account_analytic_required
#: model:ir.model.fields.selection,name:account_analytic_required.selection__account_account__analytic_policy__posted
msgid "Posted moves"
msgstr "القيود المرحّلة"

#. module: account_analytic_required
#: model:ir.model.fields,help:account_analytic_required.field_account_account__analytic_policy
msgid ""
"Sets the policy for analytic accounts.\n"
"If you select:\n"
"- Optional: The accountant is free to put an analytic account on an account "
"move line with this type of account.\n"
"- Always: The accountant will get an error message if there is no analytic "
"account.\n"
"- Posted moves: The accountant will get an error message if no analytic "
"account is defined when the move is posted.\n"
"- Never: The accountant will get an error message if an analytic account is "
"present.\n"
"\n"
"This field is company dependent."
msgstr ""
"قم بإختيار السياسات للحسابات التحليلية: اذا قم بإختيار \"إختياري\"، للمحاسب "
"الحرية في اختيار حساب التحليلي ام لا في حركة القيد المحسابي مع هذا النوع من "
"الحساب; و إن قمت بإختيار \"دائما\"، ستظهر للمحاسب رسالة خطأ ان كان لا يوجد "
"حساب تحليلي; و ان قمت بإختيار \"قيويد مرحلة\" ستظهر للمحاسب رسالة خطأ اذا لم "
"يحدد حساب تحليلي في ترحيل القيود; و إن اخترت \"ابداً\\نهائي\"، ستظهر للمحاسب "
"رسالة خطأ اذا تم تحديد حساب تحليلي."
Loading

0 comments on commit ee8fe62

Please sign in to comment.