Skip to content

Commit

Permalink
Merge PR #1105 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 28, 2024
2 parents 7e5d672 + 7e5917b commit 337d5c5
Show file tree
Hide file tree
Showing 20 changed files with 1,220 additions and 0 deletions.
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/17.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-17-0/contract-17-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=17.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:%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
-------

* 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/17.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": "17.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"],
"data": [
"security/ir.model.access.csv",
"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

0 comments on commit 337d5c5

Please sign in to comment.