Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] account_analytic_required: Migration to 17.0 #669

Merged
merged 89 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
03eab6a
Move my module account_analytic_required from extra-addons to account…
Nov 21, 2012
96443a6
[IMP] account_analytic_required: do not enforce policy when credit=de…
sbidoul Dec 17, 2012
afaf753
[MIGR] Set installable = False in modules to setup the 7.0 series
jgrandguillaume Apr 3, 2013
bdbbe1c
account_analytic_required: migration V7
Apr 4, 2013
64e75a1
[FIX] Move substitution arguments out of _() call
Apr 18, 2013
3de70be
account_analytic_required: in openerp.py replace *_xml by data, leave…
Apr 23, 2013
841c7c9
[IMP] account_analytic_required/tests
sbidoul Apr 18, 2014
71478d6
[FIX] account_analytic_required allowed policy violation to slip thro…
sbidoul Apr 18, 2014
3243d0c
Validate with flake8.
Apr 18, 2014
dafd432
Add policy for analytic accounting in tree view.
Apr 18, 2014
92bfe98
[IMP] comments in test suite + long lines __openerp__.py
sbidoul Apr 19, 2014
4885efc
Launchpad automatic translations update.
Jun 27, 2014
e52520d
lint the whole repo
lepistone Aug 4, 2014
09fc9fa
delete # noqa in __init__.py imports
lepistone Aug 5, 2014
8a16133
make all files not installable
lepistone Aug 5, 2014
cde20fc
move all modules to __unported__
lepistone Aug 5, 2014
29cb956
[MOD] Move account_analytic_required out of __unported__
adrienpeiffer Sep 3, 2014
9b283fc
[MOD] Change installable and active status
adrienpeiffer Sep 3, 2014
9a11fef
[IMP] Replace active by auto_install key and set to False
adrienpeiffer Sep 3, 2014
8da8a8f
[IMP] refactor account_analytic_required with constraints for robustness
sbidoul Sep 24, 2014
c1319f9
[IMP] account_analytic_required: better mechanism to extend policies
sbidoul Sep 24, 2014
d5f2c36
[IMP] life would be boring without flake8
sbidoul Sep 25, 2014
247f1ec
[IMP] account_analytic_required: add an extension point to obtain ana…
sbidoul Sep 25, 2014
b31c4d7
[IMP] analytic policy must be required otherwise the checks will break
sbidoul Sep 25, 2014
1d9e736
[IMP] account_analytic_required: make test use [ids] in write
sbidoul Sep 25, 2014
0554142
[FIX] account_analytic_required: add missing field in constraint
sbidoul Oct 25, 2014
bcf61d7
[FIX] account_analytic_required: constraint also depends on debit and…
sbidoul Oct 25, 2014
de4c08e
[FIX] account_analytic_(plan)_required: make policies translatable
sbidoul Oct 29, 2014
af7f40c
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
63b0f57
remove deprecated test suite declarations
gurneyalex Aug 27, 2015
b47a64f
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
b8c59a8
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
321359d
[9.0][PORT] account_analytic_required
yvaucher Jun 3, 2016
30978e3
Fix class name in super
guewen Jun 23, 2016
35f3bff
Use float_is_zero
yvaucher Jul 12, 2016
9f2c27c
Use api.constrains
yvaucher Jul 12, 2016
0647900
Restore menu entry for account types in Accounting/Configuration/Acco…
yvaucher Aug 12, 2016
2284e0a
Update credits in readme to be compliant with OCA standards
yvaucher Aug 15, 2016
b28e855
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
2eaf40e
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
336de9a
Port account_analytic_required to v10
alexis-via Oct 10, 2016
6c2b850
Use account_type_menu from account-financial-tools
alexis-via Jan 11, 2017
d533b40
[IMP] Use new api to extend selection
cubells May 24, 2017
8d2d273
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
e435130
[MIG] account_analytic_required: Migrate to 11.0
Dec 13, 2017
03471a5
[IMP] account_analytic_required: Add 'posted moves' as analytic policy
grindtildeath Dec 22, 2017
550cf49
OCA Transbot updated translations from Transifex
oca-transbot Feb 2, 2018
c13f04f
[UPD] Update account_analytic_required.pot
oca-travis Jun 23, 2018
dac4073
Translated using Weblate (Português (Brasil))
Jun 28, 2018
a8c02b2
Translated using Weblate (Arabic)
osoul Jun 28, 2018
e1d2f3f
Translated using Weblate (Arabic)
yaseentai Sep 19, 2018
c637d2a
Translated using Weblate (Spanish)
DarioLodeiros Sep 22, 2018
c65e2b6
[MIG] account_analytic_required: Migration to 12.0
rven Oct 2, 2018
74614c0
[FIX] TypeError: post() got an unexpected keyword argument 'invoice'
rven Jan 15, 2019
8e6db76
Translated using Weblate (Spanish)
josepmy Jul 22, 2019
fc98b76
[UPD] README.rst
OCA-git-bot Jul 29, 2019
35fbbf3
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
d24ef55
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Aug 29, 2019
9f6adfc
[MIG] account_analytic_required: Migration to 13.0
jimhoefnagels Oct 1, 2019
e4ab601
Translated using Weblate (Catalan)
eduardgm Feb 26, 2020
1215430
pre-commit update
OCA-git-bot Mar 14, 2020
ae628b5
[IMP] company_dependent analytic_policy
ivantodorovich Mar 11, 2020
df2eea2
Translated using Weblate (German)
psc Jul 1, 2020
31169ad
[UPD] Update account_analytic_required.pot
oca-travis Jul 19, 2020
da65bb1
[UPD] README.rst
OCA-git-bot Jul 19, 2020
fddf9c8
Update translation files
oca-transbot Jul 19, 2020
6d2ca3a
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
bbebdce
Update translation files
oca-transbot Aug 16, 2020
082a9bf
[MIG] account_analytic_required to v14
alexis-via Nov 13, 2020
5c5961f
Translated using Weblate (Catalan)
pere-aquarian Jan 12, 2022
5398255
Translated using Weblate (Spanish)
pere-aquarian Jan 12, 2022
558707a
Added translation using Weblate (Swedish)
simonstromb Jan 20, 2022
560123d
[14.0][Fix_Improve]: account_analytic_required translation template a…
smussie Jan 27, 2022
336ca0a
[IMP] account_analytic_required: black, isort, prettier
schout-it Feb 1, 2022
80a76a0
[MIG] account_analytic_required: Migration to 15.0
schout-it Feb 1, 2022
e823d8b
[FIX] account_analytic_required: action_post() instead of post() meth…
Oct 5, 2022
eaebd9c
[16.0][MIG] account_analytic_required: Migrate to version 16.0
nguyenminhchien Feb 20, 2023
87b7d58
Added translation using Weblate (French (France) (fr_FR))
sanrav May 15, 2023
df1b2c7
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 12, 2023
777c7db
Translated using Weblate (Spanish)
Ivorra78 Jul 11, 2023
2239f35
[UPD] README.rst
OCA-git-bot Sep 3, 2023
3e25dce
Update translation files
weblate Oct 9, 2023
b7ff9e5
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 28, 2023
f100069
[TRN] remove fr_FR.po
sbidoul Nov 21, 2023
005f027
Added translation using Weblate (Italian)
mymage Feb 22, 2024
a54a5e1
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
c8147c5
Added translation using Weblate (Croatian)
badbole Jun 17, 2024
23a1cc2
[IMP] account_analytic_required: pre-commit auto fixes
peluko00 Jun 18, 2024
edb375c
[MIG] account_analytic_required: Migration to 17.0
peluko00 Jun 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <alexis.delattre@akretion.com>

- Stéphane Bidoul

- Stefan Rijnhart

- Laetitia Gangloff

- Luc De Meyer, Noviat <info@noviat.com>

- Yannick Vaucher <yannick.vaucher@camptocamp.com>

- Akim Juillerat <akim.juillerat@camptocamp.com>

- Raf Ven <raf.ven@dynapps.be>

- Iván Todorovich <ivan.todorovich@druidoo.io>

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

- Nguyễn Minh Chiến <chien@trobz.com>

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

- Antoni Marroig <amarroig@apsl.net>

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
Loading