Skip to content

Commit

Permalink
Merge pull request #67 from OCA/16.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/agreement (16.0)
  • Loading branch information
bt-admin authored Mar 4, 2025
2 parents 12fb66c + abd9989 commit d93d7e7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ addon | version | maintainers | summary
[agreement](agreement/) | 16.0.1.0.0 | [![ygol](https://github.com/ygol.png?size=30px)](https://github.com/ygol) [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Adds an agreement object
[agreement_legal](agreement_legal/) | 16.0.2.0.0 | [![max3903](https://github.com/max3903.png?size=30px)](https://github.com/max3903) [![ygol](https://github.com/ygol.png?size=30px)](https://github.com/ygol) | Manage Agreements, LOI and Contracts
[agreement_maintenance](agreement_maintenance/) | 16.0.1.0.0 | [![max3903](https://github.com/max3903.png?size=30px)](https://github.com/max3903) | Manage maintenance agreements and contracts
[agreement_rebate](agreement_rebate/) | 16.0.1.0.3 | | Rebate in agreements
[agreement_rebate](agreement_rebate/) | 16.0.1.0.4 | | Rebate in agreements
[agreement_sale](agreement_sale/) | 16.0.1.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![bealdav](https://github.com/bealdav.png?size=30px)](https://github.com/bealdav) | Agreement on sales
[agreement_serviceprofile](agreement_serviceprofile/) | 16.0.1.0.0 | [![max3903](https://github.com/max3903.png?size=30px)](https://github.com/max3903) | Adds an Agreement Service Profile object

Expand Down
2 changes: 1 addition & 1 deletion agreement_rebate/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Agreement Rebate
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dfc793748aea89ff8817253068a09ce884151aaae119d67de0b8df0e7b450c44
!! source digest: sha256:9ac3d5f06aacbc57b2dd16d09830bae70abc6a43f46e9eb9afc52e8b998ccd0a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion agreement_rebate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Agreement Rebate",
"summary": "Rebate in agreements",
"version": "16.0.1.0.3",
"version": "16.0.1.0.4",
"development_status": "Beta",
"category": "Agreement",
"website": "https://github.com/OCA/agreement",
Expand Down
2 changes: 1 addition & 1 deletion agreement_rebate/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Agreement Rebate</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dfc793748aea89ff8817253068a09ce884151aaae119d67de0b8df0e7b450c44
!! source digest: sha256:9ac3d5f06aacbc57b2dd16d09830bae70abc6a43f46e9eb9afc52e8b998ccd0a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/agreement/tree/16.0/agreement_rebate"><img alt="OCA/agreement" src="https://img.shields.io/badge/github-OCA%2Fagreement-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/agreement-16-0/agreement-16-0-agreement_rebate"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/agreement&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of agreement module to allow define
Expand Down
7 changes: 3 additions & 4 deletions agreement_rebate/tests/test_agreement_rebate.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from odoo.tests.common import Form, TransactionCase, tagged


@freeze_time("2022-02-01 09:30:00")
@tagged("-at_install", "post_install")
class TestAgreementRebate(TransactionCase):
@classmethod
Expand Down Expand Up @@ -117,9 +116,7 @@ def create_invoice(cls, partner):
move_form = Form(
cls.env["account.move"].with_context(default_move_type="out_invoice")
)
move_form.invoice_date = fields.Date.from_string(
"{}-01-01".format(fields.Date.today().year)
)
move_form.invoice_date = fields.Date.from_string("2022-01-01")
move_form.ref = "Test Customer Invoice"
move_form.partner_id = partner
products = (
Expand All @@ -142,6 +139,7 @@ def create_invoice_line(cls, invoice_form, products):
line_form.price_unit = 500.00

# Create Agreements rebates for customers for all available types
@freeze_time("2022-02-01 09:30:00")
def create_agreements_rebate(self, rebate_type, partner):
agreement = self.Agreement.create(
{
Expand Down Expand Up @@ -371,6 +369,7 @@ def _create_invoice_wizard(self):
wiz_create_invoice_form.agreement_type_ids.add(self.agreement_type)
return wiz_create_invoice_form.save()

@freeze_time("2022-02-01 09:30:00")
def test_invoice_agreements(self):
# Create some rebate settlements
agreement = self._create_agreement_product_filter("section_total")
Expand Down

0 comments on commit d93d7e7

Please sign in to comment.