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

[IMP] product_contract: Contract recurring interval from sale lines #1125

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
08c9154
[ADD] contract_price_revision: new module to update contract prices e…
cubells Mar 1, 2019
8715f4e
[IMP] contract_price_revision: Improve a bit performance
pedrobaeza Mar 7, 2019
0fec367
[MIG] contract_price_revision: Migration to 12.0
carlosdauden Dec 17, 2019
a6a8db1
[FIX] contract_price_revision: Skip revising lines that are not valid…
astirpe Feb 14, 2020
5244e32
[FIX] - fix development_status
sbejaoui Nov 13, 2020
a851717
[IMP] contract_price_revision: black, isort, prettier
rousseldenis Feb 14, 2021
69e0799
[13.0][MIG] contract_price_revision
rousseldenis Feb 14, 2021
e7722f4
[13.0][IMP] contract_price_revision: Add fixed price revision
rousseldenis Feb 15, 2021
fd90a8a
[13.0][FIX] contract_price_revision: Recurring next date is not well …
rousseldenis Mar 14, 2021
e19b5ae
[13.0][FIX] contract_price_revision: Copy() does the job
rousseldenis Mar 14, 2021
faaf620
[FIX] contract_price_revision: Use digits string instead of decimal p…
rousseldenis Aug 7, 2022
2cee523
[IMP] contract_price_revision: Improve readability by adding a comput…
rousseldenis Aug 7, 2022
1396ed2
[IMP] contract_price_revision: Improve compatibility with contract ba…
rousseldenis Aug 8, 2022
c0eed2d
[IMP] contract_price_revision: Allows to restrict price revision on s…
rousseldenis Aug 8, 2022
839c358
[IMP] contract_price_revision: pre-commit stuff
carolinafernandez-tecnativa Sep 28, 2023
0e3ebb3
[MIG] contract_price_revision: Migration to 15.0
carolinafernandez-tecnativa Sep 28, 2023
93770c4
Translated using Weblate (Spanish)
Ivorra78 Oct 29, 2023
5f4fb7d
[MIG] contract_price_revision: Migration to 16.0
houzefa-abba Jan 15, 2024
4f82977
Merge commit 'refs/pull/1038/head' of github.com:OCA/contract into 07…
TelmoSuarez Sep 2, 2024
420cfb4
[IMP] product_contract: Establish contract recurring interval in sale…
TelmoSuarez Sep 5, 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
111 changes: 111 additions & 0 deletions contract_price_revision/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
=======================
Contract Price Revision
=======================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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_price_revision
: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_price_revision
: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=15.0
:alt: Try me on Runboat

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

This module allows to create revisions of contract line prices.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module:

#. Go to **Invoicing > Customers > Customer Contracts** if you are a billing
user.
#. Select as many contracts as you want to update line prices.
#. Click on Action button and execute the wizard **Create revision of contract
lines**.
#. Enter date start from which the new price will be valid and enter date
end and percentage to increase old contract lines.
#. By clicking on Apply button, a new contract line will be created with
a price increased accordingly to the percent entered. Old contract lines
will have as ending date the day before the entered date.
#. When create invoices related to contracts selected, prices will be update
with the prices that are not out of date.

#. When managing contract with recurrence on line level, you maybe want not
to revise price for some lines.
Check 'Never Revise Price' on line level to avoid price revisions.

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_price_revision%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
* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

* Vicent Cubells
* Carlos Dauden
* Carolina Fernandez

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-carlosdauden| image:: https://github.com/carlosdauden.png?size=40px
:target: https://github.com/carlosdauden
:alt: carlosdauden

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

|maintainer-carlosdauden|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions contract_price_revision/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
24 changes: 24 additions & 0 deletions contract_price_revision/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019 Tecnativa - Carlos Dauden
# Copyright 2023 Tecnativa - Carolina Fernandez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Contract Price Revision",
"summary": "Easy revision of contract prices",
"version": "16.0.1.0.0",
"category": "Contract Management",
"author": "ACSONE SA/NV, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/contract",
"depends": ["contract"],
"data": [
"security/ir.model.access.csv",
"views/contract_contract.xml",
"views/contract_line.xml",
"wizards/contract_price_revision_views.xml",
],
"installable": True,
"development_status": "Production/Stable",
"maintainers": ["carlosdauden"],
}
135 changes: 135 additions & 0 deletions contract_price_revision/i18n/contract_price_revision.pot
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_price_revision
#
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_price_revision
#: model_terms:ir.ui.view,arch_db:contract_price_revision.contract_line_duplicate_wizard_view
msgid "Apply"
msgstr ""

#. module: contract_price_revision
#: model_terms:ir.ui.view,arch_db:contract_price_revision.contract_line_duplicate_wizard_view
msgid "Cancel"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,help:contract_price_revision.field_contract_line__never_revise_price
msgid "Check this if you don't want to allow price revision."
msgstr ""

#. module: contract_price_revision
#: model:ir.model,name:contract_price_revision.model_contract_line
msgid "Contract Line"
msgstr ""

#. module: contract_price_revision
#: model:ir.actions.act_window,name:contract_price_revision.contract_line_duplicate_wizard_action
msgid "Create revision of contract lines"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__create_uid
msgid "Created by"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__create_date
msgid "Created on"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__date_end
msgid "Date End"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__date_start
msgid "Date Start"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__display_name
msgid "Display Name"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__fixed_price
msgid "Fixed Price"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__id
msgid "ID"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard____last_update
msgid "Last Modified on"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__write_uid
msgid "Last Updated by"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__write_date
msgid "Last Updated on"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_line__never_revise_price
msgid "Never Revise Price"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_line__previous_price
msgid "Previous price"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_line__price_can_be_revised
msgid "Price Can Be Revised"
msgstr ""

#. module: contract_price_revision
#: model_terms:ir.ui.view,arch_db:contract_price_revision.contract_line_duplicate_wizard_view
msgid ""
"Set new start date and variation percent to duplicate.\n"
" This process set start date previous day as end date of\n"
" origin record.\n"
" <br/>\n"
" <br/>"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,help:contract_price_revision.field_contract_line__price_can_be_revised
msgid "Technical field in order to know if the line price can be revised."
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_line__variation_percent
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__variation_percent
msgid "Variation %"
msgstr ""

#. module: contract_price_revision
#: model:ir.model.fields,field_description:contract_price_revision.field_contract_price_revision_wizard__variation_type
msgid "Variation Type"
msgstr ""

#. module: contract_price_revision
#: model:ir.model,name:contract_price_revision.model_contract_price_revision_wizard
msgid "Wizard to update price based on percentage variation"
msgstr ""
Loading
Loading