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

[18.0][MIG] product_contract #1137

Draft
wants to merge 167 commits into
base: 18.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
9a890b3
[ADD] product_contract: Create module
Jan 12, 2017
d97e5e5
[FIX] product_contract: Fix mock usage in tests
lasley May 26, 2017
cc886fc
[FIX] contract_sale_generation: it doesn't create sales (#141)
flotho Apr 1, 2018
5666cf3
[MIG] - Product Contract Migration to 12.0
sbejaoui Oct 31, 2018
feddc38
[IMP] - Product with is_contract can be only of type service
sbejaoui Oct 31, 2018
ca03bc6
[IMP] - Change dependencies to contract_sale
sbejaoui Oct 31, 2018
dcf06d2
[IMP] - Add recurrence fields to product template and sale order line
sbejaoui Oct 31, 2018
382caab
[IMP] - Create contract on sale order confirmation
sbejaoui Nov 2, 2018
de2076d
[IMP] - Link contract line to sale order line
sbejaoui Nov 2, 2018
971a9b0
[FIX] - Remove recurring_next_date from sale order line
sbejaoui Nov 2, 2018
ac02850
[IMP] - Contract product are ignored on invoicing process
sbejaoui Nov 5, 2018
2f2329f
[FIX] - Default value for date_start applied on product change
sbejaoui Nov 5, 2018
99a270a
[ADD] - Add readme directory
sbejaoui Nov 5, 2018
028a277
[IMP] - Onchange contract product on contract contract and contract t…
sbejaoui Nov 5, 2018
df588e1
[FIX] - Change website to OCA repository url and prefix module name w…
sbejaoui Nov 5, 2018
f89da84
[FIX] - Compute recurring_next_date before create contract line
sbejaoui Nov 5, 2018
22c4c4d
[IMP] - Upsell/Downsell contract from sale order
sbejaoui Nov 15, 2018
2e70321
[ADD] - Add renewal process with termination notice
sbejaoui Nov 19, 2018
43bb18d
[IMP] - compute date end onchange date start for auto-renew sale orde…
sbejaoui Nov 19, 2018
8a004c6
[IMP] - link contract line and its successor in upsel case
sbejaoui Nov 26, 2018
dbf6867
[FIX] - on upsel, contract line should stop day - 1
sbejaoui Nov 28, 2018
d776f97
[FIX] - fix onchange
sbejaoui Nov 29, 2018
d0d8306
[IMP] - hide recurring_invoicing_type if recurring_rule_type is month…
sbejaoui Nov 29, 2018
6914757
[FIX] - include date_end in the period if the product is_autorenew
sbejaoui Nov 30, 2018
ede3512
[IMP] - _prepare_contract_value for sale order confirm
sbejaoui Dec 3, 2018
b5c50e4
[REM] - Remove unused method
sbejaoui Dec 4, 2018
6961e9a
[IMP] - get contract user from sale order user
sbejaoui Dec 13, 2018
cc5f64a
[IMP] - show related sale orders in contract form
sbejaoui Dec 14, 2018
22c7282
[REF] Contract Product: invoice in prepare_invoice_line is optional
ThomasBinsfeld Dec 18, 2018
a339a03
[FIX] - fix flake8
sbejaoui Dec 20, 2018
ee6adbf
[ADD] Product Contract: payment term
ThomasBinsfeld Dec 21, 2018
cae7829
[IMP] - update invoice_line vals only if it is not null
sbejaoui Dec 28, 2018
82c5906
[FIX] - fix unit tests
sbejaoui Jan 3, 2019
c4bcab4
[IMP] - Add unit test
sbejaoui Jan 10, 2019
a35d38f
[REF] - predecessor_contract_line set in create process
sbejaoui Jan 15, 2019
15b02c3
[IMP] - Simplify sale order line creation for contract product
sbejaoui Jan 21, 2019
c86cde8
[ADD] Contract Sale: fiscal position
ThomasBinsfeld Jan 23, 2019
1dd00ec
[IMP] - auto_renew_rule deducted from recurring_rule_type and product…
sbejaoui Jan 24, 2019
1ee6784
[FIX] Product Contract: copy invoicing partner to created contract
ThomasBinsfeld Jan 29, 2019
1716edc
[FIX] - Fix recurring_next_date
sbejaoui Jan 29, 2019
be5587e
[FIX] - date_end required only for contract product
sbejaoui Jan 29, 2019
d06da93
[FIX] - Get auto_renew_rule_type based on recurring_rule_type
sbejaoui Feb 1, 2019
050b75f
[IMP] - cancel contract line if the downsell/upsell comes before
sbejaoui Feb 4, 2019
81fba5f
[FIX] - date_end computed only for contract products
sbejaoui Feb 6, 2019
7178569
[REF] Contract: set order count to 0 if no access to orders
ThomasBinsfeld Feb 13, 2019
930b007
[IMP] - permit contract selection without contract_template_id
sbejaoui Feb 28, 2019
3116bdd
[ADD] Add start_date to contract_line display_name
qgroulard Sep 2, 2019
70149e4
[12.0][IMP] - option to decide if we automaticallt create contract a …
sbejaoui Sep 5, 2019
b4f7cc6
[FIX] - fix display name compute dependecy
sbejaoui Sep 5, 2019
97c55de
[12.0][FIX] - create contract only on sale and done states
sbejaoui Sep 11, 2019
ba1e57d
[12.0][REF] - Split analytic accouts and contracts
sbejaoui Sep 17, 2019
604c5c4
[12.0][IMP] - Improve unit tests
sbejaoui Sep 30, 2019
de64af4
[IMP] - improve is contract visibility in product view
sbejaoui Sep 30, 2019
8d4eb65
[12.0][IMP] - sale line linked to contracts must not be invoiced from…
sbejaoui Oct 1, 2019
d7b1fde
[UPD] README.rst
OCA-git-bot Oct 1, 2019
bbf0af7
[ADD] icon.png
OCA-git-bot Oct 1, 2019
5f0df65
[FIX] - Remove deprecated field
sbejaoui Oct 1, 2019
46a03b9
[UPD] Update product_contract.pot
oca-travis Oct 1, 2019
a0d8957
Update translation files
oca-transbot Oct 1, 2019
e6698cc
product_contract 12.0.2.0.1
OCA-git-bot Oct 2, 2019
9570d8e
Translated using Weblate (German)
marylla Oct 9, 2019
1f19101
Translated using Weblate (Portuguese (Brazil))
britoederr Oct 10, 2019
077df9f
Translated using Weblate (German)
rschnapka Oct 29, 2019
3694ffa
[12.0][FIX] - contract company must be the same as the sale order
sbejaoui Oct 28, 2019
c7795eb
product_contract 12.0.2.0.2
OCA-git-bot Oct 30, 2019
69c934f
[12.0][FIX] - Run onchange contract_type when changing the contract t…
sbejaoui Nov 26, 2019
b82f785
Translated using Weblate (Croatian)
badbole Dec 2, 2019
dc2720e
Translated using Weblate (French)
Martronic-SA Dec 6, 2019
3f58f24
[IMP] contract: support pre-paid for monthlylastday
sbidoul Dec 8, 2019
c9905b5
[IMP] - Set recurring_invoicing_type for existing products set to mon…
sbejaoui Dec 9, 2019
8a1ee1f
product_contract 12.0.3.0.0
OCA-git-bot Dec 12, 2019
1d25863
[12.0][FIX] - Set contract line analytic account at contract creation…
sbejaoui Dec 30, 2019
7825c3f
[UPD] Update product_contract.pot
oca-travis Jan 7, 2020
60bcb42
product_contract 12.0.3.0.1
OCA-git-bot Jan 7, 2020
0462fbc
Update translation files
oca-transbot Jan 7, 2020
4b42bb5
Translated using Weblate (Spanish)
Jan 17, 2020
2c3035b
product_contract 12.0.3.1.0
OCA-git-bot Jan 17, 2020
1be5c59
[IMP] contract: remove redundant method
pedrobaeza Jan 8, 2020
6adceb2
product_contract 12.0.3.1.1
OCA-git-bot Jan 30, 2020
a318da2
Translated using Weblate (Italian)
Feb 4, 2020
e803f88
Translated using Weblate (Spanish)
Feb 4, 2020
283540a
[FIX]contract_count == len(active contracts)
Feb 5, 2020
97b572c
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 12, 2020
f66390a
Translated using Weblate (Portuguese)
pedrocs-exo Feb 17, 2020
a3f0568
Translated using Weblate (Portuguese)
pedrocs-exo Feb 17, 2020
d233379
Translated using Weblate (Portuguese)
alvarorib Feb 18, 2020
84999b7
[12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to…
sbejaoui Feb 17, 2020
0459b54
[IMP] - Improve UX, open contract form if the sale order is related t…
sbejaoui Feb 25, 2020
233bc32
product_contract 12.0.3.1.2
OCA-git-bot Mar 8, 2020
4a43938
[FIX] product_contract: set 'Contract template' field company depend
Feb 11, 2020
393a0d5
[FIX] contract_sale_mandate: use property_contract_template_id
Feb 26, 2020
a1ffd17
[UPD] Update product_contract.pot
oca-travis Mar 9, 2020
3e0001a
[UPD] README.rst
OCA-git-bot Mar 9, 2020
7022de2
Update translation files
oca-transbot Mar 9, 2020
984073a
[UPD] Update product_contract.pot
oca-travis Mar 9, 2020
3679566
Update translation files
oca-transbot Mar 9, 2020
7314af2
[IMP] - can't upsell or downsell a resiliated contract
sbejaoui Jan 30, 2020
f97eac2
[IMP] - use terminate term instead of resiliate
sbejaoui Mar 10, 2020
de3ce9f
[UPD] Update product_contract.pot
oca-travis Mar 11, 2020
20a86c5
product_contract 12.0.5.0.0
OCA-git-bot Mar 11, 2020
06f7ab8
Update translation files
oca-transbot Mar 11, 2020
9a78f2b
[UPD] Update product_contract.pot
oca-travis Mar 11, 2020
bba3a03
Update translation files
oca-transbot Mar 11, 2020
0d6c7a6
[12.0][IMP] - Add failing test for creating contract grouped by contr…
sbejaoui Mar 17, 2020
a2f4780
[12.0][FIX] - fix contract creation group by contract template
sbejaoui Mar 17, 2020
697be7a
Translated using Weblate (French)
svalaeys Mar 17, 2020
605dd5e
[UPD] Update product_contract.pot
oca-travis Mar 17, 2020
e72bab1
product_contract 12.0.5.0.1
OCA-git-bot Mar 17, 2020
c04f8b0
Update translation files
oca-transbot Mar 17, 2020
ee37c32
[UPD] Update product_contract.pot
oca-travis Mar 17, 2020
b640033
Update translation files
oca-transbot Mar 17, 2020
5a48ef9
product_contract 12.0.5.0.2
OCA-git-bot Mar 18, 2020
2831bf3
[FIX] migration from 11.0
sergiocorato Mar 24, 2020
d600498
Translated using Weblate (Spanish)
Mar 25, 2020
5f7a9d4
[UPD] README.rst
OCA-git-bot Mar 25, 2020
e0c2d0a
[UPD] README.rst
OCA-git-bot Mar 25, 2020
2504a60
product_contract 12.0.5.0.3
OCA-git-bot Mar 30, 2020
8053d1f
[UPD] Update product_contract.pot
oca-travis Apr 6, 2020
177e3d4
product_contract 12.0.5.0.4
OCA-git-bot Apr 6, 2020
3496d6e
Update translation files
oca-transbot Apr 6, 2020
12793c9
[UPD] Update product_contract.pot
oca-travis Apr 6, 2020
6dae48a
Update translation files
oca-transbot Apr 6, 2020
efbd78e
Translated using Weblate (Portuguese (Brazil))
eduaparicio May 13, 2020
1433b51
[IMP] - Contract: add new recurring_rule_type quarterly and semesterly
sbejaoui Apr 14, 2020
6b6c96b
[UPD] Update product_contract.pot
oca-travis May 18, 2020
f920d1c
product_contract 12.0.5.1.0
OCA-git-bot May 18, 2020
d9c3776
Update translation files
oca-transbot May 18, 2020
464f7ac
[UPD] Update product_contract.pot
oca-travis May 18, 2020
d6d35c5
Update translation files
oca-transbot May 18, 2020
acf02d9
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 16, 2020
7acdc92
Translated using Weblate (Spanish)
pedrobaeza Jun 17, 2020
bceed11
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
498158b
Translated using Weblate (Portuguese (Brazil))
fcolus Aug 10, 2020
1ef497a
Update translation files
oca-transbot Aug 16, 2020
985a7dc
Translated using Weblate (French)
gregory-moka Aug 17, 2020
a7b046a
[13.0][MIG] - migration product_contract
sbejaoui Oct 24, 2020
4d9843d
[IMP] product_contract: black, isort, prettier
mourad-ehm Nov 12, 2021
f915b2c
[MIG] product_contract: Migration to 14.0
mourad-ehm Mar 9, 2021
87875d0
[IMP] product_contract: use _compute_display_name. Moved it to contra…
ilyasProgrammer Mar 21, 2023
0b11f59
[IMP] product_contract: code improvements
ilyasProgrammer Mar 22, 2023
aa54455
[UPD] Update product_contract.pot
Apr 12, 2023
be9da16
[UPD] README.rst
OCA-git-bot Apr 12, 2023
4dc69c6
product_contract 14.0.1.0.1
OCA-git-bot Apr 12, 2023
e15b1c9
Translated using Weblate (Italian)
francesco-ooops Apr 13, 2023
15f3bd7
Translated using Weblate (Italian)
mymage Apr 18, 2023
48f5d46
Translated using Weblate (Italian)
francesco-ooops Apr 18, 2023
3273b37
[IMP] product_contract: pre-commit stuff
Rad0van Apr 29, 2023
0b4e038
[MIG] product_contract: Migration to 16.0
Rad0van Jun 8, 2023
3d64493
analytic_distribution
Rad0van Feb 10, 2024
f2d873b
analytic_account_id
Rad0van Feb 10, 2024
31cd0ad
[IMP] product_contract: pre-commit auto fixes
jaenbox May 7, 2024
cff155c
[MIG] product_contract: Migration to 17.0
jaenbox May 7, 2024
8b4a606
[IMP] product_contract: contract quantity same quantity of order
jaenbox May 8, 2024
3147b56
[UPD] Update product_contract.pot
Jun 4, 2024
8902548
[BOT] post-merge updates
OCA-git-bot Jun 4, 2024
f977429
Update translation files
weblate Jun 4, 2024
e49bde1
Translated using Weblate (Italian)
mymage Jun 5, 2024
c4ed6a0
Translated using Weblate (Italian)
mymage Aug 1, 2024
1c95dae
[IMP] product_contract: Add contract configurator instead of making t…
CarlosRoca13 Aug 26, 2024
5eba8ce
Translated using Weblate (Italian)
mymage Aug 29, 2024
9447a3e
[IMP] product_contract: Add posibility to compute date_start of line …
CarlosRoca13 Aug 29, 2024
36a94ac
[UPD] Update product_contract.pot
Sep 2, 2024
f8c9fde
[BOT] post-merge updates
OCA-git-bot Sep 2, 2024
ab394b4
Update translation files
weblate Sep 2, 2024
d8254c8
Translated using Weblate (Italian)
mymage Sep 3, 2024
17c7d97
[18.0][MIG] product_contract
sbejaoui Nov 4, 2024
775769d
[IMP] product_contract: add Recurrence Number to compute start and en…
sbejaoui Nov 15, 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
116 changes: 116 additions & 0 deletions product_contract/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
============================
Recurring - Product Contract
============================

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

.. |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/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-18-0/contract-18-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=18.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

Known issues / Roadmap
======================

- There's no support right now for computing the start date for the
following recurrent types: daily, weekly and monthlylastday.

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

* LasLabs
* ACSONE SA/NV

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

- Ted Salmon <tsalmon@laslabs.com>
- Souheil Bejaoui <souheil.bejaoui@acsone.eu>
- `Tecnativa <https://www.tecnativa.com>`__:

- Ernesto Tejeda
- Pedro M. Baeza
- Carlos Roca

- David Jaen <david.jaen.revert@gmail.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.

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

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

from . import models
from . import wizards
26 changes: 26 additions & 0 deletions product_contract/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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": "18.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": [
"security/ir.model.access.csv",
"wizards/res_config_settings.xml",
"views/contract.xml",
"views/product_template.xml",
"views/sale_order.xml",
"wizards/product_contract_configurator_views.xml",
],
"installable": True,
"application": False,
"external_dependencies": {"python": ["python-dateutil"]},
"maintainers": ["sbejaoui"],
"assets": {"web.assets_backend": ["product_contract/static/src/js/*"]},
}
Loading
Loading