Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16.0 mig contract sale generation #914

Closed
wants to merge 62 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
6661c1b
ADD contract_sale_generation module
angelmoya Aug 10, 2017
00d7836
[FIX] contract_sale_generation: Isolate sale generation (#118)
angelmoya Nov 29, 2017
a4f38ae
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
bf81435
[FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed
moylop260 Nov 10, 2017
487b27d
[FIX] contract_sale_generation: Useless test
pedrobaeza Dec 2, 2017
7a1e7b3
[10.0][FIX+IMP] contract: Improve usability and don't fail on wrong d…
pedrobaeza Dec 7, 2017
3a13af8
OCA Transbot updated translations from Transifex
oca-transbot Dec 9, 2017
dbf99e2
OCA Transbot updated translations from Transifex
oca-transbot Feb 3, 2018
855541f
OCA Transbot updated translations from Transifex
oca-transbot Feb 10, 2018
f2770e7
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
a3fdfbc
OCA Transbot updated translations from Transifex
oca-transbot Mar 24, 2018
8325f14
[FIX] contract_sale_generation: it doesn't create sales (#141)
flotho Apr 1, 2018
ca73d8a
OCA Transbot updated translations from Transifex
oca-transbot Apr 14, 2018
0640764
OCA Transbot updated translations from Transifex
oca-transbot May 5, 2018
f2d1577
OCA Transbot updated translations from Transifex
oca-transbot May 26, 2018
56ae7e8
[UPD] Update contract_sale_generation.pot
oca-travis Jul 21, 2018
45c3377
[FIX] contract. Optimize insertion of dates in invoice and lines.
NL66278 Dec 22, 2018
a6672a0
[UPD] Update contract_sale_generation.pot
oca-travis Jan 24, 2019
7ac3810
Update translation files
oca-transbot Jan 24, 2019
3cd3f2d
Translated using Weblate (Galician)
mvrodriguez Feb 7, 2019
631d368
[ADD] icon.png
OCA-git-bot Apr 3, 2019
cc19ad4
Translated using Weblate (German)
marylla Feb 22, 2019
cab1ad9
Translated using Weblate (Finnish)
jarmokortetjarvi Mar 20, 2019
b3389b7
[WIP][12.0][MIG] contract_sale_generation
murtuzasaleh Sep 30, 2020
6b16380
[UPD] Update contract_sale_generation.pot
oca-travis Oct 24, 2020
d5093a8
Update translation files
oca-transbot Oct 24, 2020
0275a4e
Translated using Weblate (Portuguese (Brazil))
britoederr Nov 6, 2020
7888790
Update translation files
oca-transbot Nov 22, 2020
8cb57f3
add display type in default values
flotho Jan 2, 2021
825049b
Translated using Weblate (French)
remi-filament Jan 4, 2021
9cbb0f1
contract_sale_generation 12.0.1.0.1
OCA-git-bot Jan 13, 2021
ac6ca36
[12.0][FIX] contract: Incorrect product UOM qty dict key for the sale…
mkxmawilix Jan 27, 2021
af21368
contract_sale_generation 12.0.1.0.2
OCA-git-bot Feb 11, 2021
fd41b96
[14.0][FIX] Travis
Freni-OSI Apr 7, 2021
1f061f6
[14.0][MIG] contract_sale_generation
Freni-OSI Apr 21, 2021
e0fd865
[14.0][IMP] contract_sale_generation
rousseldenis Nov 7, 2021
3437b38
[IMP] contract_sale_generation: Improve view
rousseldenis Nov 8, 2021
451e4b3
[14.0][IMP] contract_sale_generation: Transmit analytic account
rousseldenis Nov 23, 2021
f820171
[14.0][IMP] contract_sale_generation: Add hook method to retrieve sal…
rousseldenis Jan 21, 2022
58c956c
[14.0][IMP] contract_sale_generation: Align method on Odoo conventions
rousseldenis Jan 21, 2022
c384f56
[14.0][IMP] contract_sale_generation: Take into account new method fo…
rousseldenis Jan 26, 2022
67f0e66
[14.0][IMP] contract_sale_generation: Remove deprecated domain onchange
rousseldenis Jan 26, 2022
f688399
[14.0][IMP] contract_sale_generation: Split test and common
rousseldenis Feb 16, 2022
0c03daf
[14.0][IMP] contract_sale_generation: Remove unused code
rousseldenis Feb 16, 2022
691c46f
[UPD] Update contract_sale_generation.pot
oca-travis Feb 18, 2022
8cae74d
[UPD] README.rst
OCA-git-bot Feb 18, 2022
5c0a4da
Added translation using Weblate (Spanish (Argentina))
ibuioli Feb 22, 2022
66f325d
Translated using Weblate (Spanish (Argentina))
ibuioli Feb 22, 2022
fca1175
[14.0][FIX] contract_sale_generation: Recompute next recurring date a…
rousseldenis Mar 7, 2022
6a68f03
[14.0][FIX] contract_sale_generation: Add start date on contract leve…
rousseldenis Mar 7, 2022
290bbdc
[14.0][IMP] contract_sale_generation: Add tests with another recurrency
rousseldenis Mar 7, 2022
fb9b472
contract_sale_generation 14.0.1.0.1
OCA-git-bot Mar 8, 2022
0d6f762
Translated using Weblate (Catalan)
Noel000 Mar 22, 2022
9a6ca5c
Translated using Weblate (Italian)
scigghia Mar 26, 2022
fc1c6d2
Translated using Weblate (Italian)
scigghia Mar 27, 2022
8d9b2ea
[MIG] contract_sale_generation: Migration to 15.0
ntsirintanis Jun 22, 2022
7a5d9c3
[UPD] Update contract_sale_generation.pot
Jun 28, 2022
f8474b8
[UPD] README.rst
OCA-git-bot Jun 28, 2022
b62b119
contract_sale_generation 15.0.1.0.2
OCA-git-bot Jun 28, 2022
de0b38e
[FIX] contract_sale_generation: Change SavepointCase to TransactionCase
victoralmau Nov 3, 2022
6bd150e
contract_sale_generation 15.0.1.0.3
OCA-git-bot Nov 3, 2022
3c9ebbe
[16.0][MIG]contract_sale_generation
vibhascs Jan 12, 2023
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
89 changes: 89 additions & 0 deletions contract_sale_generation/README.rst
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/15.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-15-0/contract-15-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/15.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:%2015.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 <[email protected]>
* Florent THOMAS <[email protected]>
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* Denis Roussel <[email protected]>

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/15.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 <[email protected]>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)


{
"name": "Contracts Management - Recurring Sales",
"version": "16.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,
}
13 changes: 13 additions & 0 deletions contract_sale_generation/data/contract_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<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>
111 changes: 111 additions & 0 deletions contract_sale_generation/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_sale_generation
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>\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,name:contract_sale_generation.model_contract_contract
msgid "Contract"
msgstr "Contracte"

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

#. module: contract_sale_generation
#: model:ir.model.fields,field_description:contract_sale_generation.field_sale_order_line__contract_line_id
msgid "Contract Line to replace"
msgstr "Línia de contracte a substituir"

#. module: contract_sale_generation
#: code:addons/contract_sale_generation/models/contract.py:79
#, 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>"

#. 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
#: model:ir.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
#: selection:contract.abstract.contract,type:0
#: selection:contract.contract,type:0 selection:contract.template,type:0
msgid "Invoice"
msgstr "Factura"

#. module: contract_sale_generation
#: model_terms:ir.ui.view,arch_db:contract_sale_generation.contract_contract_form_view_recurring_sale_form
msgid "Recurring Sales/Invoicing"
msgstr "Vendes/Facturacions recurrents"

#. module: contract_sale_generation
#: selection:contract.abstract.contract,type:0
#: selection:contract.contract,type:0 selection:contract.template,type:0
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_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,field_description:contract_sale_generation.field_contract_abstract_contract__type
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_contract__type
#: model:ir.model.fields,field_description:contract_sale_generation.field_contract_template__type
msgid "Type"
msgstr "Tipus"

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