2
0

Merge PR #1542 into 16.0

Signed-off-by alexis-via
This commit is contained in:
OCA-git-bot 2023-11-03 11:52:18 +00:00
commit 838e4d2de7
49 changed files with 3504 additions and 0 deletions

View File

@ -0,0 +1,101 @@
========================
Account partner required
========================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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-OCA%2Faccount--financial--tools-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-tools/tree/12.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-12-0/account-financial-tools-12-0-account_partner_required
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/92/12.0
:alt: Try me on Runbot
|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:
#. Go to the menu *Invoicing > Configuration > Accounting > Account Types* and edit each account types 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_partner_required%0Aversion:%2012.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 <stephane.bidoul@acsone.eu>
* Alexis de Lattre <alexis.delattre@akretion.com>
* Raf Ven <raf.ven@dynapps.be>
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-financial-tools <https://github.com/OCA/account-financial-tools/tree/12.0/account_partner_required>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -0,0 +1 @@
from . import models

View File

@ -0,0 +1,21 @@
# Copyright 2014-2022 Acsone (http://acsone.eu).
# Copyright 2016-2022 Akretion France (http://www.akretion.com/)
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# 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": "16.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,
}

View File

@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
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
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid "Set the policy for the partner field : if you select 'Optional', the accountant is free to put a partner on an account move line with this type of account ; if you select 'Always', the accountant will get an error message if there is no partner ; if you select 'Never', the accountant will get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,86 @@
# 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 <baruni@osoul.ly>\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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr "نوع الحساب"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
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
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr "ممنوع"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr "إختياري"
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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'."
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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'."
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr "سياسة خانة الشريك"
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,82 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Bosnian (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Stavke dnevnika"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Czech (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/cs/)\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Položky deníku"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-22 23:21+0000\n"
"PO-Revision-Date: 2020-05-06 13:19+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Konto"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr "Kontoart"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr "Immer"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
msgid "Journal Item"
msgstr "Journalbuchung"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr "Niemals"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr "Wahlweise"
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
"Partner-Regel ist auf 'Immer' mit Konto '%s' gesetzt, aber der Partner fehlt "
"in der Buchungsposition mit Kennung '%s'."
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
"Partner-Regel ist auf 'Niemals' mit Konto '%s' gesetzt, aber in der "
"Buchungsposition mit Kennung '%s' ist ein Partner '%s' eingetragen."
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr "Regel zum Partnerfeld"
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""
"Setzen Sie die Regel zum Partnerfeld: Wenn Sie 'Wahlweise' wählen, steht es "
"dem Buchhalter frei bei dieser Kontoart einen Partner in Buchungspositionen "
"einzutragen; wählen Sie 'Immer', erhält der Buchhalter bei fehlendem Partner "
"eine Fehlermeldung; wählen Sie 'Niemals', erhält der Buchhalter eine "
"Fehlermeldung, wenn ein Partner eingetragen ist."

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: English (United Kingdom) (http://www.transifex.com/oca/OCA-"
"account-financial-tools-8-0/language/en_GB/)\n"
"Language: en_GB\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Journal Items"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Apuntes contables"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Spanish (Costa Rica) (http://www.transifex.com/oca/OCA-"
"account-financial-tools-8-0/language/es_CR/)\n"
"Language: es_CR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Elementos diario"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# Cristian Salamea <ovnicraft@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-30 00:47+0000\n"
"PO-Revision-Date: 2017-05-30 00:47+0000\n"
"Last-Translator: Cristian Salamea <ovnicraft@gmail.com>, 2017\n"
"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/"
"es_EC/)\n"
"Language: es_EC\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
msgid "Journal Item"
msgstr "Detalle Contable"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Spanish (Mexico) (http://www.transifex.com/oca/OCA-account-"
"financial-tools-8-0/language/es_MX/)\n"
"Language: es_MX\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Elementos diario"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,92 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-28 23:24+0000\n"
"PO-Revision-Date: 2021-08-03 18:49+0000\n"
"Last-Translator: Pascal GOUHIER <pascal.gouhier@copagex.fr>\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Compte"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr "Type de compte"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr "Toujours"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
msgid "Journal Item"
msgstr "Écriture comptable"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr "Jamais"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr "Optionnel"
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
"La stratégie de partenaire est définie sur « Toujours » avec le compte'%s', "
"mais le partenaire est manquant dans la ligne avec le libellé '%s'."
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
"La stratégie de partenaire est définie sur « Jamais » avec le compte '%s', "
"mais la ligne de déplacement de compte avec le libellé '%s' a un partenaire "
"'%s'."
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr "Politique pour le champ partenaire"
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""
"Définir la politique du champ partenaire : si vous sélectionnez "
"'Facultatif', le comptable est libre de mettre un partenaire sur une ligne "
"de déplacement de compte avec ce type de compte ; si vous sélectionnez "
"'Toujours', le comptable recevra un message d'erreur s'il n'y a pas "
"d'associé ; si vous sélectionnez 'Jamais', le comptable recevra un message "
"d'erreur si un partenaire est présent."

View File

@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-27 00:40+0000\n"
"PO-Revision-Date: 2017-04-27 00:40+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Konto"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr "Vrsta konta"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr "Uvjek"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
msgid "Journal Item"
msgstr "Stavka dnevnika"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr "Nikad"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr "Opcija"
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
"Pravilo partnera je postavljeno na 'Uvjek' za konto '%s' ali partner "
"nedostaje na stavci temeljnice sa nazivom '%s'."
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
"Pravilo partnera je postavljeno na 'Nikad' za konto '%s' ali stavka "
"temeljnice sa nazivom '%s' ima dodijeljenog partnera '%s'."
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr "Pravilo za partnera"
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""
"Postavite pravilo za polje partner: ako odaberete 'Opcija', knjigovođi je "
"odobreno da postavi partnera na stavku temeljnice sa ovim tipom konta; ako "
"odaberete 'Uvjek', knjigovođa će dobiti poruku greške ako partner nedostaje; "
"ako odaberete 'Nikad' knjigovođa će dobiti poruku greške ako je partner "
"dodijeljen."

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Hungarian (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/hu/)\n"
"Language: hu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Könyvelési tételsorok"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Voci Sezionale"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Japanese (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/ja/)\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "仕訳項目"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# Viktoras Norkus <viktoras@bmx.lt>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-01 03:44+0000\n"
"PO-Revision-Date: 2018-02-01 03:44+0000\n"
"Last-Translator: Viktoras Norkus <viktoras@bmx.lt>, 2018\n"
"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n"
"Language: lt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n"
"%100<10 || n%100>=20) ? 1 : 2);\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Sąskaita"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr "Sąskaitos tipas"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
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
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Macedonian (http://www.transifex.com/oca/OCA-account-"
"financial-tools-8-0/language/mk/)\n"
"Language: mk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Ставки на дневник"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Mongolian (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/mn/)\n"
"Language: mn\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Журналын бичилт"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Norwegian Bokmål (http://www.transifex.com/oca/OCA-account-"
"financial-tools-8-0/language/nb/)\n"
"Language: nb\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Journal Elementer"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,80 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# Frank Schellenberg <opensource@schellenberg.nl>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-25 11:47+0000\n"
"PO-Revision-Date: 2018-01-25 11:47+0000\n"
"Last-Translator: Frank Schellenberg <opensource@schellenberg.nl>, 2018\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Rekening"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
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
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Dutch (Belgium) (http://www.transifex.com/oca/OCA-account-"
"financial-tools-8-0/language/nl_BE/)\n"
"Language: nl_BE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Boekingslijnen"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# Frank Schellenberg <opensource@schellenberg.nl>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-25 11:47+0000\n"
"PO-Revision-Date: 2018-01-25 11:47+0000\n"
"Last-Translator: Frank Schellenberg <opensource@schellenberg.nl>, 2018\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Rekening"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
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
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,90 @@
# 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: 2020-02-28 00:14+0000\n"
"Last-Translator: alvarorib <alvaro.ribeiro@exo.pt>\n"
"Language-Team: Portuguese (http://www.transifex.com/oca/"
"OCA-account-financial-tools-8-0/language/pt/)\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Weblate 3.10\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Conta"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr "Tipo de Conta"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr "Sempre"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
msgid "Journal Item"
msgstr "Item do Diário"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr "Nunca"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr "Opcional"
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
"Política de parceiro está definida para 'Sempre' com a conta '%s' mas está "
"em falta o parceiro na linha de movimento de conta com rótulo '%s'."
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
"Política de parceiro está definida para 'Nunca' com a conta '%s' mas a linha "
"de movimento de conta com rótulo '%s' tem um parceiro '%s'."
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr "Campo de Política para Parceiros"
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""
"Definir a política no campo de parceiro: Se selecionar 'Opcional', o "
"contabilista tem liberdade de colocar um parceiro numa linha de movimento "
"com este tipo de conta; se selecionar 'Sempre', o contabilista receberá uma "
"mensagem de erro se não existir um parceiro; se selecionar 'Nunca', o "
"contabilista receberá uma mensagem de erro se estiver um parceiro presente."

View File

@ -0,0 +1,90 @@
# 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: 2019-07-09 01:43+0000\n"
"Last-Translator: Eduardo Aparicio <eduardo.caparica@gmail.com>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/"
"OCA-account-financial-tools-8-0/language/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.7.1\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Conta"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr "Tipo de Conta"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr "Sempre"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
msgid "Journal Item"
msgstr "Item do Diário"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr "Nunca"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr "Opcional"
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
"Política do Parceiro está marcada como 'Sempre' com a conta '%s' mas falta "
"Parceiro no lançamento contábil de rótulo '%s'."
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
"Política do Parceiro está marcada como 'Nunca' com a conta '%s' mas o "
"lançamento contábil de rótulo '%s' contém um Parceiro '%s'."
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr "Política para o campo Parceiro"
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""
"Marque a política do campo Parceiro: Se você selecionar 'Opcional', o "
"contador fica livre para indicar um parceiro na movimentação deste tipo de "
"conta; se você selecionar 'Sempre', o contador receberá uma mensagem de erro "
"caso não tenha um Parceiro; se você selecionar 'Nunca', o contador receberá "
"uma mensagem de erro se houver um Parceiro."

View File

@ -0,0 +1,82 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Romanian (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/ro/)\n"
"Language: ro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?"
"2: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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Elementele Jurnalului"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,83 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Russian (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/ru/)\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
"%100>=11 && n%100<=14)? 2 : 3);\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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Элементы журнала"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,87 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-11 03:36+0000\n"
"PO-Revision-Date: 2020-08-11 13:59+0000\n"
"Last-Translator: Matjaz Mozetic <matjaz@matmoz.si>\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
"n%100==4 ? 2 : 3;\n"
"X-Generator: Weblate 3.10\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
msgid "Account"
msgstr "Konto"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr "Tip konta"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr "Vedno"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
msgid "Journal Item"
msgstr "Dnevniška postavka"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr "Nikoli"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr "Opcijsko"
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""
"Nastavitev pravila polja partnerja: če izberete 'opcijsko', lahko "
"računovodja določa partnerja na kontnem premiku s tem tipom konta; če "
"izberete 'vedno', računovodja dobi opozorilo o napaki, kadar ni partnerja; "
"če izberete 'nikoli', računovodja dobi sporočilo o napaki, kadar partner je "
"prisoten."

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Swedish (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/sv/)\n"
"Language: sv\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Transaktioner"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Turkish (http://www.transifex.com/oca/OCA-account-financial-"
"tools-8-0/language/tr/)\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "Günlük Maddeleri"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_required
#
# Translators:
# Ediz Duman <neps1192@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-27 00:40+0000\n"
"PO-Revision-Date: 2017-04-27 00:40+0000\n"
"Last-Translator: Ediz Duman <neps1192@gmail.com>, 2017\n"
"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/"
"tr_TR/)\n"
"Language: tr_TR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
msgid "Journal Item"
msgstr "Yevmiye Öğe"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-account-"
"financial-tools-8-0/language/zh_CN/)\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "日记帐项目"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,81 @@
# 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: 2015-06-03 15:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/oca/OCA-account-"
"financial-tools-8-0/language/zh_TW/)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\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,name:account_partner_required.model_account_account_type
msgid "Account Type"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Always"
msgstr ""
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
#, fuzzy
msgid "Journal Item"
msgstr "帳簿項目"
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Never"
msgstr ""
#. module: account_partner_required
#: selection:account.account.type,partner_policy:0
msgid "Optional"
msgstr ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:55
#, 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 ""
#. module: account_partner_required
#: code:addons/account_partner_required/models/account.py:61
#, 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 ""
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account_type__partner_policy
msgid "Policy for Partner Field"
msgstr ""
#. module: account_partner_required
#: model:ir.model.fields,help:account_partner_required.field_account_account_type__partner_policy
msgid ""
"Set the policy for the partner field : if you select 'Optional', the "
"accountant is free to put a partner on an account move line with this type "
"of account ; if you select 'Always', the accountant will get an error "
"message if there is no partner ; if you select 'Never', the accountant will "
"get an error message if a partner is present."
msgstr ""

View File

@ -0,0 +1,2 @@
from . import account_account
from . import account_move_line

View File

@ -0,0 +1,31 @@
# Copyright 2014-2022 Acsone (http://acsone.eu)
# Copyright 2016-2022 Akretion (http://www.akretion.com/)
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo import fields, models
class AccountAccount(models.Model):
_inherit = "account.account"
# No default value here ; only set one on account.account.type
partner_policy = fields.Selection(
[
("optional", "Optional"),
("always", "Always"),
("never", "Never"),
],
help="Set the policy for the partner field:\nif you select "
"'Optional', the accountant is free to put a partner "
"on an account move line with this account ;\n"
"if you select 'Always', the accountant will get an error "
"message if there is no partner ;\nif you select 'Never', "
"the accountant will get an error message if a partner "
"is present.",
)
def get_partner_policy(self):
self.ensure_one()
return self.partner_policy

View File

@ -0,0 +1,43 @@
# Copyright 2014-2022 Acsone (http://acsone.eu)
# Copyright 2016-2022 Akretion (http://www.akretion.com/)
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo import _, api, models
from odoo.exceptions import ValidationError
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
def _check_partner_required_msg(self):
comp_cur = self.company_id.currency_id
for line in self:
if comp_cur.is_zero(line.debit) and comp_cur.is_zero(line.credit):
continue
policy = line.account_id.get_partner_policy()
if policy == "always" and not line.partner_id:
return _(
"Partner policy is set to 'Always' on account '%(account)s' but "
"the partner is missing on the journal item '%(move_line)s'."
) % {
"account": line.account_id.display_name,
"move_line": line.display_name,
}
elif policy == "never" and line.partner_id:
return _(
"Partner policy is set to 'Never' on account '%(account)s' but "
"the journal item '%(move_line)s' has a partner '%(partner)s'."
) % {
"account": line.account_id.display_name,
"move_line": line.display_name,
"partner": line.partner_id.display_name,
}
@api.constrains("partner_id", "account_id", "debit", "credit")
def _check_partner_required(self):
for line in self:
message = line._check_partner_required_msg()
if message:
raise ValidationError(message)

View File

@ -0,0 +1,3 @@
To configure this module, you need to:
#. Go to the menu *Invoicing > Configuration > Accounting > Account Types* and edit each account types to configure the correct *Partner policy*.

View File

@ -0,0 +1,3 @@
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
* Alexis de Lattre <alexis.delattre@akretion.com>
* Raf Ven <raf.ven@dynapps.be>

View File

@ -0,0 +1,12 @@
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>`_.

View File

@ -0,0 +1,3 @@
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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -0,0 +1,445 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<title>Account partner required</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="account-partner-required">
<h1 class="title">Account partner required</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0/account_partner_required"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_partner_required"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module adds an option <em>Partner policy</em> on account types.</p>
<p>You have the choice between 3 policies:</p>
<ul class="simple">
<li><em>optional</em> (the default policy): partner is optional,</li>
<li><em>always</em>: require a partner,</li>
<li><em>never</em>: forbid a partner.</li>
</ul>
<p>This module is useful to enforce a partner on account move lines on
customer and supplier accounts.</p>
<p>This module is very similar to the module <em>account_analytic_required</em> available in the OCA project <a class="reference external" href="https://github.com/OCA/account-analytic">account-analytic</a>.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<p>To configure this module, you need to:</p>
<ol class="arabic simple">
<li>Go to the menu <em>Invoicing &gt; Configuration &gt; Accounting &gt; Account Types</em> and edit each account types to configure the correct <em>Partner policy</em>.</li>
</ol>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<p>If you put a partner on an account move line with an account whose type is configured with <em>Partner policy</em> = <em>never</em>, you will get an error message.</p>
<p>If you dont put a partner on an account move line with an account whose type is configured with <em>Partner policy</em> = <em>always</em>, you will get an error message.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_partner_required%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id4">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id5">Authors</a></h2>
<ul class="simple">
<li>ACSONE SA/NV</li>
<li>Akretion</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<ul class="simple">
<li>Stéphane Bidoul &lt;<a class="reference external" href="mailto:stephane.bidoul&#64;acsone.eu">stephane.bidoul&#64;acsone.eu</a>&gt;</li>
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
<li>Raf Ven &lt;<a class="reference external" href="mailto:raf.ven&#64;dynapps.be">raf.ven&#64;dynapps.be</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0/account_partner_required">OCA/account-financial-tools</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1 @@
from . import test_account_partner_required

View File

@ -0,0 +1,148 @@
# Copyright 2014-2022 Acsone (http://acsone.eu)
# Copyright 2016-2022 Akretion (http://www.akretion.com/)
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests import tagged
from odoo.tests.common import TransactionCase
@tagged("post_install", "-at_install")
class TestAccountPartnerRequired(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.account_obj = cls.env["account.account"]
cls.move_obj = cls.env["account.move"]
cls.move_line_obj = cls.env["account.move.line"]
cls.company_id = cls.env.ref("base.main_company").id
cls.sale_journal = cls.env["account.journal"].create(
{
"type": "sale",
"code": "SJXX",
"name": "Sale journal",
"company_id": cls.company_id,
}
)
cls.account1 = cls.account_obj.create(
{
"code": "124242",
"name": "Test 1",
"account_type": "asset_cash",
"company_id": cls.company_id,
}
)
cls.account2 = cls.account_obj.create(
{
"code": "124243",
"name": "Test 2",
"account_type": "asset_receivable",
"company_id": cls.company_id,
}
)
cls.account3 = cls.account_obj.create(
{
"code": "124244",
"name": "Test 3",
"account_type": "liability_payable",
"company_id": cls.company_id,
}
)
def _create_move(self, with_partner, amount=100):
if with_partner:
partner_id = self.env.ref("base.res_partner_1").id
else:
partner_id = False
move_vals = {
"company_id": self.company_id,
"journal_id": self.sale_journal.id,
"line_ids": [
(
0,
0,
{
"name": "/",
"debit": 0,
"credit": amount,
"account_id": self.account1.id,
},
),
(
0,
0,
{
"name": "/",
"debit": amount,
"credit": 0,
"account_id": self.account2.id,
"partner_id": partner_id,
},
),
],
}
move = self.move_obj.create(move_vals)
move_line = False
for line in move.line_ids:
if line.account_id == self.account2:
move_line = line
break
return move_line
def test_optional(self):
self._create_move(with_partner=False)
self._create_move(with_partner=True)
def test_always_no_partner(self):
self.account2.partner_policy = "always"
with self.assertRaises(ValidationError):
self._create_move(with_partner=False)
def test_always_no_partner_0(self):
# accept missing partner when debit=credit=0
self.account2.partner_policy = "always"
self._create_move(with_partner=False, amount=0)
def test_always_with_partner(self):
self.account2.partner_policy = "always"
self._create_move(with_partner=True)
def test_never_no_partner(self):
self.account2.partner_policy = "never"
self._create_move(with_partner=False)
def test_never_with_partner(self):
self.account2.partner_policy = "never"
with self.assertRaises(ValidationError):
self._create_move(with_partner=True)
def test_never_with_partner_0(self):
self.account2.partner_policy = "never"
# accept partner when debit=credit=0
self._create_move(with_partner=True, amount=0)
def test_always_remove_partner(self):
# remove partner when policy is always
self.account2.partner_policy = "always"
line = self._create_move(with_partner=True)
with self.assertRaises(ValidationError):
line.write({"partner_id": False})
def test_change_account(self):
self.account2.partner_policy = "optional"
line = self._create_move(with_partner=False)
# change account to an account with policy always but missing partner
self.account3.partner_policy = "always"
with self.assertRaises(ValidationError):
line.write({"account_id": self.account3.id})
# change account to an account with policy always with partner
line.write(
{
"account_id": self.account3.id,
"partner_id": self.env.ref("base.res_partner_1").id,
}
)

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2020-2022 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
-->
<odoo>
<record id="view_account_form" model="ir.ui.view">
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_form" />
<field name="arch" type="xml">
<field name="account_type" position="after">
<field name="partner_policy" />
</field>
</field>
</record>
<record id="view_account_list" model="ir.ui.view">
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_list" />
<field name="arch" type="xml">
<field name="reconcile" position="after">
<field name="partner_policy" optional="show" />
</field>
</field>
</record>
<record id="view_account_search" model="ir.ui.view">
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_search" />
<field name="arch" type="xml">
<filter name="accounttype" position="after">
<filter
name="partner_policy_groupby"
string="Partner Policy"
context="{'group_by': 'partner_policy'}"
/>
</filter>
</field>
</record>
</odoo>

View File

@ -0,0 +1 @@
../../../../account_partner_required

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)