-
-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
44 changed files
with
2,966 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
====================================== | ||
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/11.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-11-0/contract-11-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/11.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 Accounting -> Contracts and select or create a new contract. | ||
#. Check *Generate recurring invoices automatically*. | ||
#. 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:%2011.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 | ||
* Okia | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Angel Moya <angel.moya@pesol.es> | ||
* Florent THOMAS <florent.thomas@mind-and-go.com> | ||
* Sylvain Van Hoof <sylvain@okia.be> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/11.0/contract_sale_generation>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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': '11.0.1.0.0', | ||
'category': 'Contract Management', | ||
'license': 'AGPL-3', | ||
'author': "PESOL, Okia, " | ||
"Odoo Community Association (OCA)", | ||
'website': 'https://github.com/oca/contract', | ||
'depends': ['contract', 'sale'], | ||
'data': [ | ||
'views/account_analytic_account_view.xml', | ||
'views/account_analytic_contract_view.xml', | ||
'views/sale_view.xml', | ||
'data/contract_cron.xml', | ||
], | ||
'installable': True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding='UTF-8'?> | ||
<odoo> | ||
|
||
<record id="account_analytic_cron_for_sale" model="ir.cron"> | ||
<field name="name">Generate Recurring sales from Contracts</field> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">days</field> | ||
<field name="numbercall">-1</field> | ||
<field name="user_id" ref="base.user_root"/> | ||
<field name="state">code</field> | ||
<field name="model_id" ref="analytic.model_account_analytic_account"/> | ||
<field name="code">model.cron_recurring_create_sale()</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 changes: 70 additions & 0 deletions
70
contract_sale_generation/i18n/contract_sale_generation.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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" |
Oops, something went wrong.