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

[17.0][MIG] product_contract #1083

Merged
merged 153 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
85adab2
[ADD] product_contract: Create module
Jan 12, 2017
58b3d99
[FIX] product_contract: Fix mock usage in tests
lasley May 26, 2017
b290dc9
[FIX] contract_sale_generation: it doesn't create sales (#141)
flotho Apr 1, 2018
84e77bc
[MIG] - Product Contract Migration to 12.0
sbejaoui Oct 31, 2018
187ca1f
[IMP] - Product with is_contract can be only of type service
sbejaoui Oct 31, 2018
2547187
[IMP] - Change dependencies to contract_sale
sbejaoui Oct 31, 2018
284dc91
[IMP] - Add recurrence fields to product template and sale order line
sbejaoui Oct 31, 2018
18649ec
[IMP] - Create contract on sale order confirmation
sbejaoui Nov 2, 2018
6be193a
[IMP] - Link contract line to sale order line
sbejaoui Nov 2, 2018
26a3cbe
[FIX] - Remove recurring_next_date from sale order line
sbejaoui Nov 2, 2018
9d01b3e
[IMP] - Contract product are ignored on invoicing process
sbejaoui Nov 5, 2018
d7c72e0
[FIX] - Default value for date_start applied on product change
sbejaoui Nov 5, 2018
3baeea2
[ADD] - Add readme directory
sbejaoui Nov 5, 2018
9dfde8e
[IMP] - Onchange contract product on contract contract and contract t…
sbejaoui Nov 5, 2018
e12f8c9
[FIX] - Change website to OCA repository url and prefix module name w…
sbejaoui Nov 5, 2018
961a77f
[FIX] - Compute recurring_next_date before create contract line
sbejaoui Nov 5, 2018
967d4dc
[IMP] - Upsell/Downsell contract from sale order
sbejaoui Nov 15, 2018
91f39c1
[ADD] - Add renewal process with termination notice
sbejaoui Nov 19, 2018
34f0c56
[IMP] - compute date end onchange date start for auto-renew sale orde…
sbejaoui Nov 19, 2018
2be3a74
[IMP] - link contract line and its successor in upsel case
sbejaoui Nov 26, 2018
a956163
[FIX] - on upsel, contract line should stop day - 1
sbejaoui Nov 28, 2018
d6b24da
[FIX] - fix onchange
sbejaoui Nov 29, 2018
f13cc3d
[IMP] - hide recurring_invoicing_type if recurring_rule_type is month…
sbejaoui Nov 29, 2018
dc4d945
[FIX] - include date_end in the period if the product is_autorenew
sbejaoui Nov 30, 2018
061f743
[IMP] - _prepare_contract_value for sale order confirm
sbejaoui Dec 3, 2018
0f90452
[REM] - Remove unused method
sbejaoui Dec 4, 2018
7a24435
[IMP] - get contract user from sale order user
sbejaoui Dec 13, 2018
8baae36
[IMP] - show related sale orders in contract form
sbejaoui Dec 14, 2018
596da09
[REF] Contract Product: invoice in prepare_invoice_line is optional
ThomasBinsfeld Dec 18, 2018
1f00ebb
[FIX] - fix flake8
sbejaoui Dec 20, 2018
b4ec8b9
[ADD] Product Contract: payment term
ThomasBinsfeld Dec 21, 2018
3bdb7e9
[IMP] - update invoice_line vals only if it is not null
sbejaoui Dec 28, 2018
de6033f
[FIX] - fix unit tests
sbejaoui Jan 3, 2019
4332d4d
[IMP] - Add unit test
sbejaoui Jan 10, 2019
4c5343c
[REF] - predecessor_contract_line set in create process
sbejaoui Jan 15, 2019
998d8ab
[IMP] - Simplify sale order line creation for contract product
sbejaoui Jan 21, 2019
0c22dca
[ADD] Contract Sale: fiscal position
ThomasBinsfeld Jan 23, 2019
583fff3
[IMP] - auto_renew_rule deducted from recurring_rule_type and product…
sbejaoui Jan 24, 2019
fc0dd2f
[FIX] Product Contract: copy invoicing partner to created contract
ThomasBinsfeld Jan 29, 2019
a92e287
[FIX] - Fix recurring_next_date
sbejaoui Jan 29, 2019
23b7725
[FIX] - date_end required only for contract product
sbejaoui Jan 29, 2019
06841a2
[FIX] - Get auto_renew_rule_type based on recurring_rule_type
sbejaoui Feb 1, 2019
c99cc12
[IMP] - cancel contract line if the downsell/upsell comes before
sbejaoui Feb 4, 2019
7e3bf5b
[FIX] - date_end computed only for contract products
sbejaoui Feb 6, 2019
b14f2e3
[REF] Contract: set order count to 0 if no access to orders
ThomasBinsfeld Feb 13, 2019
0e5259b
[IMP] - permit contract selection without contract_template_id
sbejaoui Feb 28, 2019
a1cdd41
[ADD] Add start_date to contract_line display_name
qgroulard Sep 2, 2019
bc0f337
[12.0][IMP] - option to decide if we automaticallt create contract a …
sbejaoui Sep 5, 2019
7ea0bf3
[FIX] - fix display name compute dependecy
sbejaoui Sep 5, 2019
5b4b09a
[12.0][FIX] - create contract only on sale and done states
sbejaoui Sep 11, 2019
14642e0
[12.0][REF] - Split analytic accouts and contracts
sbejaoui Sep 17, 2019
59d254e
[12.0][IMP] - Improve unit tests
sbejaoui Sep 30, 2019
e90ff02
[IMP] - improve is contract visibility in product view
sbejaoui Sep 30, 2019
f610618
[12.0][IMP] - sale line linked to contracts must not be invoiced from…
sbejaoui Oct 1, 2019
b60f334
[UPD] README.rst
OCA-git-bot Oct 1, 2019
45b09da
[ADD] icon.png
OCA-git-bot Oct 1, 2019
f204811
[FIX] - Remove deprecated field
sbejaoui Oct 1, 2019
7f2cf27
[UPD] Update product_contract.pot
oca-travis Oct 1, 2019
94a3e25
Update translation files
oca-transbot Oct 1, 2019
bbc5a1d
product_contract 12.0.2.0.1
OCA-git-bot Oct 2, 2019
3274f32
Translated using Weblate (German)
marylla Oct 9, 2019
d8ec9dd
Translated using Weblate (Portuguese (Brazil))
britoederr Oct 10, 2019
540c119
Translated using Weblate (German)
rschnapka Oct 29, 2019
39d796b
[12.0][FIX] - contract company must be the same as the sale order
sbejaoui Oct 28, 2019
334b1fa
product_contract 12.0.2.0.2
OCA-git-bot Oct 30, 2019
47922ad
[12.0][FIX] - Run onchange contract_type when changing the contract t…
sbejaoui Nov 26, 2019
fa797e5
Translated using Weblate (Croatian)
badbole Dec 2, 2019
93057aa
Translated using Weblate (French)
Martronic-SA Dec 6, 2019
7a774da
[IMP] contract: support pre-paid for monthlylastday
sbidoul Dec 8, 2019
e38b372
[IMP] - Set recurring_invoicing_type for existing products set to mon…
sbejaoui Dec 9, 2019
eaa0b9d
product_contract 12.0.3.0.0
OCA-git-bot Dec 12, 2019
5323d35
[12.0][FIX] - Set contract line analytic account at contract creation…
sbejaoui Dec 30, 2019
3266559
[UPD] Update product_contract.pot
oca-travis Jan 7, 2020
536ec32
product_contract 12.0.3.0.1
OCA-git-bot Jan 7, 2020
ce860d7
Update translation files
oca-transbot Jan 7, 2020
9ae809e
Translated using Weblate (Spanish)
Jan 17, 2020
8f569b2
product_contract 12.0.3.1.0
OCA-git-bot Jan 17, 2020
94cbb79
[IMP] contract: remove redundant method
pedrobaeza Jan 8, 2020
a3b4d75
product_contract 12.0.3.1.1
OCA-git-bot Jan 30, 2020
76dd5b6
Translated using Weblate (Italian)
Feb 4, 2020
122f054
Translated using Weblate (Spanish)
Feb 4, 2020
caa0926
[FIX]contract_count == len(active contracts)
Feb 5, 2020
23cbd1e
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 12, 2020
7520787
Translated using Weblate (Portuguese)
pedrocs-exo Feb 17, 2020
a992ea5
Translated using Weblate (Portuguese)
pedrocs-exo Feb 17, 2020
22e2051
Translated using Weblate (Portuguese)
alvarorib Feb 18, 2020
e4c2bbc
[12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to…
sbejaoui Feb 17, 2020
184a29b
[IMP] - Improve UX, open contract form if the sale order is related t…
sbejaoui Feb 25, 2020
11828e4
product_contract 12.0.3.1.2
OCA-git-bot Mar 8, 2020
b1e25f9
[FIX] product_contract: set 'Contract template' field company depend
Feb 11, 2020
902d625
[FIX] contract_sale_mandate: use property_contract_template_id
Feb 26, 2020
62caafd
[UPD] Update product_contract.pot
oca-travis Mar 9, 2020
ce58428
[UPD] README.rst
OCA-git-bot Mar 9, 2020
139624c
Update translation files
oca-transbot Mar 9, 2020
86b0dd0
[UPD] Update product_contract.pot
oca-travis Mar 9, 2020
9ff1557
Update translation files
oca-transbot Mar 9, 2020
2eff566
[IMP] - can't upsell or downsell a resiliated contract
sbejaoui Jan 30, 2020
19b16aa
[IMP] - use terminate term instead of resiliate
sbejaoui Mar 10, 2020
6fd21f8
[UPD] Update product_contract.pot
oca-travis Mar 11, 2020
d355145
product_contract 12.0.5.0.0
OCA-git-bot Mar 11, 2020
4ffcfa3
Update translation files
oca-transbot Mar 11, 2020
2d8a9d5
[UPD] Update product_contract.pot
oca-travis Mar 11, 2020
80224a8
Update translation files
oca-transbot Mar 11, 2020
fc41377
[12.0][IMP] - Add failing test for creating contract grouped by contr…
sbejaoui Mar 17, 2020
cd92d3e
[12.0][FIX] - fix contract creation group by contract template
sbejaoui Mar 17, 2020
bd357d2
Translated using Weblate (French)
svalaeys Mar 17, 2020
974bf42
[UPD] Update product_contract.pot
oca-travis Mar 17, 2020
2397900
product_contract 12.0.5.0.1
OCA-git-bot Mar 17, 2020
c1b7fc8
Update translation files
oca-transbot Mar 17, 2020
8ff9fc4
[UPD] Update product_contract.pot
oca-travis Mar 17, 2020
9b996fd
Update translation files
oca-transbot Mar 17, 2020
b14253c
product_contract 12.0.5.0.2
OCA-git-bot Mar 18, 2020
f32c59a
[FIX] migration from 11.0
sergiocorato Mar 24, 2020
24dc270
Translated using Weblate (Spanish)
Mar 25, 2020
8269a65
[UPD] README.rst
OCA-git-bot Mar 25, 2020
653f785
[UPD] README.rst
OCA-git-bot Mar 25, 2020
641d843
product_contract 12.0.5.0.3
OCA-git-bot Mar 30, 2020
524310f
[UPD] Update product_contract.pot
oca-travis Apr 6, 2020
5ac72df
product_contract 12.0.5.0.4
OCA-git-bot Apr 6, 2020
0aca752
Update translation files
oca-transbot Apr 6, 2020
b460ab6
[UPD] Update product_contract.pot
oca-travis Apr 6, 2020
4b425ee
Update translation files
oca-transbot Apr 6, 2020
6df288a
Translated using Weblate (Portuguese (Brazil))
eduaparicio May 13, 2020
03d8a89
[IMP] - Contract: add new recurring_rule_type quarterly and semesterly
sbejaoui Apr 14, 2020
7dec0d2
[UPD] Update product_contract.pot
oca-travis May 18, 2020
a66cac8
product_contract 12.0.5.1.0
OCA-git-bot May 18, 2020
a0dd045
Update translation files
oca-transbot May 18, 2020
ed06a32
[UPD] Update product_contract.pot
oca-travis May 18, 2020
03fa15c
Update translation files
oca-transbot May 18, 2020
9306ab1
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 16, 2020
1803151
Translated using Weblate (Spanish)
pedrobaeza Jun 17, 2020
e90f166
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
c75c34a
Translated using Weblate (Portuguese (Brazil))
fcolus Aug 10, 2020
32160b7
Update translation files
oca-transbot Aug 16, 2020
f1c2168
Translated using Weblate (French)
gregory-moka Aug 17, 2020
e73d760
[13.0][MIG] - migration product_contract
sbejaoui Oct 24, 2020
4b52807
[IMP] product_contract: black, isort, prettier
mourad-ehm Nov 12, 2021
d6e4d4b
[MIG] product_contract: Migration to 14.0
mourad-ehm Mar 9, 2021
e4244d4
[IMP] product_contract: use _compute_display_name. Moved it to contra…
ilyasProgrammer Mar 21, 2023
f8909cf
[IMP] product_contract: code improvements
ilyasProgrammer Mar 22, 2023
7b4e7d4
[UPD] Update product_contract.pot
Apr 12, 2023
92c740e
[UPD] README.rst
OCA-git-bot Apr 12, 2023
7509cc6
product_contract 14.0.1.0.1
OCA-git-bot Apr 12, 2023
3c764e1
Translated using Weblate (Italian)
francesco-ooops Apr 13, 2023
be77004
Translated using Weblate (Italian)
mymage Apr 18, 2023
86dc831
Translated using Weblate (Italian)
francesco-ooops Apr 18, 2023
fe8ed89
[IMP] product_contract: pre-commit stuff
Rad0van Apr 29, 2023
1b930d4
[MIG] product_contract: Migration to 16.0
Rad0van Jun 8, 2023
5c090b1
analytic_distribution
Rad0van Feb 10, 2024
6c4c858
analytic_account_id
Rad0van Feb 10, 2024
df1331c
[IMP] product_contract: pre-commit auto fixes
jaenbox May 7, 2024
317012a
[MIG] product_contract: Migration to 17.0
jaenbox May 7, 2024
d1602ac
[IMP] product_contract: contract quantity same quantity of order
jaenbox May 8, 2024
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
109 changes: 109 additions & 0 deletions product_contract/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
============================
Recurring - Product Contract
============================

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

.. |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/17.0/product_contract
:alt: OCA/contract
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract
: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=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds support for products to be linked to contract
templates.

A contract is created on ``sale.order`` confirmation for each different
template used in sale order line where recurrence details are set too.

Contract product are ignored on invoicing process and pass to nothing to
invoice directly.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to Sales -> Products and select or create a product.
2. Check "Is a contract" and select the contract template related to the
product
3. Define default recurrence rules

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:%20product_contract%0Aversion:%2017.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
-------

* LasLabs
* ACSONE SA/NV

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

- Ted Salmon <[email protected]>
- Souheil Bejaoui <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Ernesto Tejeda
- Pedro M. Baeza

- David Jaen <[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.

.. |maintainer-sbejaoui| image:: https://github.com/sbejaoui.png?size=40px
:target: https://github.com/sbejaoui
:alt: sbejaoui

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sbejaoui|

This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/17.0/product_contract>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions product_contract/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2017 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
23 changes: 23 additions & 0 deletions product_contract/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2017 LasLabs Inc.
# Copyright 2018 ACSONE SA/NV.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Recurring - Product Contract",
"version": "17.0.1.0.0",
"category": "Contract Management",
"license": "AGPL-3",
"author": "LasLabs, " "ACSONE SA/NV, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/contract",
"depends": ["product", "contract", "sale"],
"data": [
"wizards/res_config_settings.xml",
"views/contract.xml",
"views/product_template.xml",
"views/sale_order.xml",
],
"installable": True,
"application": False,
"external_dependencies": {"python": ["dateutil"]},
"maintainers": ["sbejaoui"],
}
Loading
Loading