Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
60 changes: 60 additions & 0 deletions purchase_invoice_currency_custom_rate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
=======================================
Purchase Invoice - Currency Custom Rate
=======================================

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

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-solvosci%2Fslv--purchase-lightgray.png?logo=github
:target: https://github.com/solvosci/slv-purchase/tree/13.0/purchase_invoice_currency_custom_rate
:alt: solvosci/slv-purchase

|badge1| |badge2| |badge3|

Allows you to send rate values from a purchase when the invoice is issued in a currency other than the primary currency.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/solvosci/slv-purchase/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/solvosci/slv-purchase/issues/new?body=module:%20purchase_invoice_currency_custom_rate%0Aversion:%2013.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
~~~~~~~

* Solvos

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

* Christian Santamaría <christian.santamaria@solvos.es>

Maintainers
~~~~~~~~~~~

This module is part of the `solvosci/slv-purchase <https://github.com/solvosci/slv-purchase/tree/13.0/purchase_invoice_currency_custom_rate>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions purchase_invoice_currency_custom_rate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions purchase_invoice_currency_custom_rate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# © 2025 Solvos Consultoría Informática (<http://www.solvos.es>)
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl-3.0.html)
{
"name": "Purchase Invoice - Currency Custom Rate",
"summary": """
Allows you to send rate values from a purchase when the invoice is issued in a currency other than the primary currency.
""",
"version": "13.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/solvosci/slv-account",
"author": "Solvos",
"license": "LGPL-3",
"depends": [
"purchase",
"account_invoice_currency_custom_rate",
],
"data": ["views/purchase_order_views.xml"],
"installable": True,
}
1 change: 1 addition & 0 deletions purchase_invoice_currency_custom_rate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import purchase_order
14 changes: 14 additions & 0 deletions purchase_invoice_currency_custom_rate/models/purchase_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# © 2025 Solvos Consultoría Informática (<http://www.solvos.es>)
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl-3.0.html)

from odoo import api, models, fields


class PurchaseOrder(models.Model):
_name = "purchase.order"
_inherit = ["purchase.order", "currency.custom.rate.mixin"]

def _prepare_invoice(self):
res = super()._prepare_invoice()
res.update(self._prepare_invoice_custom_rate_vals())
return res
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Christian Santamaría <christian.santamaria@solvos.es>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allows you to send rate values from a purchase when the invoice is issued in a currency other than the primary currency.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading