Skip to content
Open
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
1adb69f
[ADD] contract_price_revision: new module to update contract prices e…
cubells Mar 1, 2019
ab5c934
[IMP] contract_price_revision: Improve a bit performance
pedrobaeza Mar 7, 2019
45821c4
[MIG] contract_price_revision: Migration to 12.0
carlosdauden Dec 17, 2019
eed8280
[FIX] contract_price_revision: Skip revising lines that are not valid…
astirpe Feb 14, 2020
e017562
[FIX] - fix development_status
sbejaoui Nov 13, 2020
0e3818c
[IMP] contract_price_revision: black, isort, prettier
rousseldenis Feb 14, 2021
4bbfe25
[13.0][MIG] contract_price_revision
rousseldenis Feb 14, 2021
0c44b7f
[13.0][IMP] contract_price_revision: Add fixed price revision
rousseldenis Feb 15, 2021
3889852
[13.0][FIX] contract_price_revision: Recurring next date is not well …
rousseldenis Mar 14, 2021
ee5f7ff
[13.0][FIX] contract_price_revision: Copy() does the job
rousseldenis Mar 14, 2021
bc294aa
[FIX] contract_price_revision: Use digits string instead of decimal p…
rousseldenis Aug 7, 2022
6a5c6a3
[IMP] contract_price_revision: Improve readability by adding a comput…
rousseldenis Aug 7, 2022
cce9d41
[IMP] contract_price_revision: Improve compatibility with contract ba…
rousseldenis Aug 8, 2022
a8cfe5d
[IMP] contract_price_revision: Allows to restrict price revision on s…
rousseldenis Aug 8, 2022
2d6bbdd
[IMP] contract_price_revision: pre-commit stuff
carolinafernandez-tecnativa Sep 28, 2023
d0b710e
[MIG] contract_price_revision: Migration to 15.0
carolinafernandez-tecnativa Sep 28, 2023
fcc2368
[IMP] contract_price_revision: pre-commit auto fixes
juanjosesegui-tecnativa Jul 25, 2024
6762b95
[MIG] contract_price_revision: Migration to 17.0
juanjosesegui-tecnativa Jul 25, 2024
cf0a4df
[MIG] contract_price_revision: Migration to 18.0
AlvaroRM11 Feb 28, 2025
b3dd763
[MIG] contract_price_revision: Migration to 19.0
Larsq1 Jun 9, 2026
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
115 changes: 115 additions & 0 deletions contract_price_revision/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=======================
Contract Price Revision
=======================

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

.. |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/license-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/19.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-19-0/contract-19-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=19.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:

1. Go to **Invoicing > Customers > Customer Contracts** if you are a
billing user.
2. Select as many contracts as you want to update line prices.
3. Click on Action button and execute the wizard **Create revision of
contract lines**.
4. Enter date start from which the new price will be valid and enter
date end and percentage to increase old contract lines.
5. 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.
6. When create invoices related to contracts selected, prices will be
update with the prices that are not out of date.
7. 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:%2019.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
- Juan José Seguí

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/19.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
23 changes: 23 additions & 0 deletions contract_price_revision/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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": "19.0.1.0.0",
"category": "Contract",
"author": "ACSONE SA/NV, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/contract",
"depends": ["contract_line_successor"],
"data": [
"security/ir.model.access.csv",
"views/contract_line.xml",
"wizards/contract_price_revision_views.xml",
],
"installable": True,
"development_status": "Production/Stable",
"maintainers": ["carlosdauden"],
}
131 changes: 131 additions & 0 deletions contract_price_revision/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_price_revision
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\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"

#. 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__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