Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
06e97b4
ADD contract_sale_generation module
angelmoya Aug 10, 2017
965dd17
[FIX] contract_sale_generation: Isolate sale generation (#118)
angelmoya Nov 29, 2017
9bfdaf0
[FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed
moylop260 Nov 10, 2017
178805a
[FIX] contract_sale_generation: Useless test
pedrobaeza Dec 2, 2017
b6396ce
[10.0][FIX+IMP] contract: Improve usability and don't fail on wrong d…
pedrobaeza Dec 7, 2017
76c4c6e
[FIX] contract_sale_generation: it doesn't create sales (#141)
flotho Apr 1, 2018
24ad803
[FIX] contract. Optimize insertion of dates in invoice and lines.
NL66278 Dec 22, 2018
cebff45
Translated using Weblate (Galician)
mvrodriguez Feb 7, 2019
98eea66
Translated using Weblate (German)
marylla Feb 22, 2019
99a3b13
Translated using Weblate (Finnish)
jarmokortetjarvi Mar 20, 2019
f5efdeb
[WIP][12.0][MIG] contract_sale_generation
murtuzasaleh Sep 30, 2020
7fa327d
Translated using Weblate (Portuguese (Brazil))
britoederr Nov 6, 2020
f205d4d
add display type in default values
flotho Jan 2, 2021
124c4a7
Translated using Weblate (French)
remi-filament Jan 4, 2021
013e0d9
[12.0][FIX] contract: Incorrect product UOM qty dict key for the sale…
mkxmawilix Jan 27, 2021
acc73f1
[14.0][FIX] Travis
Freni-OSI Apr 7, 2021
d2db274
[14.0][MIG] contract_sale_generation
Freni-OSI Apr 21, 2021
d404142
[14.0][IMP] contract_sale_generation
rousseldenis Nov 7, 2021
e985134
[IMP] contract_sale_generation: Improve view
rousseldenis Nov 8, 2021
4fb6df4
[14.0][IMP] contract_sale_generation: Transmit analytic account
rousseldenis Nov 23, 2021
9ad40b2
[14.0][IMP] contract_sale_generation: Add hook method to retrieve sal…
rousseldenis Jan 21, 2022
dd3e225
[14.0][IMP] contract_sale_generation: Align method on Odoo conventions
rousseldenis Jan 21, 2022
965765f
[14.0][IMP] contract_sale_generation: Take into account new method fo…
rousseldenis Jan 26, 2022
1fc3905
[14.0][IMP] contract_sale_generation: Remove deprecated domain onchange
rousseldenis Jan 26, 2022
cac09e1
[14.0][IMP] contract_sale_generation: Split test and common
rousseldenis Feb 16, 2022
17074c3
[14.0][IMP] contract_sale_generation: Remove unused code
rousseldenis Feb 16, 2022
89fd2f3
Added translation using Weblate (Spanish (Argentina))
ibuioli Feb 22, 2022
d94efbf
[14.0][FIX] contract_sale_generation: Recompute next recurring date a…
rousseldenis Mar 7, 2022
eba62c7
[14.0][FIX] contract_sale_generation: Add start date on contract leve…
rousseldenis Mar 7, 2022
4faaadf
[14.0][IMP] contract_sale_generation: Add tests with another recurrency
rousseldenis Mar 7, 2022
b2c9a26
Translated using Weblate (Catalan)
Noel000 Mar 22, 2022
ee63af6
Translated using Weblate (Italian)
scigghia Mar 26, 2022
66da907
[MIG] contract_sale_generation: Migration to 15.0
ntsirintanis Jun 22, 2022
1a1d027
[FIX] contract_sale_generation: Change SavepointCase to TransactionCase
victoralmau Nov 3, 2022
ced295b
Translated using Weblate (Italian)
francesco-ooops Jan 18, 2023
78e787c
[MIG] contract_sale_generation: Migration to 16.0
JesusValdez96 May 28, 2023
6b27c99
[UPD] Update contract_sale_generation.pot
Jun 5, 2023
36adf46
[UPD] README.rst
OCA-git-bot Jun 5, 2023
3e3e88a
Update translation files
weblate Jun 5, 2023
840e21d
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 14, 2023
18b9b68
Translated using Weblate (Spanish)
Ivorra78 Aug 2, 2023
6df3d58
[UPD] README.rst
OCA-git-bot Sep 3, 2023
c20db83
Update translation files
weblate Oct 9, 2023
aa13766
Translated using Weblate (Portuguese (Brazil))
adrianojprado Dec 27, 2023
dba39d9
[16.0][IMP] contract and contract_sale_generation: Add translations
aliciagaarzo Mar 11, 2024
d228663
[UPD] Update contract_sale_generation.pot
Mar 16, 2024
da07eb4
[BOT] post-merge updates
OCA-git-bot Mar 16, 2024
8f87333
Update translation files
weblate Mar 16, 2024
2a15ce4
Translated using Weblate (Spanish)
Ivorra78 Mar 21, 2024
3fc127b
Translated using Weblate (Dutch)
ThijsvOers Apr 2, 2024
1c93f6f
Translated using Weblate (Italian)
mymage May 6, 2024
c32f047
Translated using Weblate (Portuguese (Brazil))
May 21, 2024
5c1d426
Translated using Weblate (Croatian)
badbole May 28, 2024
5f57aa7
[FIX] contract_sale_generation: Post-install test + fallback to load CoA
luisDIXMIT Feb 27, 2025
bddb739
[BOT] post-merge updates
OCA-git-bot Mar 7, 2025
1573bbd
[IMP] contract_sale_generation: pre-commit auto fixes
javierjcf May 16, 2025
b8a786c
[MIG] contract_sale_generation: Migration to 17.0
javierjcf May 16, 2025
f61ece7
[IMP] contract_sale_generation: pre-commit auto fixes
javierjcf Jun 12, 2025
a1522ed
[MIG]contract_sale_generation: Migration to 18.0
javierjcf Jun 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions contract_sale_generation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
======================================
Contracts Management - Recurring Sales
======================================

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

.. |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/18.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-18-0/contract-18-0-contract_sale_generation
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/contract&target_branch=18.0
:alt: Try me on Runboat

|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:

1. Go to Sales -> Contracts and select or create a new contract.
2. 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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20contract_sale_generation%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* ACSONE SA/NV
* PESOL

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

- Angel Moya <angel.moya@pesol.es>
- Florent THOMAS <florent.thomas@mind-and-go.com>
- Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
- Denis Roussel <denis.roussel@acsone.eu>

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/18.0/contract_sale_generation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions contract_sale_generation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions contract_sale_generation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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": "18.0.1.0.0",
"category": "Contract Management",
"license": "AGPL-3",
"author": "ACSONE SA/NV, PESOL, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/contract",
"depends": ["contract_sale"],
"data": [
"data/contract_cron.xml",
"views/contract.xml",
],
"installable": True,
}
11 changes: 11 additions & 0 deletions contract_sale_generation/data/contract_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<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>
</record>
</odoo>
135 changes: 135 additions & 0 deletions contract_sale_generation/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# 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: 2022-03-22 12:17+0000\n"
"Last-Translator: Noel estudillo <noelestudilloviera@gmail.com>\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"
"X-Generator: Weblate 4.3.2\n"

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_contract_abstract_contract
msgid "Abstract Recurring Contract"
msgstr "Contracte recurrent abstracte"

#. module: contract_sale_generation
#: model_terms:ir.ui.view,arch_db:contract_sale_generation.contract_contract_form_view_recurring_sale_form
msgid "CREATE SALES"
msgstr "CREAR VENDES"

#. module: contract_sale_generation
#: model:ir.model.fields,help:contract_sale_generation.field_contract_abstract_contract__generation_type
#: model:ir.model.fields,help:contract_sale_generation.field_contract_contract__generation_type
#: model:ir.model.fields,help:contract_sale_generation.field_contract_template__generation_type
msgid "Choose the document that will be automatically generated by cron."
msgstr ""

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_contract_contract
msgid "Contract"
msgstr "Contracte"

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_sale_order__contract_auto_confirm
msgid "Contract Auto Confirm"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_contract_line
#: model:ir.model.fields,field_description:contract_sale_generation.field_sale_order_line__contract_line_id
msgid "Contract Line"
msgstr "Línia de contracte"

#. module: contract_sale_generation
#. odoo-python
#: code:addons/contract_sale_generation/models/contract.py:0
#, python-format
msgid ""
"Contract manually sale order: <a href=\"#\" data-oe-model=\"%(model)s\" data-"
"oe-id=\"%(id)s\">Sale Order</a>"
msgstr ""

#. module: contract_sale_generation
#: model:ir.actions.server,name:contract_sale_generation.contract_cron_for_sale_ir_actions_server
#: model:ir.cron,cron_name:contract_sale_generation.contract_cron_for_sale
msgid "Generate Recurring sales from Contracts"
msgstr "Generar vendes recurrents a partir de contractes"

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_abstract_contract__generation_type
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_contract__generation_type
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_template__generation_type
msgid "Generation Type"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_abstract_contract__generation_type__sale
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_contract__generation_type__sale
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_template__generation_type__sale
msgid "Sale"
msgstr "Venda"

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_abstract_contract__sale_autoconfirm
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_contract__sale_autoconfirm
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_template__sale_autoconfirm
msgid "Sale Autoconfirm"
msgstr "Venda Autoconfirmació"

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_contract__sale_count
msgid "Sale Count"
msgstr "Recompte de vendes"

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_sale_order
#: model_terms:ir.ui.view,arch_db:contract_sale_generation.contract_contract_form_view_recurring_sale_form
msgid "Sales Order"
msgstr "Comanda de venda"

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línia de comanda de vendes"

#. module: contract_sale_generation
#: model:ir.model.fields,help:contract_sale_generation.field_sale_order__contract_auto_confirm
msgid ""
"This is a technical field in order to know if the order shouldbe "
"automatically confirmed if generated by contract."
msgstr ""

#~ msgid "Contract Line to replace"
#~ msgstr "Línia de contracte a substituir"

#, python-format
#~ msgid ""
#~ "Contract manually sale order: <a href=\"#\" data-oe-model=\"%s\" data-oe-"
#~ "id=\"%s\">Sale Order</a>"
#~ msgstr ""
#~ "Contracte manualment la comanda de venda: <a href=\"#\" data-oe-model=\"%s"
#~ "\" data-oe-id=\"%s\">Comanda de venda</a>"

#~ msgid "Invoice"
#~ msgstr "Factura"

#~ msgid "Recurring Sales/Invoicing"
#~ msgstr "Vendes/Facturacions recurrents"

#~ msgid "Type"
#~ msgstr "Tipus"

#~ msgid "Analytic Account"
#~ msgstr "Compte analític"
106 changes: 106 additions & 0 deletions contract_sale_generation/i18n/contract_sale_generation.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_sale_generation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_contract_abstract_contract
msgid "Abstract Recurring Contract"
msgstr ""

#. module: contract_sale_generation
#: model_terms:ir.ui.view,arch_db:contract_sale_generation.contract_contract_form_view_recurring_sale_form
msgid "CREATE SALES"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model.fields,help:contract_sale_generation.field_contract_abstract_contract__generation_type
#: model:ir.model.fields,help:contract_sale_generation.field_contract_contract__generation_type
#: model:ir.model.fields,help:contract_sale_generation.field_contract_template__generation_type
msgid "Choose the document that will be automatically generated by cron."
msgstr ""

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_contract_contract
msgid "Contract"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_sale_order__contract_auto_confirm
msgid "Contract Auto Confirm"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_contract_line
#: model:ir.model.fields,field_description:contract_sale_generation.field_sale_order_line__contract_line_id
msgid "Contract Line"
msgstr ""

#. module: contract_sale_generation
#. odoo-python
#: code:addons/contract_sale_generation/models/contract.py:0
#, python-format
msgid ""
"Contract manually sale order: <a href=\"#\" data-oe-model=\"%(model)s\" "
"data-oe-id=\"%(id)s\">Sale Order</a>"
msgstr ""

#. module: contract_sale_generation
#: model:ir.actions.server,name:contract_sale_generation.contract_cron_for_sale_ir_actions_server
#: model:ir.cron,cron_name:contract_sale_generation.contract_cron_for_sale
msgid "Generate Recurring sales from Contracts"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_abstract_contract__generation_type
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_contract__generation_type
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_template__generation_type
msgid "Generation Type"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_abstract_contract__generation_type__sale
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_contract__generation_type__sale
#: model:ir.model.fields.selection,name:contract_sale_generation.selection__contract_template__generation_type__sale
msgid "Sale"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_abstract_contract__sale_autoconfirm
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_contract__sale_autoconfirm
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_template__sale_autoconfirm
msgid "Sale Autoconfirm"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_contract__sale_count
msgid "Sale Count"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_sale_order
#: model_terms:ir.ui.view,arch_db:contract_sale_generation.contract_contract_form_view_recurring_sale_form
msgid "Sales Order"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model,name:contract_sale_generation.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: contract_sale_generation
#: model:ir.model.fields,help:contract_sale_generation.field_sale_order__contract_auto_confirm
msgid ""
"This is a technical field in order to know if the order shouldbe "
"automatically confirmed if generated by contract."
msgstr ""
Loading