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

[14.0][MIG] agreement_rebate: Migration to 14.0 #1017

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8b5c71c
agreement_rebate: New module to manage agreement rebate sales
sergio-teruel May 13, 2020
96a57e6
agreement_rebate: Add active fields in settlements TT34871
carlosdauden Mar 7, 2022
5ec69d6
Add partner_id as deafult _settlement_line_break_fields
sergio-teruel Mar 9, 2022
d3c1544
Add partner_id to settlement lines tree view
sergio-teruel Mar 9, 2022
5a23c5b
agreement_rebate: Set partner_id to settlement lines
sergio-teruel Mar 9, 2022
9502dc7
agreement_rebate: Improvements
carlosdauden Apr 21, 2022
b39eaff
Update agreement_rebate.pot
Jun 18, 2022
a45e52e
agreement_rebate 13.0.1.0.1
OCA-git-bot Jun 18, 2022
5e27d5c
agreement_rebate: black, isort
sergio-teruel Nov 1, 2022
ef56e60
agreement_rebate: Migration to v15.0
sergio-teruel Nov 1, 2022
7220d51
Update agreement_rebate.pot
Dec 16, 2022
aff44ad
README.rst
OCA-git-bot Dec 16, 2022
83442f6
Update translation files
weblate Dec 16, 2022
ad07bd3
agreement: Change menus structure to make it easy to adapt
Jan 26, 2023
ecba1e6
Update agreement_rebate.pot
Jan 26, 2023
c88bc70
agreement_rebate 15.0.1.1.0
OCA-git-bot Jan 26, 2023
c8ec9a3
Update translation files
weblate Jan 26, 2023
71343a5
Translated using Weblate (Spanish)
Ivorra78 Jul 20, 2023
c786423
README.rst
OCA-git-bot Sep 3, 2023
a5c6152
[MIG] agreement_rebate: Migration to 14.0
Latour12 Nov 3, 2023
eff2384
[REM] account_invoice_refund_link: remove account_invoice_refund_link…
Latour12 Nov 4, 2023
93c66de
[FIX] agreement_rebat: fix missed menuitem agreement_setting_menu
Latour12 Nov 4, 2023
21fbdae
[IMP] agreement_rebate: black, isort, prettier
Latour12 Nov 4, 2023
14d54e1
[FIX] agreement_rebate: fix wrong spelling menuitem external ID
Latour12 Nov 4, 2023
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
135 changes: 135 additions & 0 deletions agreement_rebate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
================
Agreement Rebate
================

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

.. |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/14.0/agreement_rebate
:alt: OCA/contract
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_rebate
: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=14.0
:alt: Try me on Runboat

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

This module extends the functionality of agreement module to allow define
rebate conditions.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module you need to:

#. Go to a *Agreements > agreement*.
#. Create an agreement of type *Rebate agreement for sale*.
#. Set a rappel type.

Basic global rappel discount

.. image:: https://raw.githubusercontent.com/OCA/contract/14.0/agreement_rebate/static/img/agreement_discount_global.png
:width: 80 %
:align: center

Basic rappel discount by line items

.. image:: https://raw.githubusercontent.com/OCA/contract/14.0/agreement_rebate/static/img/agreement_discount_line.png
:width: 80 %
:align: center

Section rappel discount rule match

.. image:: https://raw.githubusercontent.com/OCA/contract/14.0/agreement_rebate/static/img/agreement_discount_section_rule_match.png
:width: 80 %
:align: center

Calculate the discount in each amount section

.. image:: https://raw.githubusercontent.com/OCA/contract/14.0/agreement_rebate/static/img/agreement_discount_section.png
:width: 80 %
:align: center

#. Create any rebate lines to apply this agreement.

Add a product template filter to apply this agreement

.. image:: https://raw.githubusercontent.com/OCA/contract/14.0/agreement_rebate/static/img/agreement_rebate_lines_filter.png
:width: 80 %
:align: center

#. Do some invoices of products included in any rebate agreement
#. Create rebate settlements from *Agreements > Settlements > Create Settlements*
wizard

.. image:: https://raw.githubusercontent.com/OCA/contract/14.0/agreement_rebate/static/img/create_settlements_wizard.png
:width: 80 %
:align: center

#. Create rappel invoices from *Agreements > Settlements > Create Invoices* wizard

.. image:: https://raw.githubusercontent.com/OCA/contract/14.0/agreement_rebate/static/img/create_settlement_invoices.png
:width: 80 %
:align: center

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:%20agreement_rebate%0Aversion:%2014.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
~~~~~~~

* Tecnativa

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

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

* Carlos Dauden <[email protected]>
* Sergio Teruel <[email protected]>

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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions agreement_rebate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
from . import wizards
28 changes: 28 additions & 0 deletions agreement_rebate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2020 Tecnativa - Carlos Dauden
# Copyright 2020 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Agreement Rebate",
"summary": "Rebate in agreements",
"version": "14.0.1.0.0",
"development_status": "Beta",
"category": "Agreement",
"website": "https://github.com/OCA/contract",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["account", "account_invoice_refund_link", "agreement"],
"data": [
"data/agreement_rebate_data.xml",
"security/agreement_rebate_security.xml",
"security/ir.model.access.csv",
"views/agreement_condition_view.xml",
"views/agreement_view.xml",
"views/agreement_rebate_settlement_view.xml",
"views/agreement_type.xml",
"wizards/invoice_create_views.xml",
"wizards/settlement_create_views.xml",
"views/agreement_menu_view.xml",
],
}
19 changes: 19 additions & 0 deletions agreement_rebate/data/agreement_rebate_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<record id="agreement_rebate_settlement_sequence" model="ir.sequence">
<field name="name">Agreement rebate settlement</field>
<field name="code">agreement.rebate.settlement</field>
<field eval="4" name="padding" />
<field name="prefix">ARS</field>
</record>
<record id="agreement_type_rebate_sale" model="agreement.type">
<field name="name">Rebate agreements for sales</field>
<field name="is_rebate">True</field>
<field name="domain">sale</field>
</record>
<record id="agreement_type_rebate_purchase" model="agreement.type">
<field name="name">Rebate agreements for purchases</field>
<field name="is_rebate">True</field>
<field name="domain">purchase</field>
</record>
</odoo>
Loading