Skip to content

Commit

Permalink
Merge PR #1883 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by AaronHForgeFlow
  • Loading branch information
OCA-git-bot committed Jan 29, 2025
2 parents f05d65e + 096461d commit b31b830
Show file tree
Hide file tree
Showing 21 changed files with 1,196 additions and 0 deletions.
99 changes: 99 additions & 0 deletions account_manual_currency/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
=========================
Account - Manual Currency
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5bbf880ff529933343b086c7243401202e055b2d40f5be0264e3b76e4794ac2a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/17.0/account_manual_currency
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-17-0/account-invoicing-17-0-account_manual_currency
: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/account-invoicing&target_branch=17.0
:alt: Try me on Runboat

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

This module allows users to update the currency manually for invoices
that are still in the draft stage. It offers flexibility to companies
when calculating currency rates for invoicing.

For example, if a company makes a deal with a vendor but the actual
purchase happens on a different day, this module lets them choose
whether to use the currency rate from the accounting date or a special
rate agreed upon during the deal. This ensures accurate currency rate
calculations for invoices, even when the purchase date and deal date
differ.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, the company must have access rights for multiple
currencies.

Follow these steps to use manual currency:

1. Go to Invoicing > Create new invoice/bills.
2. If you need to change the currency to one other than the company's
default currency, you will see an option for 'Manual Currency'.
3. Check the 'Manual Currency' box to enable manual currency entry.
4. Specify the desired currency rate for the selected currency.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20account_manual_currency%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
-------

* Ecosoft

Contributors
------------

- Saran Lim. <[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/account-invoicing <https://github.com/OCA/account-invoicing/tree/17.0/account_manual_currency>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions account_manual_currency/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizard
20 changes: 20 additions & 0 deletions account_manual_currency/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2023 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Account - Manual Currency",
"version": "17.0.1.0.0",
"category": "Accounting & Finance",
"summary": "Allows to manual currency of Accounting",
"author": "Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
"license": "AGPL-3",
"depends": ["account"],
"data": [
"data/decimal_data.xml",
"views/account_move_view.xml",
"wizard/account_payment_register_views.xml",
],
"installable": True,
"maintainer": ["Saran440"],
}
7 changes: 7 additions & 0 deletions account_manual_currency/data/decimal_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="decimal_price" model="decimal.precision" forcecreate="True">
<field name="name">Manual Currency</field>
<field name="digits">12</field>
</record>
</odoo>
123 changes: 123 additions & 0 deletions account_manual_currency/i18n/account_manual_currency.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_manual_currency
#
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: account_manual_currency
#: code:addons/account_manual_currency/models/account_move.py:0
#, python-format
msgid "%(company_currency_name)s per 1 %(rate_currency_name)s"
msgstr ""

#. module: account_manual_currency
#: code:addons/account_manual_currency/models/account_move.py:0
#, python-format
msgid "%(rate_currency_name)s per 1 %(company_currency_name)s"
msgstr ""

#. module: account_manual_currency
#: model_terms:ir.ui.view,arch_db:account_manual_currency.view_move_form
msgid "<i title=\"Update Currency\" class=\"fa fa-fw fa-refresh\"/>"
msgstr ""

#. module: account_manual_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_bank_statement_line__currency_diff
#: model:ir.model.fields,field_description:account_manual_currency.field_account_move__currency_diff
#: model:ir.model.fields,field_description:account_manual_currency.field_account_payment__currency_diff
msgid "Currency Diff"
msgstr ""

#. module: account_manual_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_bank_statement_line__is_manual
#: model:ir.model.fields,field_description:account_manual_currency.field_account_move__is_manual
#: model:ir.model.fields,field_description:account_manual_currency.field_account_payment__is_manual
msgid "Is Manual"
msgstr ""

#. module: account_manual_currency
#: model:ir.model,name:account_manual_currency.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_manual_currency
#: model:ir.model,name:account_manual_currency.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_manual_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_bank_statement_line__manual_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_move__manual_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_payment__manual_currency
msgid "Manual Currency"
msgstr ""

#. module: account_manual_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_bank_statement_line__manual_currency_rate
#: model:ir.model.fields,field_description:account_manual_currency.field_account_move__manual_currency_rate
#: model:ir.model.fields,field_description:account_manual_currency.field_account_payment__manual_currency_rate
msgid "Manual Currency Rate"
msgstr ""

#. module: account_manual_currency
#: model_terms:ir.ui.view,arch_db:account_manual_currency.view_move_form
msgid "Opened"
msgstr ""

#. module: account_manual_currency
#: code:addons/account_manual_currency/models/account_move.py:0
#, python-format
msgid "Rate currency can refresh state draft only."
msgstr ""

#. module: account_manual_currency
#: model:ir.model,name:account_manual_currency.model_account_payment_register
msgid "Register Payment"
msgstr ""

#. module: account_manual_currency
#: model:ir.model.fields,help:account_manual_currency.field_account_bank_statement_line__manual_currency_rate
#: model:ir.model.fields,help:account_manual_currency.field_account_move__manual_currency_rate
#: model:ir.model.fields,help:account_manual_currency.field_account_payment__manual_currency_rate
msgid ""
"Set new currency rate to apply on the invoice\n"
".This rate will be taken in order to convert amounts between the currency on the purchase order and last currency"
msgstr ""

#. module: account_manual_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_bank_statement_line__total_company_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_move__total_company_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_payment__total_company_currency
msgid "Total Company Currency"
msgstr ""

#. module: account_manual_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_bank_statement_line__type_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_move__type_currency
#: model:ir.model.fields,field_description:account_manual_currency.field_account_payment__type_currency
msgid "Type Currency"
msgstr ""

#. module: account_manual_currency
#: code:addons/account_manual_currency/wizard/account_payment_register.py:0
#, python-format
msgid ""
"You can only register payments for moves with the same manual currency."
msgstr ""

#. module: account_manual_currency
#: code:addons/account_manual_currency/wizard/account_payment_register.py:0
#, python-format
msgid ""
"You can't register a payment for invoices belong to multiple manual currency"
" rate."
msgstr ""
3 changes: 3 additions & 0 deletions account_manual_currency/models/__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.html).

from . import account_move
Loading

0 comments on commit b31b830

Please sign in to comment.