diff --git a/account_partner_required/README.rst b/account_partner_required/README.rst new file mode 100644 index 00000000000..afdbca7a98c --- /dev/null +++ b/account_partner_required/README.rst @@ -0,0 +1,120 @@ +======================== +Account Partner Required +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:57f84ff9e763995788212ec8eb8765faca245c025b0d459d239e92d5dc9bf75b + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github + :target: https://github.com/OCA/account-financial-tools/tree/18.0/account_partner_required + :alt: OCA/account-financial-tools +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_partner_required + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds an option *Partner policy* on account types. + +You have the choice between 3 policies: + +- *optional* (the default policy): partner is optional, +- *always*: require a partner, +- *never*: forbid a partner. + +This module is useful to enforce a partner on account move lines on +customer and supplier accounts. + +This module is very similar to the module *account_analytic_required* +available in the OCA project +`account-analytic `__. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module, you need to: + +1. Go to the menu *Invoicing > Configuration > Accounting > Chart of + Accounts* and edit each account to configure the correct *Partner + policy*. + +Usage +===== + +If you put a partner on an account move line with an account whose type +is configured with *Partner policy* = *never*, you will get an error +message. + +If you don't put a partner on an account move line with an account whose +type is configured with *Partner policy* = *always*, you will get an +error message. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ACSONE SA/NV +* Akretion + +Contributors +------------ + +- Stéphane Bidoul +- Alexis de Lattre +- Raf Ven + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainer `__: + +|maintainer-alexis-via| + +This module is part of the `OCA/account-financial-tools `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_partner_required/__init__.py b/account_partner_required/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/account_partner_required/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/account_partner_required/__manifest__.py b/account_partner_required/__manifest__.py new file mode 100644 index 00000000000..0ed840438db --- /dev/null +++ b/account_partner_required/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2014-2022 Acsone (http://acsone.eu). +# Copyright 2016-2022 Akretion France (http://www.akretion.com/) +# @author Stéphane Bidoul +# @author Alexis de Lattre +# Copyright 2018-2022 DynApps (https://odoo.dynapps.be/) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Account Partner Required", + "version": "18.0.1.0.0", + "category": "Accounting", + "license": "AGPL-3", + "summary": "Adds an option 'partner policy' on accounts", + "author": "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)", + "maintainers": ["alexis-via"], + "website": "https://github.com/OCA/account-financial-tools", + "depends": ["account"], + "data": ["views/account_account.xml"], + "installable": True, + "application": False, +} diff --git a/account_partner_required/i18n/account_partner_required.pot b/account_partner_required/i18n/account_partner_required.pot new file mode 100644 index 00000000000..cbb89ee3da2 --- /dev/null +++ b/account_partner_required/i18n/account_partner_required.pot @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_account +msgid "Account" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner is present." +msgstr "" diff --git a/account_partner_required/i18n/ar.po b/account_partner_required/i18n/ar.po new file mode 100644 index 00000000000..02a56c52bf9 --- /dev/null +++ b/account_partner_required/i18n/ar.po @@ -0,0 +1,104 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2018-06-29 06:01+0000\n" +"Last-Translator: Osoul \n" +"Language-Team: Arabic (http://www.transifex.com/oca/OCA-account-financial-" +"tools-8-0/language/ar/)\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" +"X-Generator: Weblate 3.0.1\n" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_account +msgid "Account" +msgstr "الحساب" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "دائماً" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "عنصر اليومية" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "ممنوع" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "إختياري" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" + +#~ msgid "Account Type" +#~ msgstr "نوع الحساب" + +#, python-format +#~ msgid "" +#~ "Partner policy is set to 'Always' with account '%s' but the partner is " +#~ "missing in the account move line with label '%s'." +#~ msgstr "" +#~ "سياسة خانة الشريك هي 'دائماً' للحساب '%s' ولكن خانة الشريك فارغة في عنصر " +#~ "اليومية باسم '%s'." + +#, python-format +#~ msgid "" +#~ "Partner policy is set to 'Never' with account '%s' but the account move " +#~ "line with label '%s' has a partner '%s'." +#~ msgstr "" +#~ "سياسة خانة الشريك هي 'ممنوع' للحساب '%s' ولكن في عنصر اليومية باسم '%s' " +#~ "تم إدخال الشريك '%s'." + +#~ msgid "Policy for Partner Field" +#~ msgstr "سياسة خانة الشريك" diff --git a/account_partner_required/i18n/bs.po b/account_partner_required/i18n/bs.po new file mode 100644 index 00000000000..3747e338d39 --- /dev/null +++ b/account_partner_required/i18n/bs.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Stavke dnevnika" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/cs.po b/account_partner_required/i18n/cs.po new file mode 100644 index 00000000000..8ecb1b5aed1 --- /dev/null +++ b/account_partner_required/i18n/cs.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Položky deníku" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/de.po b/account_partner_required/i18n/de.po new file mode 100644 index 00000000000..0c64846985c --- /dev/null +++ b/account_partner_required/i18n/de.po @@ -0,0 +1,116 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# Rudolf Schnapka , 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 \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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +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 +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Niemals" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Wahlweise" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" + +#~ msgid "Account Type" +#~ msgstr "Kontoart" + +#, 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'." + +#, 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." + +#~ msgid "Policy for Partner Field" +#~ msgstr "Regel zum Partnerfeld" + +#~ 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." diff --git a/account_partner_required/i18n/en_GB.po b/account_partner_required/i18n/en_GB.po new file mode 100644 index 00000000000..d9e4fcb3787 --- /dev/null +++ b/account_partner_required/i18n/en_GB.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Journal Items" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/es.po b/account_partner_required/i18n/es.po new file mode 100644 index 00000000000..804d09c5eea --- /dev/null +++ b/account_partner_required/i18n/es.po @@ -0,0 +1,119 @@ +# 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: 2023-11-06 20:36+0000\n" +"Last-Translator: Ivorra78 \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" +"X-Generator: Weblate 4.17\n" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_account +msgid "Account" +msgstr "Cuenta" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "Siempre" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "Artículo Diario" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Nunca" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Opcional" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "Política de Socio" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" +"La política de socio está establecida en \"Siempre\" en la cuenta " +"\"%(account)s\", pero falta el socio en la partida \"%(move_line)s\"." + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" +"La política de socios está establecida en \"Nunca\" en la cuenta " +"\"%(account)s\" pero el artículo del diario \"%(move_line)s\" tiene el socio " +"\"%(partner)s\"." + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" +"Establezca la política para el campo socio:\n" +"si selecciona 'Opcional', el contable es libre de poner un socio en las " +"partidas de diario con esta cuenta ;\n" +"Si selecciona \"Siempre\", el contable recibirá un mensaje de error si no " +"hay ningún interlocutor;\n" +"si selecciona \"Nunca\", el contable recibirá un mensaje de error si hay un " +"socio." + +#, python-format +#~ msgid "" +#~ "Partner policy is set to 'Never' on account '%(account)s' but the journal " +#~ "item '%(move_line)s' has a partner '%(partner)s'." +#~ msgstr "" +#~ "La política de socios está configurada en \"Nunca\" en la cuenta " +#~ "'%(account)s' pero el elemento del diario '%(move_line)s' tiene un socio " +#~ "'%(partner)s'." + +#~ msgid "" +#~ "Set the policy for the partner field:\n" +#~ "if 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 ;\n" +#~ "if you select 'Never', the accountant will get an error message if a " +#~ "partner is present." +#~ msgstr "" +#~ "Establezca la política para el campo socio:\n" +#~ "si selecciona \"Opcional\", el contable es libre de poner un socio en una " +#~ "línea de movimiento de cuenta con esta cuenta ;\n" +#~ "Si selecciona \"Siempre\", el contable recibirá un mensaje de error si no " +#~ "hay ningún socio;\n" +#~ "si selecciona \"Nunca\", el contable recibirá un mensaje de error si hay " +#~ "un socio." diff --git a/account_partner_required/i18n/es_CR.po b/account_partner_required/i18n/es_CR.po new file mode 100644 index 00000000000..50840a6db97 --- /dev/null +++ b/account_partner_required/i18n/es_CR.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Elementos diario" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/es_EC.po b/account_partner_required/i18n/es_EC.po new file mode 100644 index 00000000000..f2c7349cdbd --- /dev/null +++ b/account_partner_required/i18n/es_EC.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# Cristian Salamea , 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 , 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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "Detalle Contable" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/es_MX.po b/account_partner_required/i18n/es_MX.po new file mode 100644 index 00000000000..403c0dc6544 --- /dev/null +++ b/account_partner_required/i18n/es_MX.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Elementos diario" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/fr.po b/account_partner_required/i18n/fr.po new file mode 100644 index 00000000000..3c61e570fd8 --- /dev/null +++ b/account_partner_required/i18n/fr.po @@ -0,0 +1,148 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# OCA Transbot , 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: 2023-11-03 14:36+0000\n" +"Last-Translator: Alexis de Lattre \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.17\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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +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 +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Jamais" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Optionnel" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "Politique des partenaires" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" +"La politique des partenaires est définie sur \"Toujours\" pour le compte " +"\"%(account)s\", mais le partenaire est absent de l'écriture comptable " +"\"%(move_line)s\"." + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" + +#, python-format +#~ msgid "" +#~ "Partner policy is set to 'Never' on account '%(account)s' but the journal " +#~ "item '%(move_line)s' has a partner '%(partner)s'." +#~ msgstr "" +#~ "La politique des partenaires est définie sur \"Jamais\" pour le compte " +#~ "\"%(account)s\", mais l'écriture comptable \"%(move_line)s\" a un " +#~ "partenaire \"%(partner)s\"." + +#~ msgid "" +#~ "Set the policy for the partner field:\n" +#~ "if 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 ;\n" +#~ "if you select 'Never', the accountant will get an error message if a " +#~ "partner is present." +#~ msgstr "" +#~ "Définit la politique pour le champ partenaire :\n" +#~ "si vous sélectionnez \"Optionnel\", le comptable est libre de mettre un " +#~ "partenaire sur une écriture comptable avec ce compte ;\n" +#~ "si vous sélectionnez \"Toujours\", le comptable aura un message d'erreur " +#~ "s'il n'y a pas de partenaire ;\n" +#~ "si vous sélectionnez \"Jamais\", le comptable aura un message d'erreur si " +#~ "un partenaire est présent." + +#~ msgid "Account Type" +#~ msgstr "Type de compte" + +#, 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'." + +#, 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'." + +#~ msgid "Policy for Partner Field" +#~ msgstr "Politique pour le champ partenaire" + +#~ 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." diff --git a/account_partner_required/i18n/hr.po b/account_partner_required/i18n/hr.po new file mode 100644 index 00000000000..9df24842eb4 --- /dev/null +++ b/account_partner_required/i18n/hr.po @@ -0,0 +1,116 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# Bole , 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 , 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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +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 +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Nikad" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Opcija" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" + +#~ msgid "Account Type" +#~ msgstr "Vrsta konta" + +#, 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'." + +#, 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'." + +#~ msgid "Policy for Partner Field" +#~ msgstr "Pravilo za partnera" + +#~ 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." diff --git a/account_partner_required/i18n/hu.po b/account_partner_required/i18n/hu.po new file mode 100644 index 00000000000..cd21d86787b --- /dev/null +++ b/account_partner_required/i18n/hu.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Könyvelési tételsorok" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/it.po b/account_partner_required/i18n/it.po new file mode 100644 index 00000000000..0cdfa1b77d5 --- /dev/null +++ b/account_partner_required/i18n/it.po @@ -0,0 +1,92 @@ +# 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: 2024-02-22 11:38+0000\n" +"Last-Translator: mymage \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" +"X-Generator: Weblate 4.17\n" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_account +msgid "Account" +msgstr "Conto" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "Sempre" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "Movimento contabile" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Mai" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Opzionale" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "Politica partner" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" +"La politica del partner è impostata a 'Sempre' sul conto '%(account)s' ma il " +"partner manca nel movimento contabile '%(move_line)s'." + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" +"La politica del partner è impostata a 'Mai' sul conto '%(account)s' ma il " +"movimento contabile '%(move_line)s' ha il partner '%(partner)s'." + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" +"Impostare la politica per il campo partner:\n" +"se si seleziona 'Opzionale', il contabile è libero di inserire un partner " +"nel movimento contabile con questo conto;\n" +"se si seleziona 'Sempre', il contabile riceverà un messaggio di errore se " +"non c'è il partner;\n" +"se si seleziona 'Mai', il contabile riceverà un messaggio di errore se c'è " +"il partner." diff --git a/account_partner_required/i18n/ja.po b/account_partner_required/i18n/ja.po new file mode 100644 index 00000000000..a3bf3801587 --- /dev/null +++ b/account_partner_required/i18n/ja.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "仕訳項目" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/lt.po b/account_partner_required/i18n/lt.po new file mode 100644 index 00000000000..f4a4d194861 --- /dev/null +++ b/account_partner_required/i18n/lt.po @@ -0,0 +1,84 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# Viktoras Norkus , 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 , 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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" + +#~ msgid "Account Type" +#~ msgstr "Sąskaitos tipas" diff --git a/account_partner_required/i18n/mk.po b/account_partner_required/i18n/mk.po new file mode 100644 index 00000000000..22cb3322882 --- /dev/null +++ b/account_partner_required/i18n/mk.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Ставки на дневник" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/mn.po b/account_partner_required/i18n/mn.po new file mode 100644 index 00000000000..7fcfa250039 --- /dev/null +++ b/account_partner_required/i18n/mn.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Журналын бичилт" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/nb.po b/account_partner_required/i18n/nb.po new file mode 100644 index 00000000000..106edff5d12 --- /dev/null +++ b/account_partner_required/i18n/nb.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Journal Elementer" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/nl.po b/account_partner_required/i18n/nl.po new file mode 100644 index 00000000000..3344fa12061 --- /dev/null +++ b/account_partner_required/i18n/nl.po @@ -0,0 +1,80 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# Frank Schellenberg , 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 , 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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/nl_BE.po b/account_partner_required/i18n/nl_BE.po new file mode 100644 index 00000000000..5720ee3d6b3 --- /dev/null +++ b/account_partner_required/i18n/nl_BE.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Boekingslijnen" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/nl_NL.po b/account_partner_required/i18n/nl_NL.po new file mode 100644 index 00000000000..98b5ca9ee42 --- /dev/null +++ b/account_partner_required/i18n/nl_NL.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# Frank Schellenberg , 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 , 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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/pt.po b/account_partner_required/i18n/pt.po new file mode 100644 index 00000000000..bd44da5469b --- /dev/null +++ b/account_partner_required/i18n/pt.po @@ -0,0 +1,117 @@ +# 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 \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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +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 +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Nunca" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Opcional" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" + +#~ msgid "Account Type" +#~ msgstr "Tipo de Conta" + +#, 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'." + +#, 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'." + +#~ msgid "Policy for Partner Field" +#~ msgstr "Campo de Política para Parceiros" + +#~ 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." diff --git a/account_partner_required/i18n/pt_BR.po b/account_partner_required/i18n/pt_BR.po new file mode 100644 index 00000000000..221bcddbdec --- /dev/null +++ b/account_partner_required/i18n/pt_BR.po @@ -0,0 +1,116 @@ +# 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 \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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +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 +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Nunca" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Opcional" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" + +#~ msgid "Account Type" +#~ msgstr "Tipo de Conta" + +#, 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'." + +#, 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'." + +#~ msgid "Policy for Partner Field" +#~ msgstr "Política para o campo Parceiro" + +#~ 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." diff --git a/account_partner_required/i18n/ro.po b/account_partner_required/i18n/ro.po new file mode 100644 index 00000000000..fac6a655752 --- /dev/null +++ b/account_partner_required/i18n/ro.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Elementele Jurnalului" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/ru.po b/account_partner_required/i18n/ru.po new file mode 100644 index 00000000000..9a159606eda --- /dev/null +++ b/account_partner_required/i18n/ru.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Элементы журнала" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/sl.po b/account_partner_required/i18n/sl.po new file mode 100644 index 00000000000..c54d3648a32 --- /dev/null +++ b/account_partner_required/i18n/sl.po @@ -0,0 +1,98 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# OCA Transbot , 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 \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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +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 +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Nikoli" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Opcijsko" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" + +#~ msgid "Account Type" +#~ msgstr "Tip konta" + +#~ 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." diff --git a/account_partner_required/i18n/sv.po b/account_partner_required/i18n/sv.po new file mode 100644 index 00000000000..c90e90298a4 --- /dev/null +++ b/account_partner_required/i18n/sv.po @@ -0,0 +1,92 @@ +# 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: 2024-02-27 12:34+0000\n" +"Last-Translator: jakobkrabbe \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" +"X-Generator: Weblate 4.17\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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "Alltid" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "Transaktioner" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "Aldrig" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "Valfritt" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "Policy för partner" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" +"Partnerpolicy är inställd på \"Alltid\" på konto \"%(account)s\" men " +"partnern saknas på journalposten \"%(move_line)s\"." + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" +"Partnerpolicy är inställd på \"Aldrig\" på konto \"%(account)s\" men " +"journalposten \"%(move_line)s\" har partnern \"%(partner)s\"." + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" +"Ange policy för partnerfältet:\n" +"Om du väljer \"Valfritt\", kan revisorn sätta en partner på journalposter " +"med detta konto ;\n" +"Om du väljer \"Alltid\" kommer revisorn att få ett felmeddelande om det inte " +"finns någon partner;\n" +"Om du väljer \"Aldrig\" kommer revisorn att få ett felmeddelande om det " +"finns en partner." diff --git a/account_partner_required/i18n/tr.po b/account_partner_required/i18n/tr.po new file mode 100644 index 00000000000..f0dba8bf7ef --- /dev/null +++ b/account_partner_required/i18n/tr.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "Günlük Maddeleri" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/tr_TR.po b/account_partner_required/i18n/tr_TR.po new file mode 100644 index 00000000000..e6fc64e3684 --- /dev/null +++ b/account_partner_required/i18n/tr_TR.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_partner_required +# +# Translators: +# Ediz Duman , 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 , 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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +msgid "Journal Item" +msgstr "Yevmiye Öğe" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/zh_CN.po b/account_partner_required/i18n/zh_CN.po new file mode 100644 index 00000000000..23a78ce9bec --- /dev/null +++ b/account_partner_required/i18n/zh_CN.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "日记帐项目" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/i18n/zh_TW.po b/account_partner_required/i18n/zh_TW.po new file mode 100644 index 00000000000..0b8bde22593 --- /dev/null +++ b/account_partner_required/i18n/zh_TW.po @@ -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.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always +msgid "Always" +msgstr "" + +#. module: account_partner_required +#: model:ir.model,name:account_partner_required.model_account_move_line +#, fuzzy +msgid "Journal Item" +msgstr "帳簿項目" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never +msgid "Never" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional +msgid "Optional" +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy +#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search +msgid "Partner Policy" +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Always' on account '%(account)s' but the partner " +"is missing on the journal item '%(move_line)s'." +msgstr "" + +#. module: account_partner_required +#. odoo-python +#: code:addons/account_partner_required/models/account_move_line.py:0 +#, python-format +msgid "" +"Partner policy is set to 'Never' on account '%(account)s' but the journal " +"item '%(move_line)s' has the partner '%(partner)s'." +msgstr "" + +#. module: account_partner_required +#: model:ir.model.fields,help:account_partner_required.field_account_account__partner_policy +msgid "" +"Set the policy for the partner field:\n" +"if you select 'Optional', the accountant is free to put a partner on journal " +"items with this account ;\n" +"if you select 'Always', the accountant will get an error message if there is " +"no partner ;\n" +"if you select 'Never', the accountant will get an error message if a partner " +"is present." +msgstr "" diff --git a/account_partner_required/models/__init__.py b/account_partner_required/models/__init__.py new file mode 100644 index 00000000000..b37ced3cb70 --- /dev/null +++ b/account_partner_required/models/__init__.py @@ -0,0 +1,2 @@ +from . import account_account +from . import account_move_line diff --git a/account_partner_required/models/account_account.py b/account_partner_required/models/account_account.py new file mode 100644 index 00000000000..4c5a24c8adb --- /dev/null +++ b/account_partner_required/models/account_account.py @@ -0,0 +1,31 @@ +# Copyright 2014-2022 Acsone (http://acsone.eu) +# Copyright 2016-2022 Akretion (http://www.akretion.com/) +# @author Stéphane Bidoul +# @author Alexis de Lattre +# 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 journal items 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 diff --git a/account_partner_required/models/account_move_line.py b/account_partner_required/models/account_move_line.py new file mode 100644 index 00000000000..8f665488786 --- /dev/null +++ b/account_partner_required/models/account_move_line.py @@ -0,0 +1,43 @@ +# Copyright 2014-2022 Acsone (http://acsone.eu) +# Copyright 2016-2022 Akretion (http://www.akretion.com/) +# @author Stéphane Bidoul +# @author Alexis de Lattre +# 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 self.env._( + "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 self.env._( + "Partner policy is set to 'Never' on account '%(account)s' but " + "the journal item '%(move_line)s' has the 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) diff --git a/account_partner_required/pyproject.toml b/account_partner_required/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/account_partner_required/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_partner_required/readme/CONFIGURE.md b/account_partner_required/readme/CONFIGURE.md new file mode 100644 index 00000000000..32d664b64f5 --- /dev/null +++ b/account_partner_required/readme/CONFIGURE.md @@ -0,0 +1,4 @@ +To configure this module, you need to: + +1. Go to the menu *Invoicing \> Configuration \> Accounting \> Chart of Accounts* and edit each account to configure the correct *Partner + policy*. diff --git a/account_partner_required/readme/CONTRIBUTORS.md b/account_partner_required/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..4952d6c1ec8 --- /dev/null +++ b/account_partner_required/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Stéphane Bidoul \<\> +- Alexis de Lattre \<\> +- Raf Ven \<\> diff --git a/account_partner_required/readme/DESCRIPTION.md b/account_partner_required/readme/DESCRIPTION.md new file mode 100644 index 00000000000..aa4c2d3df65 --- /dev/null +++ b/account_partner_required/readme/DESCRIPTION.md @@ -0,0 +1,14 @@ +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). diff --git a/account_partner_required/readme/USAGE.md b/account_partner_required/readme/USAGE.md new file mode 100644 index 00000000000..081413d1521 --- /dev/null +++ b/account_partner_required/readme/USAGE.md @@ -0,0 +1,7 @@ +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. diff --git a/account_partner_required/static/description/icon.png b/account_partner_required/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/account_partner_required/static/description/icon.png differ diff --git a/account_partner_required/static/description/index.html b/account_partner_required/static/description/index.html new file mode 100644 index 00000000000..98e077d0499 --- /dev/null +++ b/account_partner_required/static/description/index.html @@ -0,0 +1,459 @@ + + + + + +Account Partner Required + + + +
+

Account Partner Required

+ + +

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runboat

+

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.

+

Table of contents

+ +
+

Configuration

+

To configure this module, you need to:

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

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. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

alexis-via

+

This module is part of the OCA/account-financial-tools project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/account_partner_required/tests/__init__.py b/account_partner_required/tests/__init__.py new file mode 100644 index 00000000000..88f3a6dcfda --- /dev/null +++ b/account_partner_required/tests/__init__.py @@ -0,0 +1 @@ +from . import test_account_partner_required diff --git a/account_partner_required/tests/test_account_partner_required.py b/account_partner_required/tests/test_account_partner_required.py new file mode 100644 index 00000000000..56dce5d46c5 --- /dev/null +++ b/account_partner_required/tests/test_account_partner_required.py @@ -0,0 +1,148 @@ +# Copyright 2014-2022 Acsone (http://acsone.eu) +# Copyright 2016-2022 Akretion (http://www.akretion.com/) +# @author Stéphane Bidoul +# @author Alexis de Lattre +# 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_ids": [cls.company_id], + } + ) + cls.account2 = cls.account_obj.create( + { + "code": "124243", + "name": "Test 2", + "account_type": "asset_receivable", + "company_ids": [cls.company_id], + } + ) + cls.account3 = cls.account_obj.create( + { + "code": "124244", + "name": "Test 3", + "account_type": "liability_payable", + "company_ids": [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, + } + ) diff --git a/account_partner_required/views/account_account.xml b/account_partner_required/views/account_account.xml new file mode 100644 index 00000000000..f1441608a92 --- /dev/null +++ b/account_partner_required/views/account_account.xml @@ -0,0 +1,41 @@ + + + + + account.account + + + + + + + + + + account.account + + + + + + + + + + account.account + + + + + + + +