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] product contract from 17.0 #1090

Closed
wants to merge 158 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
cd8296c
[ADD] product_contract: Create module
Jan 12, 2017
3059947
[FIX] product_contract: Fix mock usage in tests
lasley May 26, 2017
7d76397
[FIX] contract_sale_generation: it doesn't create sales (#141)
flotho Apr 1, 2018
52fdee9
[MIG] - Product Contract Migration to 12.0
sbejaoui Oct 31, 2018
37df4e2
[IMP] - Product with is_contract can be only of type service
sbejaoui Oct 31, 2018
82a3b04
[IMP] - Change dependencies to contract_sale
sbejaoui Oct 31, 2018
79ba92e
[IMP] - Add recurrence fields to product template and sale order line
sbejaoui Oct 31, 2018
806e305
[IMP] - Create contract on sale order confirmation
sbejaoui Nov 2, 2018
39b40a7
[IMP] - Link contract line to sale order line
sbejaoui Nov 2, 2018
61dec9d
[FIX] - Remove recurring_next_date from sale order line
sbejaoui Nov 2, 2018
7128728
[IMP] - Contract product are ignored on invoicing process
sbejaoui Nov 5, 2018
42eff59
[FIX] - Default value for date_start applied on product change
sbejaoui Nov 5, 2018
dc73bb6
[ADD] - Add readme directory
sbejaoui Nov 5, 2018
c8ded3e
[IMP] - Onchange contract product on contract contract and contract t…
sbejaoui Nov 5, 2018
a076eab
[FIX] - Change website to OCA repository url and prefix module name w…
sbejaoui Nov 5, 2018
3e10651
[FIX] - Compute recurring_next_date before create contract line
sbejaoui Nov 5, 2018
9e01d0c
[IMP] - Upsell/Downsell contract from sale order
sbejaoui Nov 15, 2018
e82e312
[ADD] - Add renewal process with termination notice
sbejaoui Nov 19, 2018
b49d2dc
[IMP] - compute date end onchange date start for auto-renew sale orde…
sbejaoui Nov 19, 2018
c417ca7
[IMP] - link contract line and its successor in upsel case
sbejaoui Nov 26, 2018
a487d92
[FIX] - on upsel, contract line should stop day - 1
sbejaoui Nov 28, 2018
de2bbe8
[FIX] - fix onchange
sbejaoui Nov 29, 2018
2ef3301
[IMP] - hide recurring_invoicing_type if recurring_rule_type is month…
sbejaoui Nov 29, 2018
3479c33
[FIX] - include date_end in the period if the product is_autorenew
sbejaoui Nov 30, 2018
d7de851
[IMP] - _prepare_contract_value for sale order confirm
sbejaoui Dec 3, 2018
a516539
[REM] - Remove unused method
sbejaoui Dec 4, 2018
08a9021
[IMP] - get contract user from sale order user
sbejaoui Dec 13, 2018
d9ed4c8
[IMP] - show related sale orders in contract form
sbejaoui Dec 14, 2018
b2dd2ae
[REF] Contract Product: invoice in prepare_invoice_line is optional
ThomasBinsfeld Dec 18, 2018
4d3832f
[FIX] - fix flake8
sbejaoui Dec 20, 2018
e4797a8
[ADD] Product Contract: payment term
ThomasBinsfeld Dec 21, 2018
b278614
[IMP] - update invoice_line vals only if it is not null
sbejaoui Dec 28, 2018
9744639
[FIX] - fix unit tests
sbejaoui Jan 3, 2019
137c8cc
[IMP] - Add unit test
sbejaoui Jan 10, 2019
8292d57
[REF] - predecessor_contract_line set in create process
sbejaoui Jan 15, 2019
89a8907
[IMP] - Simplify sale order line creation for contract product
sbejaoui Jan 21, 2019
ccb7428
[ADD] Contract Sale: fiscal position
ThomasBinsfeld Jan 23, 2019
c73fa6f
[IMP] - auto_renew_rule deducted from recurring_rule_type and product…
sbejaoui Jan 24, 2019
5de3d7f
[FIX] Product Contract: copy invoicing partner to created contract
ThomasBinsfeld Jan 29, 2019
adb3a61
[FIX] - Fix recurring_next_date
sbejaoui Jan 29, 2019
a470e83
[FIX] - date_end required only for contract product
sbejaoui Jan 29, 2019
090a44b
[FIX] - Get auto_renew_rule_type based on recurring_rule_type
sbejaoui Feb 1, 2019
2f37fa0
[IMP] - cancel contract line if the downsell/upsell comes before
sbejaoui Feb 4, 2019
81a94aa
[FIX] - date_end computed only for contract products
sbejaoui Feb 6, 2019
d0ed0ef
[REF] Contract: set order count to 0 if no access to orders
ThomasBinsfeld Feb 13, 2019
41c5e56
[IMP] - permit contract selection without contract_template_id
sbejaoui Feb 28, 2019
01da00c
[ADD] Add start_date to contract_line display_name
qgroulard Sep 2, 2019
87d43ff
[12.0][IMP] - option to decide if we automaticallt create contract a …
sbejaoui Sep 5, 2019
712254b
[FIX] - fix display name compute dependecy
sbejaoui Sep 5, 2019
87a5faa
[12.0][FIX] - create contract only on sale and done states
sbejaoui Sep 11, 2019
da1ccd8
[12.0][REF] - Split analytic accouts and contracts
sbejaoui Sep 17, 2019
917ab9a
[12.0][IMP] - Improve unit tests
sbejaoui Sep 30, 2019
93cd322
[IMP] - improve is contract visibility in product view
sbejaoui Sep 30, 2019
fd97b23
[12.0][IMP] - sale line linked to contracts must not be invoiced from…
sbejaoui Oct 1, 2019
b8db3af
[UPD] README.rst
OCA-git-bot Oct 1, 2019
4ae4a47
[ADD] icon.png
OCA-git-bot Oct 1, 2019
a78cfd9
[FIX] - Remove deprecated field
sbejaoui Oct 1, 2019
e461e20
[UPD] Update product_contract.pot
oca-travis Oct 1, 2019
9211464
Update translation files
oca-transbot Oct 1, 2019
7b1bbfd
product_contract 12.0.2.0.1
OCA-git-bot Oct 2, 2019
66ad698
Translated using Weblate (German)
marylla Oct 9, 2019
d0bfe9a
Translated using Weblate (Portuguese (Brazil))
britoederr Oct 10, 2019
c59598f
Translated using Weblate (German)
rschnapka Oct 29, 2019
25d393e
[12.0][FIX] - contract company must be the same as the sale order
sbejaoui Oct 28, 2019
da5e2ca
product_contract 12.0.2.0.2
OCA-git-bot Oct 30, 2019
6e29031
[12.0][FIX] - Run onchange contract_type when changing the contract t…
sbejaoui Nov 26, 2019
56644c8
Translated using Weblate (Croatian)
badbole Dec 2, 2019
c3d032c
Translated using Weblate (French)
Martronic-SA Dec 6, 2019
0eadfd8
[IMP] contract: support pre-paid for monthlylastday
sbidoul Dec 8, 2019
8682ded
[IMP] - Set recurring_invoicing_type for existing products set to mon…
sbejaoui Dec 9, 2019
2fe9c3f
product_contract 12.0.3.0.0
OCA-git-bot Dec 12, 2019
1123240
[12.0][FIX] - Set contract line analytic account at contract creation…
sbejaoui Dec 30, 2019
1b45bad
[UPD] Update product_contract.pot
oca-travis Jan 7, 2020
58feef8
product_contract 12.0.3.0.1
OCA-git-bot Jan 7, 2020
0e43c5d
Update translation files
oca-transbot Jan 7, 2020
51b8f35
Translated using Weblate (Spanish)
Jan 17, 2020
c6f25fb
product_contract 12.0.3.1.0
OCA-git-bot Jan 17, 2020
3380595
[IMP] contract: remove redundant method
pedrobaeza Jan 8, 2020
5c039a2
product_contract 12.0.3.1.1
OCA-git-bot Jan 30, 2020
db7beeb
Translated using Weblate (Italian)
Feb 4, 2020
23e2847
Translated using Weblate (Spanish)
Feb 4, 2020
05cce15
[FIX]contract_count == len(active contracts)
Feb 5, 2020
db629c2
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 12, 2020
c846aca
Translated using Weblate (Portuguese)
pedrocasi Feb 17, 2020
c3817a6
Translated using Weblate (Portuguese)
pedrocasi Feb 17, 2020
3d0b27d
Translated using Weblate (Portuguese)
alvarorib Feb 18, 2020
bef6a49
[12.0][ADD] - add auto_renew_interval, auto_renew_rule_type fields to…
sbejaoui Feb 17, 2020
2a04023
[IMP] - Improve UX, open contract form if the sale order is related t…
sbejaoui Feb 25, 2020
ee9b5f3
product_contract 12.0.3.1.2
OCA-git-bot Mar 8, 2020
31e7588
[FIX] product_contract: set 'Contract template' field company depend
Feb 11, 2020
bc678ff
[FIX] contract_sale_mandate: use property_contract_template_id
Feb 26, 2020
e233e4d
[UPD] Update product_contract.pot
oca-travis Mar 9, 2020
319d279
[UPD] README.rst
OCA-git-bot Mar 9, 2020
ed18ebb
Update translation files
oca-transbot Mar 9, 2020
2484dcf
[UPD] Update product_contract.pot
oca-travis Mar 9, 2020
3d3d984
Update translation files
oca-transbot Mar 9, 2020
62c04e9
[IMP] - can't upsell or downsell a resiliated contract
sbejaoui Jan 30, 2020
7f04084
[IMP] - use terminate term instead of resiliate
sbejaoui Mar 10, 2020
e266afe
[UPD] Update product_contract.pot
oca-travis Mar 11, 2020
033539c
product_contract 12.0.5.0.0
OCA-git-bot Mar 11, 2020
cedafc4
Update translation files
oca-transbot Mar 11, 2020
b867291
[UPD] Update product_contract.pot
oca-travis Mar 11, 2020
2c4696c
Update translation files
oca-transbot Mar 11, 2020
57238b0
[12.0][IMP] - Add failing test for creating contract grouped by contr…
sbejaoui Mar 17, 2020
8f86e58
[12.0][FIX] - fix contract creation group by contract template
sbejaoui Mar 17, 2020
2a478a4
Translated using Weblate (French)
svalaeys Mar 17, 2020
46fd21d
[UPD] Update product_contract.pot
oca-travis Mar 17, 2020
c4c9279
product_contract 12.0.5.0.1
OCA-git-bot Mar 17, 2020
f1a0e91
Update translation files
oca-transbot Mar 17, 2020
e89c735
[UPD] Update product_contract.pot
oca-travis Mar 17, 2020
07b719d
Update translation files
oca-transbot Mar 17, 2020
8a19552
product_contract 12.0.5.0.2
OCA-git-bot Mar 18, 2020
101e333
[FIX] migration from 11.0
sergiocorato Mar 24, 2020
7fe5a34
Translated using Weblate (Spanish)
Mar 25, 2020
9f0ec4e
[UPD] README.rst
OCA-git-bot Mar 25, 2020
3d9d21f
[UPD] README.rst
OCA-git-bot Mar 25, 2020
1aad873
product_contract 12.0.5.0.3
OCA-git-bot Mar 30, 2020
14fd292
[UPD] Update product_contract.pot
oca-travis Apr 6, 2020
9fbf093
product_contract 12.0.5.0.4
OCA-git-bot Apr 6, 2020
47dea92
Update translation files
oca-transbot Apr 6, 2020
eb7d88e
[UPD] Update product_contract.pot
oca-travis Apr 6, 2020
d79244f
Update translation files
oca-transbot Apr 6, 2020
94d67ce
Translated using Weblate (Portuguese (Brazil))
eduaparicio May 13, 2020
32af68f
[IMP] - Contract: add new recurring_rule_type quarterly and semesterly
sbejaoui Apr 14, 2020
6458d0d
[UPD] Update product_contract.pot
oca-travis May 18, 2020
9a70e57
product_contract 12.0.5.1.0
OCA-git-bot May 18, 2020
d12be96
Update translation files
oca-transbot May 18, 2020
4c31ac3
[UPD] Update product_contract.pot
oca-travis May 18, 2020
ef45ec5
Update translation files
oca-transbot May 18, 2020
3772523
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 16, 2020
0a20654
Translated using Weblate (Spanish)
pedrobaeza Jun 17, 2020
fb4b3e1
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 17, 2020
f48ebf4
Translated using Weblate (Portuguese (Brazil))
fcolus Aug 10, 2020
e8071c2
Update translation files
oca-transbot Aug 16, 2020
a7069f4
Translated using Weblate (French)
gregory-moka Aug 17, 2020
b1ef5b2
[13.0][MIG] - migration product_contract
sbejaoui Oct 24, 2020
00b4e15
[IMP] product_contract: black, isort, prettier
mourad-ehm Nov 12, 2021
66f537a
[MIG] product_contract: Migration to 14.0
mourad-ehm Mar 9, 2021
5d76870
[IMP] product_contract: use _compute_display_name. Moved it to contra…
ilyasProgrammer Mar 21, 2023
bf75b85
[IMP] product_contract: code improvements
ilyasProgrammer Mar 22, 2023
5fdd5ee
[UPD] Update product_contract.pot
Apr 12, 2023
3238e9a
[UPD] README.rst
OCA-git-bot Apr 12, 2023
1234fcf
product_contract 14.0.1.0.1
OCA-git-bot Apr 12, 2023
dd42628
Translated using Weblate (Italian)
francesco-ooops Apr 13, 2023
ab450ee
Translated using Weblate (Italian)
mymage Apr 18, 2023
1a48ea9
Translated using Weblate (Italian)
francesco-ooops Apr 18, 2023
3ae9942
[IMP] product_contract: pre-commit stuff
Rad0van Apr 29, 2023
0856fd9
[MIG] product_contract: Migration to 16.0
Rad0van Jun 8, 2023
7fd2bbb
analytic_distribution
Rad0van Feb 10, 2024
68e4e06
analytic_account_id
Rad0van Feb 10, 2024
bd26e9b
[IMP] product_contract: pre-commit auto fixes
jaenbox May 7, 2024
02d3144
[MIG] product_contract: Migration to 17.0
jaenbox May 7, 2024
b331eb8
[IMP] product_contract: contract quantity same quantity of order
jaenbox May 8, 2024
565b0b1
[UPD] Update product_contract.pot
Jun 4, 2024
61bd3a0
[BOT] post-merge updates
OCA-git-bot Jun 4, 2024
4ba200f
Update translation files
weblate Jun 4, 2024
529651a
Translated using Weblate (Italian)
mymage Jun 5, 2024
6e31953
[MIG] product_contract: Migration to 16.0 from 17.0
maisim Jun 10, 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:e84d2d24a0eaff0fea23e280cfacb7613083c73a8c9ad66e80536f6ad702de42
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/16.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-16-0/contract-16-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=16.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:%2016.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

- 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/16.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": "16.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