mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
Merge pull request #550 from SerpentConsultingServices/12.0-MIG-contract_sale_generation
[12.0][MIG] contract_sale_generation
This commit is contained in:
87
contract_sale_generation/README.rst
Normal file
87
contract_sale_generation/README.rst
Normal file
@@ -0,0 +1,87 @@
|
||||
======================================
|
||||
Contracts Management - Recurring Sales
|
||||
======================================
|
||||
|
||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Beta
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/contract/tree/12.0/contract_sale_generation
|
||||
:alt: OCA/contract
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract_sale_generation
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/110/12.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module extends functionality of contracts to be able to generate sales
|
||||
orders instead of invoices.
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To use this module, you need to:
|
||||
|
||||
#. Go to Sales -> Contracts and select or create a new contract.
|
||||
#. Fill fields for selecting the recurrency and invoice parameters:
|
||||
|
||||
* Type defines document that contract will generate, can be "Sales" or "Invoices"
|
||||
* Sale Autoconfirm, validate Sales Orders if type is "Sales"
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/contract/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20contract_sale_generation%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* PESOL
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Angel Moya <angel.moya@pesol.es>
|
||||
* Florent THOMAS <florent.thomas@mind-and-go.com>
|
||||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/12.0/contract_sale_generation>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
2
contract_sale_generation/__init__.py
Normal file
2
contract_sale_generation/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
from . import models
|
||||
21
contract_sale_generation/__manifest__.py
Normal file
21
contract_sale_generation/__manifest__.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright 2017 Pesol (<http://pesol.es>)
|
||||
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
|
||||
{
|
||||
'name': 'Contracts Management - Recurring Sales',
|
||||
'version': '12.0.1.0.0',
|
||||
'category': 'Contract Management',
|
||||
'license': 'AGPL-3',
|
||||
'author': "PESOL, "
|
||||
"Odoo Community Association (OCA)",
|
||||
'website': 'https://github.com/oca/contract',
|
||||
'depends': ['contract', 'sale'],
|
||||
'data': [
|
||||
'data/contract_cron.xml',
|
||||
'views/contract.xml',
|
||||
'views/contract_template.xml',
|
||||
],
|
||||
'installable': True,
|
||||
}
|
||||
15
contract_sale_generation/data/contract_cron.xml
Normal file
15
contract_sale_generation/data/contract_cron.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<odoo>
|
||||
|
||||
<record id="contract_cron_for_sale" model="ir.cron">
|
||||
<field name="name">Generate Recurring sales from Contracts</field>
|
||||
<field name="model_id" ref="model_contract_contract"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">model.cron_recurring_create_sale()</field>
|
||||
<field name="user_id" ref="base.user_root" />
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field eval="False" name="doall" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
74
contract_sale_generation/i18n/ca.po
Normal file
74
contract_sale_generation/i18n/ca.po
Normal file
@@ -0,0 +1,74 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
|
||||
"Language: ca\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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Compte analític"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
70
contract_sale_generation/i18n/contract_sale_generation.pot
Normal file
70
contract_sale_generation/i18n/contract_sale_generation.pot
Normal file
@@ -0,0 +1,70 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
|
||||
75
contract_sale_generation/i18n/de.po
Normal file
75
contract_sale_generation/i18n/de.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2019-02-22 15:51+0000\n"
|
||||
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
|
||||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 3.4\n"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Kostenstelle"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr "Verkaufsaufträge anlegen"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Rechnung"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr "Verkaufsaufträge"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr "automatisches Bestätigen der Verkaufsaufträge"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr "Verkäufe"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr "Typ"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Sie müssen zuerst einen Kunden für den Vertrag '%s' auswählen!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "account.analytic.contract"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr "=> Periodische Verkaufsaufträge anzeigen"
|
||||
75
contract_sale_generation/i18n/el_GR.po
Normal file
75
contract_sale_generation/i18n/el_GR.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/"
|
||||
"el_GR/)\n"
|
||||
"Language: el_GR\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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Αναλυτικός Λογαριασμός"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
82
contract_sale_generation/i18n/es.po
Normal file
82
contract_sale_generation/i18n/es.po
Normal file
@@ -0,0 +1,82 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Ismael Calvo <ismaelcj@gmail.com>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: Ismael Calvo <ismaelcj@gmail.com>, 2018\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Cuenta analítica"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr "Crear ventas"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Factura"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr "Venta"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr "Autoconfirmar venta"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr "Ventas"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr "Tipo"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "¡Seleccione un cliente para este contrato %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "account.analytic.contract"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr "⇒ Mostrar ventas recurrentes"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "You must review start and end dates!\n"
|
||||
#~ "%s"
|
||||
#~ msgstr ""
|
||||
#~ "Debe revisar las fechas de inicio y de fin\n"
|
||||
#~ "%s"
|
||||
75
contract_sale_generation/i18n/es_MX.po
Normal file
75
contract_sale_generation/i18n/es_MX.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/"
|
||||
"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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Cuenta analítica"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
75
contract_sale_generation/i18n/fi.po
Normal file
75
contract_sale_generation/i18n/fi.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2019-03-20 14:14+0000\n"
|
||||
"Last-Translator: Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>\n"
|
||||
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
|
||||
"Language: fi\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.5.1\n"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Analyyttinen tili"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr "Luo myyntejä"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Lasku"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr "Myynti"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr "Myynnin automaattivahvistus"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr "Myynnit"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr "Tyyppi"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Sopimukselle täytyy ensin valita asiakas %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "account.analytic.contract"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr "⇒ Näytä toistuvaismyynnit"
|
||||
82
contract_sale_generation/i18n/fr.po
Normal file
82
contract_sale_generation/i18n/fr.po
Normal file
@@ -0,0 +1,82 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Fabien Bourgeois <fabien@yaltik.com>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-05-19 02:01+0000\n"
|
||||
"PO-Revision-Date: 2018-05-19 02:01+0000\n"
|
||||
"Last-Translator: Fabien Bourgeois <fabien@yaltik.com>, 2018\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"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Compte analytique"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr "Créer des commandes"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Facture"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr "Vente"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr "Confirmation automatique des commandes"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr "Ventes"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr "Type"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Vous devez d'abord sélectionner un Client pour le contrat %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "account.analytic.contract"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr "⇒ Voir les commandes récurrentes"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "You must review start and end dates!\n"
|
||||
#~ "%s"
|
||||
#~ msgstr ""
|
||||
#~ "Vous devez vérifier vos dates de début et de fin!\n"
|
||||
#~ "%s"
|
||||
75
contract_sale_generation/i18n/gl.po
Normal file
75
contract_sale_generation/i18n/gl.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2019-02-07 11:50+0000\n"
|
||||
"Last-Translator: Marta Vázquez Rodríguez <vazrodmar@gmail.com>\n"
|
||||
"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n"
|
||||
"Language: gl\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.4\n"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Conta analítica"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr "Crear vendas"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Factura"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr "Venda"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr "Autoconfirmar venda"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr "Vendas"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr "Tipo"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Seleccione un cliente para este contrato %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "'account.analytic.contract'"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr "⇒ Mostrar vendas recurrentes"
|
||||
75
contract_sale_generation/i18n/hi_IN.po
Normal file
75
contract_sale_generation/i18n/hi_IN.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# Ashish Deshmukh <ashish.p.deshmukh@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: Ashish Deshmukh <ashish.p.deshmukh@gmail.com>, 2017\n"
|
||||
"Language-Team: Hindi (India) (https://www.transifex.com/oca/teams/23907/"
|
||||
"hi_IN/)\n"
|
||||
"Language: hi_IN\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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "विश्लेषणात्मक खाता"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "चालान"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
83
contract_sale_generation/i18n/hr.po
Normal file
83
contract_sale_generation/i18n/hr.po
Normal file
@@ -0,0 +1,83 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Bole <bole@dajmi5.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
|
||||
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
|
||||
"Language: hr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Analitički konto"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr "Kreiraj ponude"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Račun"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr "Prodaja"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr "Automatski potvrdi ponude"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr "Prodaje"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr "Tip"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Prvo morate odabrati partnera ua ugovor %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "account.analytic.contract"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr "⇒ Prikaži ponavljajuće ponude"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "You must review start and end dates!\n"
|
||||
#~ "%s"
|
||||
#~ msgstr ""
|
||||
#~ "Morate revidirati početni i završni datum ugovora!!\n"
|
||||
#~ "%s"
|
||||
77
contract_sale_generation/i18n/hr_HR.po
Normal file
77
contract_sale_generation/i18n/hr_HR.po
Normal file
@@ -0,0 +1,77 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Bole <bole@dajmi5.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
|
||||
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
|
||||
"hr_HR/)\n"
|
||||
"Language: hr_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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Konto analitike"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Račun"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Prvo morate odabrati partnera za Ugovor %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "account.analytic.contract"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
74
contract_sale_generation/i18n/hu.po
Normal file
74
contract_sale_generation/i18n/hu.po
Normal file
@@ -0,0 +1,74 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Analitikus gyűjtőkód könyvelés"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
75
contract_sale_generation/i18n/it.po
Normal file
75
contract_sale_generation/i18n/it.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Lorenzo Battistini <lorenzo.battistini@agilebg.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: Lorenzo Battistini <lorenzo.battistini@agilebg.com>, 2017\n"
|
||||
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Conto Analitico"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Fattura"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Bisogna prima selezionare un cliente per il contratto %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
75
contract_sale_generation/i18n/nl.po
Normal file
75
contract_sale_generation/i18n/nl.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Erwin van der Ploeg <erwin@odooexperts.nl>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: Erwin van der Ploeg <erwin@odooexperts.nl>, 2017\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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Kostenplaats"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Factuur"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr " Er moet eerst een klant worden ingesteld op contract %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
75
contract_sale_generation/i18n/nl_NL.po
Normal file
75
contract_sale_generation/i18n/nl_NL.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# Peter Hageman <hageman.p@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Factuur"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
83
contract_sale_generation/i18n/pt.po
Normal file
83
contract_sale_generation/i18n/pt.po
Normal file
@@ -0,0 +1,83 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Pedro Castro Silva <inactive+pcs.sossia@transifex.com>, 2017
|
||||
# Pedro Castro Silva <pedrocs@exo.pt>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>, 2017\n"
|
||||
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/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"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Conta Analítica"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Fatura"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Deve primeiro selecionar um Cliente para o Contrato %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "account.analytic.contract"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "You must review start and end dates!\n"
|
||||
#~ "%s"
|
||||
#~ msgstr ""
|
||||
#~ "Tem que rever as datas de início e fim!\n"
|
||||
#~ "%s"
|
||||
76
contract_sale_generation/i18n/pt_BR.po
Normal file
76
contract_sale_generation/i18n/pt_BR.po
Normal file
@@ -0,0 +1,76 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Albert Vonpupp <vonpupp@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: Albert Vonpupp <vonpupp@gmail.com>, 2017\n"
|
||||
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
|
||||
"teams/23907/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"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Conta Analítica"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Fatura"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Primeiro você deve selecionar um Cliente para o contrato %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
75
contract_sale_generation/i18n/pt_PT.po
Normal file
75
contract_sale_generation/i18n/pt_PT.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/"
|
||||
"teams/23907/pt_PT/)\n"
|
||||
"Language: pt_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"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Conta Analítica"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
76
contract_sale_generation/i18n/ro.po
Normal file
76
contract_sale_generation/i18n/ro.po
Normal file
@@ -0,0 +1,76 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# Dorin Hongu <dhongu@gmail.com>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-06 03:17+0000\n"
|
||||
"PO-Revision-Date: 2018-01-06 03:17+0000\n"
|
||||
"Last-Translator: Dorin Hongu <dhongu@gmail.com>, 2018\n"
|
||||
"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Cont analitic"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Factura"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
84
contract_sale_generation/i18n/ru.po
Normal file
84
contract_sale_generation/i18n/ru.po
Normal file
@@ -0,0 +1,84 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# Мед Ведь <p060t@list.ru>, 2017
|
||||
# nek, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: nek, 2018\n"
|
||||
"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Аналитический счет"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Счёт-фактура"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr "Продажа"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr "Продажи"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "You must review start and end dates!\n"
|
||||
#~ "%s"
|
||||
#~ msgstr ""
|
||||
#~ "Вы должны проверить даты начала и окончания!\n"
|
||||
#~ "%s"
|
||||
75
contract_sale_generation/i18n/sk_SK.po
Normal file
75
contract_sale_generation/i18n/sk_SK.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Slovak (Slovakia) (https://www.transifex.com/oca/teams/23907/"
|
||||
"sk_SK/)\n"
|
||||
"Language: sk_SK\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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Analytický účet"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
75
contract_sale_generation/i18n/sl.po
Normal file
75
contract_sale_generation/i18n/sl.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\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"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Analitični konto"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
81
contract_sale_generation/i18n/tr.po
Normal file
81
contract_sale_generation/i18n/tr.po
Normal file
@@ -0,0 +1,81 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# Ediz Duman <neps1192@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-21 01:47+0000\n"
|
||||
"PO-Revision-Date: 2018-04-21 01:47+0000\n"
|
||||
"Last-Translator: Ediz Duman <neps1192@gmail.com>, 2017\n"
|
||||
"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Analitik Hesap"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr "Satış Oluşturun"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Fatura"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr "Satış"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr "Satış otomatik onaylama"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr "Satışlar"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr "Türü"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Önce Sözleşme %s için bir Müşteri seçmelisiniz!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr "account.analytic.contract"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr "⇒ Tekrarlayan Satışları Göster"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "You must review start and end dates!\n"
|
||||
#~ "%s"
|
||||
#~ msgstr ""
|
||||
#~ "Başlangıç ve bitiş tarihlerini incelemelisiniz!\n"
|
||||
#~ "%s"
|
||||
75
contract_sale_generation/i18n/tr_TR.po
Normal file
75
contract_sale_generation/i18n/tr_TR.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# Ediz Duman <neps1192@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-03 12:19+0000\n"
|
||||
"PO-Revision-Date: 2018-04-03 12:19+0000\n"
|
||||
"Last-Translator: Ediz Duman <neps1192@gmail.com>, 2017\n"
|
||||
"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/"
|
||||
"tr_TR/)\n"
|
||||
"Language: tr_TR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "Analitik Hesap"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr "Fatura"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr "Önce bir Müşteri Sözleşmesi seçmelisiniz %s!"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
75
contract_sale_generation/i18n/zh_CN.po
Normal file
75
contract_sale_generation/i18n/zh_CN.po
Normal file
@@ -0,0 +1,75 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_sale_generation
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-11-30 01:41+0000\n"
|
||||
"PO-Revision-Date: 2017-11-30 01:41+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/"
|
||||
"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: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_account
|
||||
msgid "Analytic Account"
|
||||
msgstr "核算科目"
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "Create sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Invoice"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: selection:account.analytic.account,type:0
|
||||
#: selection:account.analytic.contract,type:0
|
||||
msgid "Sale"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_sale_autoconfirm
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_sale_autoconfirm
|
||||
msgid "Sale autoconfirm"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.actions.act_window,name:contract_sale_generation.act_recurring_sales
|
||||
msgid "Sales"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_account_type
|
||||
#: model:ir.model.fields,field_description:contract_sale_generation.field_account_analytic_contract_type
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: code:addons/contract_sale_generation/models/account_analytic_account.py:46
|
||||
#, python-format
|
||||
msgid "You must first select a Customer for Contract %s!"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.model,name:contract_sale_generation.model_account_analytic_contract
|
||||
msgid "account.analytic.contract"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_sale_generation
|
||||
#: model:ir.ui.view,arch_db:contract_sale_generation.account_analytic_account_recurring_sale_form
|
||||
msgid "⇒ Show recurring sales"
|
||||
msgstr ""
|
||||
6
contract_sale_generation/models/__init__.py
Normal file
6
contract_sale_generation/models/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import abstract_contract
|
||||
from . import contract
|
||||
from . import sale_order_line
|
||||
from . import contract_line
|
||||
19
contract_sale_generation/models/abstract_contract.py
Normal file
19
contract_sale_generation/models/abstract_contract.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Copyright 2017 Pesol (<http://pesol.es>)
|
||||
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ContractAbstractContract(models.AbstractModel):
|
||||
_inherit = 'contract.abstract.contract'
|
||||
|
||||
type = fields.Selection(
|
||||
[('invoice', 'Invoice'),
|
||||
('sale', 'Sale')],
|
||||
string='Type',
|
||||
default='invoice',
|
||||
required=True,
|
||||
)
|
||||
sale_autoconfirm = fields.Boolean(
|
||||
string='Sale Autoconfirm')
|
||||
163
contract_sale_generation/models/contract.py
Normal file
163
contract_sale_generation/models/contract.py
Normal file
@@ -0,0 +1,163 @@
|
||||
# © 2004-2010 OpenERP SA
|
||||
# © 2014 Angel Moya <angel.moya@domatix.com>
|
||||
# © 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
||||
# © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
|
||||
# Copyright 2016-2017 LasLabs Inc.
|
||||
# Copyright 2017 Pesol (<http://pesol.es>)
|
||||
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
|
||||
# Copyright 2018 Therp BV <https://therp.nl>.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
|
||||
|
||||
class ContractContract(models.Model):
|
||||
_inherit = 'contract.contract'
|
||||
|
||||
sale_count = fields.Integer(compute="_compute_sale_count")
|
||||
|
||||
@api.multi
|
||||
def _prepare_sale(self, date_ref):
|
||||
self.ensure_one()
|
||||
sale = self.env['sale.order'].new({
|
||||
'partner_id': self.partner_id,
|
||||
'date_order': fields.Date.to_string(date_ref),
|
||||
'origin': self.name,
|
||||
'company_id': self.company_id.id,
|
||||
'user_id': self.partner_id.user_id.id,
|
||||
})
|
||||
if self.payment_term_id:
|
||||
sale.payment_term_id = self.payment_term_id.id
|
||||
if self.fiscal_position_id:
|
||||
sale.fiscal_position_id = self.fiscal_position_id.id
|
||||
# Get other sale values from partner onchange
|
||||
sale.onchange_partner_id()
|
||||
return sale._convert_to_write(sale._cache)
|
||||
|
||||
@api.multi
|
||||
def _get_related_sales(self):
|
||||
self.ensure_one()
|
||||
sales = (self.env['sale.order.line']
|
||||
.search([('contract_line_id', 'in',
|
||||
self.contract_line_ids.ids)
|
||||
]).mapped('order_id'))
|
||||
return sales
|
||||
|
||||
@api.multi
|
||||
def _compute_sale_count(self):
|
||||
for rec in self:
|
||||
rec.sale_count = len(rec._get_related_sales())
|
||||
|
||||
@api.multi
|
||||
def action_show_sales(self):
|
||||
self.ensure_one()
|
||||
tree_view = self.env.ref('sale.view_order_tree',
|
||||
raise_if_not_found=False)
|
||||
form_view = self.env.ref('sale.view_order_form',
|
||||
raise_if_not_found=False)
|
||||
action = {
|
||||
'type': 'ir.actions.act_window',
|
||||
'name': 'Sales Orders',
|
||||
'res_model': 'sale.order',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,kanban,form,calendar,pivot,graph,activity',
|
||||
'domain': [('id', 'in', self._get_related_sales().ids)],
|
||||
}
|
||||
if tree_view and form_view:
|
||||
action['views'] = [(tree_view.id, 'tree'), (form_view.id, 'form')]
|
||||
return action
|
||||
|
||||
@api.multi
|
||||
def recurring_create_sale(self):
|
||||
"""
|
||||
This method triggers the creation of the next sale order of the
|
||||
contracts even if their next sale order date is in the future.
|
||||
"""
|
||||
sales = self._recurring_create_sale()
|
||||
for sale_rec in sales:
|
||||
self.message_post(
|
||||
body=_(
|
||||
'Contract manually sale order: '
|
||||
'<a href="#" data-oe-model="%s" data-oe-id="%s">'
|
||||
'Sale Order'
|
||||
'</a>'
|
||||
)
|
||||
% (sale_rec._name, sale_rec.id)
|
||||
)
|
||||
return sales
|
||||
|
||||
@api.multi
|
||||
def _prepare_recurring_sales_values(self, date_ref=False):
|
||||
"""
|
||||
This method builds the list of sales values to create, based on
|
||||
the lines to sale of the contracts in self.
|
||||
!!! The date of next invoice (recurring_next_date) is updated here !!!
|
||||
:return: list of dictionaries (invoices values)
|
||||
"""
|
||||
sales_values = []
|
||||
for contract in self:
|
||||
if not date_ref:
|
||||
date_ref = contract.recurring_next_date
|
||||
if not date_ref:
|
||||
# this use case is possible when recurring_create_invoice is
|
||||
# called for a finished contract
|
||||
continue
|
||||
contract_lines = contract._get_lines_to_invoice(date_ref)
|
||||
if not contract_lines:
|
||||
continue
|
||||
sale_values = contract._prepare_sale(date_ref)
|
||||
for line in contract_lines:
|
||||
sale_values.setdefault('order_line', [])
|
||||
invoice_line_values = line._prepare_sale_line(
|
||||
sale_values=sale_values,
|
||||
)
|
||||
if invoice_line_values:
|
||||
sale_values['order_line'].append(
|
||||
(0, 0, invoice_line_values)
|
||||
)
|
||||
sales_values.append(sale_values)
|
||||
contract_lines._update_recurring_next_date()
|
||||
return sales_values
|
||||
|
||||
@api.multi
|
||||
def _recurring_create_sale(self, date_ref=False):
|
||||
sales_values = self._prepare_recurring_sales_values(date_ref)
|
||||
so_rec = self.env["sale.order"].create(sales_values)
|
||||
for rec in self.filtered(lambda c: c.sale_autoconfirm):
|
||||
so_rec.action_confirm()
|
||||
return so_rec
|
||||
|
||||
@api.model
|
||||
def cron_recurring_create_sale(self, date_ref=None):
|
||||
if not date_ref:
|
||||
date_ref = fields.Date.context_today(self)
|
||||
domain = self._get_contracts_to_invoice_domain(date_ref)
|
||||
domain.extend([('type', '=', 'sale')])
|
||||
sales = self.env["sale.order"]
|
||||
# Sales by companies, so assignation emails get correct context
|
||||
companies_to_sale = self.read_group(
|
||||
domain, ["company_id"], ["company_id"])
|
||||
for row in companies_to_sale:
|
||||
contracts_to_sale = self.search(row["__domain"]).with_context(
|
||||
allowed_company_ids=[row["company_id"][0]]
|
||||
)
|
||||
sales |= contracts_to_sale._recurring_create_sale(date_ref)
|
||||
return sales
|
||||
|
||||
@api.model
|
||||
def cron_recurring_create_invoice(self, date_ref=None):
|
||||
if not date_ref:
|
||||
date_ref = fields.Date.context_today(self)
|
||||
domain = self._get_contracts_to_invoice_domain(date_ref)
|
||||
domain.extend([('type', '=', 'invoice')])
|
||||
invoices = self.env["account.invoice"]
|
||||
# Invoice by companies, so assignation emails get correct context
|
||||
companies_to_invoice = self.read_group(
|
||||
domain, ["company_id"], ["company_id"])
|
||||
for row in companies_to_invoice:
|
||||
contracts_to_invoice = self.search(row["__domain"]).with_context(
|
||||
allowed_company_ids=[row["company_id"][0]]
|
||||
)
|
||||
invoices |= contracts_to_invoice._recurring_create_invoice(
|
||||
date_ref)
|
||||
return invoices
|
||||
46
contract_sale_generation/models/contract_line.py
Normal file
46
contract_sale_generation/models/contract_line.py
Normal file
@@ -0,0 +1,46 @@
|
||||
# Copyright (C) 2020 Open Source Integrators
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class ContractLine(models.Model):
|
||||
_inherit = 'contract.line'
|
||||
|
||||
@api.multi
|
||||
def _prepare_sale_line(self, order_id=False, sale_values=False):
|
||||
self.ensure_one()
|
||||
dates = self._get_period_to_invoice(
|
||||
self.last_date_invoiced, self.recurring_next_date
|
||||
)
|
||||
sale_line_vals = {
|
||||
'product_id': self.product_id.id,
|
||||
'quantity': self._get_quantity_to_invoice(*dates),
|
||||
'uom_id': self.uom_id.id,
|
||||
'discount': self.discount,
|
||||
'contract_line_id': self.id,
|
||||
}
|
||||
if order_id:
|
||||
sale_line_vals['order_id'] = order_id.id
|
||||
order_line = self.env['sale.order.line'].with_context(
|
||||
force_company=self.contract_id.company_id.id,
|
||||
).new(sale_line_vals)
|
||||
if sale_values and not order_id:
|
||||
sale = self.env['sale.order'].with_context(
|
||||
force_company=self.contract_id.company_id.id,
|
||||
).new(sale_values)
|
||||
order_line.order_id = sale
|
||||
# Get other order line values from product onchange
|
||||
order_line.product_id_change()
|
||||
sale_line_vals = order_line._convert_to_write(order_line._cache)
|
||||
# Insert markers
|
||||
name = self._insert_markers(dates[0], dates[1])
|
||||
sale_line_vals.update(
|
||||
{
|
||||
'sequence': self.sequence,
|
||||
'name': name,
|
||||
'analytic_tag_ids': [(6, 0, self.analytic_tag_ids.ids)],
|
||||
'price_unit': self.price_unit,
|
||||
}
|
||||
)
|
||||
return sale_line_vals
|
||||
12
contract_sale_generation/models/sale_order_line.py
Normal file
12
contract_sale_generation/models/sale_order_line.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# Copyright (C) 2020 Open Source Integrators
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class SaleOrderLine(models.Model):
|
||||
_inherit = 'sale.order.line'
|
||||
|
||||
contract_line_id = fields.Many2one(
|
||||
'contract.line', string='Contract Line', index=True
|
||||
)
|
||||
3
contract_sale_generation/readme/CONTRIBUTORS.rst
Normal file
3
contract_sale_generation/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,3 @@
|
||||
* Angel Moya <angel.moya@pesol.es>
|
||||
* Florent THOMAS <florent.thomas@mind-and-go.com>
|
||||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
|
||||
2
contract_sale_generation/readme/DESCRIPTION.rst
Normal file
2
contract_sale_generation/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1,2 @@
|
||||
This module extends functionality of contracts to be able to generate sales
|
||||
orders instead of invoices.
|
||||
7
contract_sale_generation/readme/USAGE.rst
Normal file
7
contract_sale_generation/readme/USAGE.rst
Normal file
@@ -0,0 +1,7 @@
|
||||
To use this module, you need to:
|
||||
|
||||
#. Go to Sales -> Contracts and select or create a new contract.
|
||||
#. Fill fields for selecting the recurrency and invoice parameters:
|
||||
|
||||
* Type defines document that contract will generate, can be "Sales" or "Invoices"
|
||||
* Sale Autoconfirm, validate Sales Orders if type is "Sales"
|
||||
BIN
contract_sale_generation/static/description/icon.png
Normal file
BIN
contract_sale_generation/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
435
contract_sale_generation/static/description/index.html
Normal file
435
contract_sale_generation/static/description/index.html
Normal file
@@ -0,0 +1,435 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>Contracts Management - Recurring Sales</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="contracts-management-recurring-sales">
|
||||
<h1 class="title">Contracts Management - Recurring Sales</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/contract/tree/12.0/contract_sale_generation"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract_sale_generation"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/110/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module extends functionality of contracts to be able to generate sales
|
||||
orders instead of invoices.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
|
||||
<p>To use this module, you need to:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to Sales -> Contracts and select or create a new contract.</li>
|
||||
<li>Fill fields for selecting the recurrency and invoice parameters:<ul>
|
||||
<li>Type defines document that contract will generate, can be “Sales” or “Invoices”</li>
|
||||
<li>Sale Autoconfirm, validate Sales Orders if type is “Sales”</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/contract/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/contract/issues/new?body=module:%20contract_sale_generation%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>PESOL</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Angel Moya <<a class="reference external" href="mailto:angel.moya@pesol.es">angel.moya@pesol.es</a>></li>
|
||||
<li>Florent THOMAS <<a class="reference external" href="mailto:florent.thomas@mind-and-go.com">florent.thomas@mind-and-go.com</a>></li>
|
||||
<li>Serpent Consulting Services Pvt. Ltd. <<a class="reference external" href="mailto:support@serpentcs.com">support@serpentcs.com</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/contract/tree/12.0/contract_sale_generation">OCA/contract</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
3
contract_sale_generation/tests/__init__.py
Normal file
3
contract_sale_generation/tests/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import test_contract_sale
|
||||
209
contract_sale_generation/tests/test_contract_sale.py
Normal file
209
contract_sale_generation/tests/test_contract_sale.py
Normal file
@@ -0,0 +1,209 @@
|
||||
# © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
|
||||
# Copyright 2017 Pesol (<http://pesol.es>)
|
||||
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo.exceptions import ValidationError
|
||||
from odoo import fields
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
def to_date(date):
|
||||
return fields.Date.to_date(date)
|
||||
|
||||
|
||||
class TestContractSale(TransactionCase):
|
||||
# Use case : Prepare some data for current test case
|
||||
|
||||
def setUp(self):
|
||||
super(TestContractSale, self).setUp()
|
||||
self.pricelist = self.env['product.pricelist'].create({
|
||||
'name': 'pricelist for contract test',
|
||||
})
|
||||
self.partner = self.env['res.partner'].create({
|
||||
'name': 'partner test contract',
|
||||
'property_product_pricelist': self.pricelist.id,
|
||||
})
|
||||
self.product_1 = self.env.ref('product.product_product_1')
|
||||
self.product_1.taxes_id += self.env['account.tax'].search(
|
||||
[('type_tax_use', '=', 'sale')], limit=1
|
||||
)
|
||||
self.product_1.description_sale = 'Test description sale'
|
||||
self.line_template_vals = {
|
||||
'product_id': self.product_1.id,
|
||||
'name': 'Test Contract Template',
|
||||
'quantity': 1,
|
||||
'uom_id': self.product_1.uom_id.id,
|
||||
'price_unit': 100,
|
||||
'discount': 50,
|
||||
'recurring_rule_type': 'yearly',
|
||||
'recurring_interval': 1,
|
||||
}
|
||||
self.template_vals = {
|
||||
'name': 'Test Contract Template',
|
||||
'contract_line_ids': [
|
||||
(0, 0, self.line_template_vals),
|
||||
],
|
||||
}
|
||||
self.template = self.env['contract.template'].create(
|
||||
self.template_vals
|
||||
)
|
||||
# For being sure of the applied price
|
||||
self.env['product.pricelist.item'].create(
|
||||
{
|
||||
'pricelist_id': self.partner.property_product_pricelist.id,
|
||||
'product_id': self.product_1.id,
|
||||
'compute_price': 'formula',
|
||||
'base': 'list_price',
|
||||
}
|
||||
)
|
||||
self.contract = self.env['contract.contract'].create(
|
||||
{
|
||||
'name': 'Test Contract',
|
||||
'partner_id': self.partner.id,
|
||||
'pricelist_id': self.partner.property_product_pricelist.id,
|
||||
'type': 'sale',
|
||||
'sale_autoconfirm': False
|
||||
}
|
||||
)
|
||||
self.line_vals = {
|
||||
'contract_id': self.contract.id,
|
||||
'product_id': self.product_1.id,
|
||||
'name': 'Services from #START# to #END#',
|
||||
'quantity': 1,
|
||||
'uom_id': self.product_1.uom_id.id,
|
||||
'price_unit': 100,
|
||||
'discount': 50,
|
||||
'recurring_rule_type': 'monthly',
|
||||
'recurring_interval': 1,
|
||||
'date_start': '2020-01-01',
|
||||
'recurring_next_date': '2020-01-15',
|
||||
}
|
||||
self.contract.contract_template_id = self.template
|
||||
self.contract._onchange_contract_template_id()
|
||||
self.contract_line = self.env['contract.line'].create(
|
||||
self.line_vals
|
||||
)
|
||||
self.contract2 = self.env['contract.contract'].create(
|
||||
{
|
||||
'name': 'Test Contract 2',
|
||||
'type': 'sale',
|
||||
'partner_id': self.partner.id,
|
||||
'pricelist_id': self.partner.property_product_pricelist.id,
|
||||
'contract_type': 'purchase',
|
||||
'contract_line_ids': [
|
||||
(
|
||||
0,
|
||||
0,
|
||||
{
|
||||
'product_id': self.product_1.id,
|
||||
'name': 'Services from #START# to #END#',
|
||||
'quantity': 1,
|
||||
'uom_id': self.product_1.uom_id.id,
|
||||
'price_unit': 100,
|
||||
'discount': 50,
|
||||
'recurring_rule_type': 'monthly',
|
||||
'recurring_interval': 1,
|
||||
'date_start': '2018-02-15',
|
||||
'recurring_next_date': '2018-02-22',
|
||||
},
|
||||
)
|
||||
],
|
||||
}
|
||||
)
|
||||
|
||||
def test_check_discount(self):
|
||||
with self.assertRaises(ValidationError):
|
||||
self.contract_line.write({'discount': 120})
|
||||
|
||||
def test_contract(self):
|
||||
recurring_next_date = to_date('2020-02-15')
|
||||
self.assertAlmostEqual(self.contract_line.price_subtotal, 50.0)
|
||||
res = self.contract_line._onchange_product_id()
|
||||
self.assertIn('uom_id', res['domain'])
|
||||
self.contract_line.price_unit = 100.0
|
||||
self.contract.partner_id = self.partner.id
|
||||
self.contract.recurring_create_sale()
|
||||
self.sale_monthly = self.contract._get_related_sales()
|
||||
self.assertTrue(self.sale_monthly)
|
||||
self.assertEqual(
|
||||
self.contract_line.recurring_next_date, recurring_next_date
|
||||
)
|
||||
self.order_line = self.sale_monthly.order_line[0]
|
||||
self.assertTrue(self.order_line.tax_id)
|
||||
self.assertAlmostEqual(self.order_line.price_subtotal, 50.0)
|
||||
self.assertEqual(self.contract.user_id, self.sale_monthly.user_id)
|
||||
|
||||
def test_contract_autoconfirm(self):
|
||||
recurring_next_date = to_date('2020-02-15')
|
||||
self.contract.sale_autoconfirm = True
|
||||
self.assertAlmostEqual(self.contract_line.price_subtotal, 50.0)
|
||||
res = self.contract_line._onchange_product_id()
|
||||
self.assertIn('uom_id', res['domain'])
|
||||
self.contract_line.price_unit = 100.0
|
||||
self.contract.partner_id = self.partner.id
|
||||
self.contract.recurring_create_sale()
|
||||
self.sale_monthly = self.contract._get_related_sales()
|
||||
self.assertTrue(self.sale_monthly)
|
||||
self.assertEqual(
|
||||
self.contract_line.recurring_next_date, recurring_next_date
|
||||
)
|
||||
self.order_line = self.sale_monthly.order_line[0]
|
||||
self.assertTrue(self.order_line.tax_id)
|
||||
self.assertAlmostEqual(self.order_line.price_subtotal, 50.0)
|
||||
self.assertEqual(self.contract.user_id, self.sale_monthly.user_id)
|
||||
|
||||
def test_onchange_contract_template_id(self):
|
||||
"""It should change the contract values to match the template."""
|
||||
self.contract.contract_template_id = False
|
||||
self.contract._onchange_contract_template_id()
|
||||
self.contract.contract_template_id = self.template
|
||||
self.contract._onchange_contract_template_id()
|
||||
res = {
|
||||
'contract_line_ids':
|
||||
[(0, 0, {
|
||||
'product_id': self.product_1.id,
|
||||
'name': 'Test Contract Template',
|
||||
'quantity': 1,
|
||||
'uom_id': self.product_1.uom_id.id,
|
||||
'price_unit': 100,
|
||||
'discount': 50,
|
||||
'recurring_rule_type': 'yearly',
|
||||
'recurring_interval': 1,
|
||||
})]
|
||||
}
|
||||
del self.template_vals['name']
|
||||
self.assertDictEqual(res, self.template_vals)
|
||||
|
||||
def test_contract_count_sale(self):
|
||||
self.contract.recurring_create_sale()
|
||||
self.contract.recurring_create_sale()
|
||||
self.contract.recurring_create_sale()
|
||||
self.contract._compute_sale_count()
|
||||
self.assertEqual(self.contract.sale_count, 3)
|
||||
|
||||
def test_contract_count_sale_2(self):
|
||||
orders = self.env['sale.order']
|
||||
orders |= self.contract.recurring_create_sale()
|
||||
orders |= self.contract.recurring_create_sale()
|
||||
orders |= self.contract.recurring_create_sale()
|
||||
action = self.contract.action_show_sales()
|
||||
self.assertEqual(set(action['domain'][0][2]), set(orders.ids))
|
||||
|
||||
def test_cron_recurring_create_sale(self):
|
||||
self.contract_line.date_start = '2020-01-01'
|
||||
self.contract_line.recurring_invoicing_type = 'post-paid'
|
||||
self.contract_line.date_end = '2020-03-15'
|
||||
self.contract_line._onchange_date_start()
|
||||
contracts = self.contract2
|
||||
for _i in range(10):
|
||||
contracts |= self.contract.copy({'type': 'sale'})
|
||||
self.env['contract.contract'].cron_recurring_create_sale()
|
||||
order_lines = self.env['sale.order.line'].search(
|
||||
[('contract_line_id', 'in',
|
||||
contracts.mapped('contract_line_ids').ids)]
|
||||
)
|
||||
self.assertEqual(
|
||||
len(contracts.mapped('contract_line_ids')),
|
||||
len(order_lines),
|
||||
)
|
||||
41
contract_sale_generation/views/contract.xml
Normal file
41
contract_sale_generation/views/contract.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<odoo>
|
||||
|
||||
<record id="contract_contract_form_view_recurring_sale_form" model="ir.ui.view">
|
||||
<field name="name">contract.contract.form.recurring.sale.form</field>
|
||||
<field name="model">contract.contract</field>
|
||||
<field name="inherit_id" ref="contract.contract_contract_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@name='recurring_invoices']" position="after">
|
||||
<group name="recurring_sale_or_invoicing" string="Recurring Sales/Invoicing" col="4">
|
||||
<field name="type"/>
|
||||
<field name="sale_autoconfirm" attrs="{'invisible':[('type','!=', 'sale')]}" />
|
||||
</group>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='recurring_create_invoice']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': ['|', ('create_invoice_visibility', '=', False),('type','!=','invoice')]}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='recurring_create_invoice']" position="before">
|
||||
<button name="recurring_create_sale"
|
||||
type="object"
|
||||
attrs="{'invisible': [('type','!=','sale')]}"
|
||||
string="CREATE SALES"
|
||||
class="oe_link"
|
||||
groups="base.group_no_one"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='action_show_invoices']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('type','!=','invoice')]}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='action_show_invoices']" position="after">
|
||||
<button name="action_show_sales"
|
||||
type="object" icon="fa-list"
|
||||
class="oe_stat_button" attrs="{'invisible': [('type','!=','sale')]}">
|
||||
<field string="Sales Order"
|
||||
name="sale_count"
|
||||
widget="statinfo"/>
|
||||
</button>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
14
contract_sale_generation/views/contract_template.xml
Normal file
14
contract_sale_generation/views/contract_template.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<odoo>
|
||||
|
||||
<record id="contract_template_form_view_inherit_sale" model="ir.ui.view">
|
||||
<field name="name">contract.template form view (in contract)</field>
|
||||
<field name="model">contract.template</field>
|
||||
<field name="inherit_id" ref="contract.contract_template_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='pricelist_id']" position="after">
|
||||
<field name="type"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user