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

[18.0][MIG] account_partner_required #1980

Open
wants to merge 60 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
a5ed474
[ADD] account_partner_required
sbidoul Apr 18, 2014
b841948
flake8
sbidoul Apr 18, 2014
c1456ed
[IMP] add policy column in account type tree view
sbidoul Apr 19, 2014
254e534
[IMP] local import
sbidoul Apr 19, 2014
82699a1
[IMP] header comments
sbidoul Apr 19, 2014
8479494
[FIX] flake8 PEP8 account_partner_required
nbessi Jul 10, 2014
d8b19bd
[FIX] pep8 line length to 80, activate pep8 check in travis, and add …
Aug 20, 2014
14416e4
[IMP] refactor account_partner_required
sbidoul Sep 25, 2014
12688e3
[IMP] account_partner_required: make test use [ids] for write
sbidoul Sep 25, 2014
1fd1dfd
[FIX] account_partner_required: constraint depends on account_id
sbidoul Oct 25, 2014
8fa022a
[FIX] pep8
sbidoul Oct 25, 2014
d082dea
[FIX] account_partner_required: constraint also depends on debit and …
sbidoul Oct 25, 2014
d8fbe25
[FIX] account_partner_required: make policies translatable
sbidoul Oct 29, 2014
ce3254b
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
7fb2d33
Add missing default oca icons
yvaucher Aug 18, 2015
29ad849
remove deprecated test suite declarations
gurneyalex Aug 27, 2015
463de40
OCA Transbot updated translations from Transifex
oca-transbot Sep 12, 2015
72b0229
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
7289b62
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
a767306
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
37548b5
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
6d1fd2f
Port account_partner_required to odoo 10
alexis-via Dec 7, 2016
7711f32
Remove method _get_partner_policies (not needed with new API)
alexis-via Dec 7, 2016
a94ce39
FIX translation method (bug reported by yvaucher)
alexis-via Jan 10, 2017
aa421f7
[MIG] account_partner_required: Migration to 11.0
rven Mar 1, 2018
3391cd8
OCA Transbot updated translations from Transifex
oca-transbot Jan 13, 2017
d787397
[UPD] Update account_partner_required.pot
oca-travis Jun 19, 2018
fa350a5
Translated using Weblate (Arabic)
osoul Jun 28, 2018
8fe7221
[MIG] account_partner_required: Migration to 12.0
rven Oct 2, 2018
10894d6
account_partner_required: minor changes in readme and manifest
alexis-via Apr 19, 2019
853af41
[UPD] README.rst
OCA-git-bot Apr 19, 2019
6296b4f
[UPD] Update account_partner_required.pot
oca-travis Apr 19, 2019
a5ae95d
Translated using Weblate (German)
rschnapka Apr 24, 2019
d6062a2
Update translation files
oca-transbot May 20, 2019
2e9de33
Translated using Weblate (Portuguese (Brazil))
eduaparicio Jul 9, 2019
49f3b71
[UPD] README.rst
OCA-git-bot Jul 29, 2019
8f8b834
Translated using Weblate (Portuguese)
alvarorib Feb 27, 2020
440cac7
Translated using Weblate (German)
marylla May 6, 2020
4ce26c6
Translated using Weblate (Slovenian)
sysadminmatmoz Aug 11, 2020
4c3f507
Translated using Weblate (French)
pasgou Aug 3, 2021
4da7b79
account_partner_required: black, isort, etc.
alexis-via Dec 28, 2022
68bfccd
[MIG] account_partner_required to v16
alexis-via Dec 28, 2022
186d1c2
[UPD] Update account_partner_required.pot
Nov 3, 2023
166dea9
[BOT] post-merge updates
OCA-git-bot Nov 3, 2023
22e1868
Update translation files
weblate Nov 3, 2023
7527b1e
Translated using Weblate (French)
Nov 3, 2023
c2644a6
account_partner_required: fix string
alexis-via Nov 3, 2023
cba120f
Translated using Weblate (Spanish)
Ivorra78 Nov 3, 2023
b328600
[UPD] Update account_partner_required.pot
Nov 4, 2023
b498476
Update translation files
weblate Nov 4, 2023
b0de7a3
Translated using Weblate (Spanish)
Ivorra78 Nov 6, 2023
56cbcfc
Translated using Weblate (Italian)
mymage Feb 22, 2024
9ba0341
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
5dd6757
[IMP] account_partner_required: pre-commit auto fixes
luisDIXMIT Mar 11, 2024
7e4701d
[MIG] account_partner_required: Migration to 17.0
luisDIXMIT Mar 11, 2024
f463140
[UPD] Update account_partner_required.pot
Jun 6, 2024
755e038
[BOT] post-merge updates
OCA-git-bot Jun 6, 2024
c6069c2
Update translation files
weblate Jun 6, 2024
41c3e2b
[IMP] account_partner_required: pre-commit auto fixes
mcodes-o Nov 27, 2024
7fb3049
[MIG] account_partner_required: Migration to 18.0
mcodes-o Nov 27, 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
120 changes: 120 additions & 0 deletions account_partner_required/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
========================
Account Partner Required
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:57f84ff9e763995788212ec8eb8765faca245c025b0d459d239e92d5dc9bf75b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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--financial--tools-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-tools/tree/18.0/account_partner_required
:alt: OCA/account-financial-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_partner_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-financial-tools&target_branch=18.0
:alt: Try me on Runboat

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

This module adds an option *Partner policy* on account types.

You have the choice between 3 policies:

- *optional* (the default policy): partner is optional,
- *always*: require a partner,
- *never*: forbid a partner.

This module is useful to enforce a partner on account move lines on
customer and supplier accounts.

This module is very similar to the module *account_analytic_required*
available in the OCA project
`account-analytic <https://github.com/OCA/account-analytic>`__.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

1. Go to the menu *Invoicing > Configuration > Accounting > Chart of
Accounts* and edit each account to configure the correct *Partner
policy*.

Usage
=====

If you put a partner on an account move line with an account whose type
is configured with *Partner policy* = *never*, you will get an error
message.

If you don't put a partner on an account move line with an account whose
type is configured with *Partner policy* = *always*, you will get an
error message.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/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-financial-tools/issues/new?body=module:%20account_partner_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
-------

* ACSONE SA/NV
* Akretion

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

- Stéphane Bidoul <[email protected]>
- Alexis de Lattre <[email protected]>
- Raf Ven <[email protected]>

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.

.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-alexis-via|

This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/18.0/account_partner_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_partner_required/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions account_partner_required/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2014-2022 Acsone (http://acsone.eu).
# Copyright 2016-2022 Akretion France (http://www.akretion.com/)
# @author Stéphane Bidoul <[email protected]>
# @author Alexis de Lattre <[email protected]>
# Copyright 2018-2022 DynApps (https://odoo.dynapps.be/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Account Partner Required",
"version": "18.0.1.0.0",
"category": "Accounting",
"license": "AGPL-3",
"summary": "Adds an option 'partner policy' on accounts",
"author": "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/account-financial-tools",
"depends": ["account"],
"data": ["views/account_account.xml"],
"installable": True,
"application": False,
}
72 changes: 72 additions & 0 deletions account_partner_required/i18n/account_partner_required.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_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_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr ""

#. module: account_partner_required
#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always
msgid "Always"
msgstr ""

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

#. module: account_partner_required
#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never
msgid "Never"
msgstr ""

#. module: account_partner_required
#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional
msgid "Optional"
msgstr ""

#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy
#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search
msgid "Partner Policy"
msgstr ""

#. module: account_partner_required
#. odoo-python
#: code:addons/account_partner_required/models/account_move_line.py:0
#, python-format
msgid ""
"Partner policy is set to 'Always' on account '%(account)s' but the partner "
"is missing on the journal item '%(move_line)s'."
msgstr ""

#. module: account_partner_required
#. odoo-python
#: code:addons/account_partner_required/models/account_move_line.py:0
#, python-format
msgid ""
"Partner policy is set to 'Never' on account '%(account)s' but the journal "
"item '%(move_line)s' has the partner '%(partner)s'."
msgstr ""

#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy
msgid ""
"Set the policy for the partner field:\n"
"if you select 'Optional', the accountant is free to put a partner on journal items with this account ;\n"
"if you select 'Always', the accountant will get an error message if there is no partner ;\n"
"if you select 'Never', the accountant will get an error message if a partner is present."
msgstr ""
104 changes: 104 additions & 0 deletions account_partner_required/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: account-financial-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-07-01 13:25+0000\n"
"PO-Revision-Date: 2018-06-29 06:01+0000\n"
"Last-Translator: Osoul <[email protected]>\n"
"Language-Team: Arabic (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
"X-Generator: Weblate 3.0.1\n"

#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "الحساب"

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

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

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

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

#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy
#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search
msgid "Partner Policy"
msgstr ""

#. module: account_partner_required
#. odoo-python
#: code:addons/account_partner_required/models/account_move_line.py:0
#, python-format
msgid ""
"Partner policy is set to 'Always' on account '%(account)s' but the partner "
"is missing on the journal item '%(move_line)s'."
msgstr ""

#. module: account_partner_required
#. odoo-python
#: code:addons/account_partner_required/models/account_move_line.py:0
#, python-format
msgid ""
"Partner policy is set to 'Never' on account '%(account)s' but the journal "
"item '%(move_line)s' has the partner '%(partner)s'."
msgstr ""

#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy
msgid ""
"Set the policy for the partner field:\n"
"if you select 'Optional', the accountant is free to put a partner on journal "
"items with this account ;\n"
"if you select 'Always', the accountant will get an error message if there is "
"no partner ;\n"
"if you select 'Never', the accountant will get an error message if a partner "
"is present."
msgstr ""

#~ msgid "Account Type"
#~ msgstr "نوع الحساب"

#, python-format
#~ msgid ""
#~ "Partner policy is set to 'Always' with account '%s' but the partner is "
#~ "missing in the account move line with label '%s'."
#~ msgstr ""
#~ "سياسة خانة الشريك هي 'دائماً' للحساب '%s' ولكن خانة الشريك فارغة في عنصر "
#~ "اليومية باسم '%s'."

#, python-format
#~ msgid ""
#~ "Partner policy is set to 'Never' with account '%s' but the account move "
#~ "line with label '%s' has a partner '%s'."
#~ msgstr ""
#~ "سياسة خانة الشريك هي 'ممنوع' للحساب '%s' ولكن في عنصر اليومية باسم '%s' "
#~ "تم إدخال الشريك '%s'."

#~ msgid "Policy for Partner Field"
#~ msgstr "سياسة خانة الشريك"
Loading
Loading