-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
[18.0][MIG] account_analytic_required: Migration to 18.0 #708
Closed
Closed
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
cef39f5
Move my module account_analytic_required from extra-addons to account…
f290fc2
[IMP] account_analytic_required: do not enforce policy when credit=de…
sbidoul f1fc919
[MIGR] Set installable = False in modules to setup the 7.0 series
jgrandguillaume bedb9e7
account_analytic_required: migration V7
7099612
[FIX] Move substitution arguments out of _() call
4e7a1fe
account_analytic_required: in openerp.py replace *_xml by data, leave…
f8ecb93
[IMP] account_analytic_required/tests
sbidoul 54a689e
[FIX] account_analytic_required allowed policy violation to slip thro…
sbidoul d760ccf
Validate with flake8.
49a16d3
[IMP] comments in test suite + long lines __openerp__.py
sbidoul a3030b1
Launchpad automatic translations update.
8d62e61
lint the whole repo
lepistone cb9de2c
[MOD] Move account_analytic_required out of __unported__
adrienpeiffer 8e6271b
[IMP] refactor account_analytic_required with constraints for robustness
sbidoul 361b42e
Add OCA as author of OCA addons
gurneyalex 60f606b
remove deprecated test suite declarations
gurneyalex 8c87c8f
[UPD] prefix versions with 8.0
sbidoul 90b53a6
[MIG] Make modules uninstallable
pedrobaeza c8c3240
[9.0][PORT] account_analytic_required
yvaucher 39fd739
[MIG] Make modules uninstallable
pedrobaeza 4d4c465
Port account_analytic_required to v10
alexis-via 488fec2
[IMP] Use new api to extend selection
cubells 070d453
OCA Transbot updated translations from Transifex
oca-transbot 69fadb9
[MIG] account_analytic_required: Migrate to 11.0
af41086
[IMP] account_analytic_required: Add 'posted moves' as analytic policy
grindtildeath a0161b2
OCA Transbot updated translations from Transifex
oca-transbot 7e9fbb2
[UPD] Update account_analytic_required.pot
oca-travis f2acfa0
Translated using Weblate (Português (Brasil))
3bd4cdb
Translated using Weblate (Arabic)
osoul 85e4bb6
Translated using Weblate (Spanish)
DarioLodeiros e650424
[MIG] account_analytic_required: Migration to 12.0
rven bf8779e
[FIX] TypeError: post() got an unexpected keyword argument 'invoice'
rven bf56120
Translated using Weblate (Spanish)
josepmy 9a9ac25
[UPD] README.rst
OCA-git-bot d49cee5
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago fac43f7
Added translation using Weblate (Chinese (Simplified))
liweijie0812 96b7af5
[MIG] account_analytic_required: Migration to 13.0
jimhoefnagels 75335de
Translated using Weblate (Catalan)
eduardgm 25c30c1
pre-commit update
OCA-git-bot 74bb842
[IMP] company_dependent analytic_policy
ivantodorovich 1ec73da
Translated using Weblate (German)
psc 05f9620
[UPD] Update account_analytic_required.pot
oca-travis 6b74816
[UPD] README.rst
OCA-git-bot b90e1ac
Update translation files
oca-transbot 2528858
[MIG] account_analytic_required to v14
alexis-via 71b4da9
Translated using Weblate (Catalan)
pere-aquarian c3d2274
Translated using Weblate (Spanish)
pere-aquarian de0abe2
Added translation using Weblate (Swedish)
simonstromb b66fbd1
[14.0][Fix_Improve]: account_analytic_required translation template a…
smussie 8466f17
[IMP] account_analytic_required: black, isort, prettier
schout-it 58da20e
[MIG] account_analytic_required: Migration to 15.0
schout-it 99ddda4
[FIX] account_analytic_required: action_post() instead of post() meth…
96a904a
[16.0][MIG] account_analytic_required: Migrate to version 16.0
nguyenminhchien 7c9ba64
Added translation using Weblate (French (France) (fr_FR))
sanrav 9e8dfd9
Translated using Weblate (Portuguese (Brazil))
adrianojprado 96f53bf
Translated using Weblate (Spanish)
Ivorra78 e2e1fb8
[UPD] README.rst
OCA-git-bot c899fd8
Update translation files
weblate 3298ae5
Added translation using Weblate (Italian)
mymage 554c110
Translated using Weblate (Swedish)
jakobkrabbe 6d7cff8
Added translation using Weblate (Croatian)
badbole 9d4d4b1
[IMP] account_analytic_required: pre-commit auto fixes
peluko00 72bd143
[MIG] account_analytic_required: Migration to 17.0
peluko00 b6595bf
[UPD] Update account_analytic_required.pot
4c018fd
[BOT] post-merge updates
OCA-git-bot 28e2df8
Update translation files
weblate 203da95
[IMP] account_analytic_required: pre-commit auto fixes
peluko00 e8c80bf
[MIG] account_analytic_required: Migration to 18.0
peluko00 aff1e62
[DON'T MERGE] test-requirements.txt
peluko00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:40a1822fc4740c2f7adb79e0334c3f24b69adf9eda8bfa003fa914f26e4b2676 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
.. |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/18.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-18-0/account-analytic-18-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=18.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:%2018.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/18.0/account_analytic_required>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "18.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
95
account_analytic_required/i18n/account_analytic_required.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 17.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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" | ||
"قم بإختيار السياسات للحسابات التحليلية: اذا قم بإختيار \"إختياري\"، للمحاسب " | ||
"الحرية في اختيار حساب التحليلي ام لا في حركة القيد المحسابي مع هذا النوع من " | ||
"الحساب; و إن قمت بإختيار \"دائما\"، ستظهر للمحاسب رسالة خطأ ان كان لا يوجد " | ||
"حساب تحليلي; و ان قمت بإختيار \"قيويد مرحلة\" ستظهر للمحاسب رسالة خطأ اذا لم " | ||
"يحدد حساب تحليلي في ترحيل القيود; و إن اخترت \"ابداً\\نهائي\"، ستظهر للمحاسب " | ||
"رسالة خطأ اذا تم تحديد حساب تحليلي." |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include #680 to this PR