-
-
Notifications
You must be signed in to change notification settings - Fork 210
[20.0][MIG] currency_rate_update: Migration to 20.0 #238
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
Open
Mimbex
wants to merge
158
commits into
OCA:20.0
Choose a base branch
from
Mimbex:20.0-mig-currency_rate_update
base: 20.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
158 commits
Select commit
Hold shift + click to select a range
1fb722d
[ADD] First commit of the first financial modules to move in our new …
jgrandguillaume d0c5fc8
[MRG] Form trunk
yvaucher 11facc1
[MRG] currency_rate_update fix
acb5320
[FIX] currency_rate_update - missing dependency on account
yvaucher 83c458d
[FIX] change c2c_currency_rate_update to currency_rate_update for sec…
vrenaville c9633a4
[MRG] from stable
ddd7fe8
[MRG] merge from trunk
vrenaville d7320f7
[FIX] currency rate update
vrenaville 4320ad3
[MRG] Form trunk
yvaucher ccea4d1
[MRG] from 6.0 branch
3d5fdec
[FIX] currency rate update search base on name instead of code
vrenaville 8ec8520
[FIX] currency_rate_update - missing dependency on account
yvaucher ef608c2
[TYPO] Uniformize author in Camptocamp modules
jgrandguillaume 02de32b
[MRG] from 6.1 c2c-financial-addons
9157c20
[FIX] contributors
yvaucher d5a02e2
[MRG] from tunk 6.1
nbessi 24a2f97
[MRG] from upstream
f3c85fb
[FIX] Merge from c2c-financial-addons 6.0. Port of account_financial_…
87f6cf1
[FIX] removed unused imports
e278a86
[MIGR] set installable to False on all the modules, the flag has to b…
guewen 16e1fa0
[CHG] changed icon of module currency_rate_update
maxime-c2c f8efa64
[FIX] currency_rate_update views
eLBati 3b22fdc
[IMP] remove +x rights on files
yvaucher b89fc25
[FIX] imports
jbaudoux cee9892
Launchpad automatic translations update.
2d7f94f
Added option to use Banxico for update USD - MXN exchange rates
agb80 c0bb250
[IMP] Make base currency based on currency maked as base and not rela…
1aa4692
[ADD] Currency rate updates from Bank Of Canada
ddico 5bb2669
FIX replace print for orm.except_orm
f8c5681
Launchpad automatic translations update.
4f5f5e1
Set all addons to uninstallable
nbessi 07497e1
currency_rate_update: fix wrong use of timetuple.
8eee490
[FIX] PEP8
eLBati 3884038
[IMP] fix pylint errors
sbidoul 0ec7859
Minor fix on Banxico Updates
agb80 0ca7202
[FIX] pylint relative imports
sbidoul 3fc61a9
[MIG] currency_rate_update: Migration to 8.0
feketemihai 5f5fe47
Update strings.
feketemihai f29e736
initial german translation (mostly)
rschnapka 041e3bc
Add license key in __openerp__.py
yvaucher bfe5b95
[FIX] Add EUR currency option to ECB service when base currency != EUR
pjmcdermott 8d39ec2
Small fix on description
dreispt ec21d4b
Add record rule for currency.rate.update.service
alexis-via 8fb69af
Fixed the Yahoo service URL. Last time the previous URL worked was on…
mlaitinen 8388263
[IMP] Port to V9
vrenaville 78378eb
Fix contributors, short license headers and copyrights
yvaucher af64e9d
[REF] currency_rate_update: refactoring related to PR #318
katyukha a45b00d
[MIG] currency_rate_update: Migrated to 10.0
nikiwaibel 0a83bdb
[FIX+IMP] currency_rate_update: Several things:
alexis-via a841c5e
OCA Transbot updated translations from Transifex
oca-transbot a8ba111
migrated currency_rate_update to 11.0
jesusVMayor 5c15f6f
[FIX+IMP] currency_rate_update: fix tests + introduce compatibility w…
JordiBForgeFlow 678364c
Update res.config view to show auto_currency_up field and label.
ebdb536
OCA Transbot updated translations from Transifex
oca-transbot 5fa7db1
[FIX] currency_rate_update: Update error with multiple companies (#15)
8bec95e
Update view, odoo compatibility.
f5e6020
[10.0] currency_rate_update: more robust cron execution (#724)
793f947
[MIG] currency_rate_update: Migration to 12.0
alexey-pelykh 422c955
[IMP] currency_rate_update: allow access company properties
alexey-pelykh 641a098
[IMP] currency_rate_update: log errors
alexey-pelykh 2b53000
[IMP] currency_rate_update: test coverage
alexey-pelykh 12b0515
[IMP] currency_rate_update: enhance formatting
alexey-pelykh a501ee1
[UPD] Update currency_rate_update.pot
oca-travis 4d0d8d4
[IMP] currency_rate_update: tests to succeed on non-banking days
alexey-pelykh ec2e948
[IMP] currency_rate_update: use last_successful_run
alexey-pelykh fe4b037
Update translation files
oca-transbot 7a2dddb
[UPD] Update currency_rate_update.pot
oca-travis 0398f79
[ADD] Migration scripts to v12
MiquelRForgeFlow b0b3258
Update translation files
oca-transbot 1f6760f
[FIX] currency_rate_update: no data on weekends
alexey-pelykh f5a5e1a
currency_rate_update 12.0.1.1.2
OCA-git-bot 0602a14
Update translation files
oca-transbot 28c6b03
Update translation files
oca-transbot 5660062
Update translation files
oca-transbot 32e0507
Translated using Weblate (Croatian)
badbole de8bfdc
Translated using Weblate (Spanish)
Galoperd 41caccb
Translated using Weblate (Croatian)
badbole cde7a49
[12.0][IMP] currency_rate_update for non EUR companies
Martronic-SA 1f9f375
Update translation files
oca-transbot 7dc74c3
[IMP] currency_rate_update: black, isort
feketemihai bb3a353
[MIG] [13.0] Migrate currency_rate_update to 13.0
feketemihai aeb7288
pre-commit update
OCA-git-bot bbddce6
Update translation files
oca-transbot f58d359
[FIX] currency_rate_update: catch any exception
alexey-pelykh 34c92e5
currency_rate_update 13.0.1.0.1
OCA-git-bot fa9745a
Update translation files
oca-transbot fc5bf49
[IMP] res_currency_rate_provider: makes currency_ids required for a b…
HaraldPanten 8d1be73
[FIX] currency_rate_update: Migration to 13.0
alexey-pelykh 837baa1
currency_rate_update 13.0.1.0.2
OCA-git-bot 606fd76
Update translation files
oca-transbot e26a9bc
[MIG] currency_rate_update: Migration to 14.0
feketemihai ceb6204
[MIG] currency_rate_update: Migration to 15.0
tupaq 0fc3478
Translated using Weblate (Spanish (Argentina))
ibuioli b885f5e
[FIX] currency_rate_update: Add noupdate=1 to cron record.
victoralmau 2a7d095
[FIX] currency_rate_update: Set the correct default value in the comp…
victoralmau 023825b
[FIX] currency_rate_update: Prevent last_successful_run update if all…
victoralmau d84483a
[FIX] currency_rate_update: Change ECB close time to 19 according to …
victoralmau bee74a8
currency_rate_update 15.0.1.1.0
OCA-git-bot 81496d6
[MIG] currency_rate_update: Migration to 16.0
AEstLo 4dc4d75
currency_rate_update: add logs to help understand and debug
alexis-via 201ef91
[IMP] Removing en.po file for pre-commit.
AEstLo df59aad
Update translation files
weblate cdf614c
[FIX] currency_rate_update
AungKoKoLin1997 9ceb06a
[IMP] currency_rate_update: Do not call the _schedule_next_run() meth…
victoralmau e95f633
currency_rate_update 16.0.1.0.1
OCA-git-bot 6330f87
currency_rate_update 16.0.1.0.2
OCA-git-bot 4f27656
[FIX] currency_rate_update
kanda999 476a383
currency_rate_update 16.0.1.1.0
OCA-git-bot 19b98f5
Update translation files
weblate 3ba76c5
currency_rate_update: fix bad strings
alexis-via 618c325
currency_rate_update 16.0.1.1.1
OCA-git-bot 1982102
Update translation files
weblate fe23868
Translated using Weblate (Italian)
francesco-ooops 058f2a3
Translated using Weblate (Spanish)
Gelo-fl 0b495ac
Translated using Weblate (Italian)
francesco-ooops c7e63ee
[FIX] currency_rate_update: Fix CWE-611 (#178)
abhinavvaidya-tsd db15b5e
currency_rate_update 16.0.1.1.2
OCA-git-bot 753293a
Update translation files
weblate c38a847
Translated using Weblate (Spanish)
Ivorra78 e443079
Translated using Weblate (Italian)
francesco-ooops ec92779
Translated using Weblate (Spanish)
Ivorra78 24bf0fe
Update translation files
weblate d7a5e00
Translated using Weblate (French)
6a933fb
Translated using Weblate (Dutch)
ThijsvOers 0794333
Translated using Weblate (Chinese (Simplified) (zh_CN))
GoodERPJeff 7abb1e6
[IMP] currency_rate_update: pre-commit auto fixes
quoc-pn 00e382f
[MIG] currency_rate_update: Migration to 17.0
quoc-pn e1ff11a
Update translation files
weblate a026aeb
Translated using Weblate (Italian)
mymage a2cb9ad
[IMP] pre-commit fixes
alexey-pelykh 6101e6b
Translated using Weblate (Swedish)
jakobkrabbe f65803f
Translated using Weblate (Italian)
mymage a56ab77
Update translation files
weblate 2d42316
Translated using Weblate (Italian)
mymage bd4de15
Translated using Weblate (Spanish (Argentina))
ibuioli 3248ea1
[IMP] currency_rate_update: Remove DeprecationWarning: XML declaratio…
victoralmau cbe4523
[IMP] currency_rate_update: pre-commit auto fixes
tupaq bffe0e9
[MIG] currency_rate_update: Migration to 18.0
tupaq 2068acc
[IMP] currency_rate_update: improve wizard usability
alexis-via 762926a
Translated using Weblate (Turkish)
bo-eska 068fd08
Translated using Weblate (Latvian)
myacc-pro 16205b6
Update translation files
weblate 39a1f00
Translated using Weblate (Latvian)
myacc-pro b4e2214
Translated using Weblate (Italian)
mymage 8eb8f7e
Translated using Weblate (Latvian)
myacc-pro da01dd4
Translated using Weblate (Russian)
myacc-pro a5f3871
[IMP] currency_rate_update: pre-commit auto fixes
tupaq 10c2bd3
[MIG] currency_rate_update: Migration to 19.0
tupaq 7c82b0b
[UPD] Update currency_rate_update.pot
6b279b0
[BOT] post-merge updates
OCA-git-bot 2b97ba6
Translated using Weblate (Slovenian)
sysadminmatmoz d92afcb
Translated using Weblate (Slovenian)
sysadminmatmoz f1ef4e3
[UPD] Update currency_rate_update.pot
0d343bc
Update translation files
weblate 6a76bd1
Translated using Weblate (Italian)
mymage 9ecd6f4
Translated using Weblate (Slovenian)
sysadminmatmoz f10d554
[IMP] currency_rate_update: pre-commit auto fixes
Mimbex 4c52d48
[MIG] currency_rate_update: Migration to 20.0
Mimbex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,147 @@ | ||
| .. image:: https://odoo-community.org/readme-banner-image | ||
| :target: https://odoo-community.org/get-involved?utm_source=readme | ||
| :alt: Odoo Community Association | ||
|
|
||
| ==================== | ||
| Currency Rate Update | ||
| ==================== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:82b2ae5c16dfa83ad89d725eec5e3637f9ad862807aeac419ea962bdab8f37da | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |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/license-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%2Fcurrency-lightgray.png?logo=github | ||
| :target: https://github.com/OCA/currency/tree/20.0/currency_rate_update | ||
| :alt: OCA/currency | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/currency-20-0/currency-20-0-currency_rate_update | ||
| :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/currency&target_branch=20.0 | ||
| :alt: Try me on Runboat | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This module provides base for building exchange rates providers and | ||
| bundles following built-in providers: | ||
|
|
||
| - **European Central Bank** (ported by Grzegorz Grzelak - | ||
| OpenGLOBE.pl): reference rates are based on the regular daily query | ||
| procedure between central banks within and outside the European | ||
| System of Central Banks, which normally takes place at 2:15 p.m. | ||
| (14:15) ECB time. Source is in EUR, for more details see | ||
| `corresponding ECB | ||
| page <https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html>`__. | ||
|
|
||
| This module is compatible with ``currency_rate_inverted`` module | ||
| provided by OCA, that allows to maintain exchange rates in inverted | ||
| format, helping to resolve rounding issues. | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Configuration | ||
| ============= | ||
|
|
||
| To enable scheduled currency rates update: | ||
|
|
||
| # Go to *Invoicing > Configuration > Settings* # Ensure *Automatic | ||
| Currency Rates (OCA)* is checked | ||
|
|
||
| To configure currency rates providers: | ||
|
|
||
| # Go to *Invoicing > Configuration > Currency Rates Providers* # Create | ||
| and configure one or more providers | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| To update historical currency rates: | ||
|
|
||
| # Go to *Invoicing > Configuration > Currency Rates Providers* # Select | ||
| specific providers # Launch *Actions > Update Rates Wizard* # Configure | ||
| date interval and click *Update* | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/currency/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/currency/issues/new?body=module:%20currency_rate_update%0Aversion:%2020.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 | ||
| ------- | ||
|
|
||
| * Camptocamp | ||
| * CorporateHub | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| - Nicolas Bessi <nicolas.bessi@camptocamp.com> | ||
| - Jean-Baptiste Aubort <jean-baptiste.aubort@camptocamp.com> | ||
| - Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com> | ||
| - Grzegorz Grzelak <grzegorz.grzelak@openglobe.pl> (ECB, NBP) | ||
| - Vincent Renaville <vincent.renaville@camptocamp.com> | ||
| - Yannick Vaucher <yannick.vaucher@camptocamp.com> | ||
| - Guewen Baconnier <guewen.baconnier@camptocamp.com> | ||
| - Lorenzo Battistini <lorenzo.battistini@agilebg.com> (Port to V7) | ||
| - Agustin Cruz <openpyme.mx> (BdM) | ||
| - Jacque-Etienne Baudoux <je@bcim.be> | ||
| - Juan Jose Scarafia <jjscarafia@paintballrosario.com.ar> | ||
| - Mathieu Benoi <mathben963@gmail.com> | ||
| - Fekete Mihai <feketemihai@gmail.com> (Port to V8) | ||
| - Dorin Hongu <dhongu@gmail.com> (BNR) | ||
| - Paul McDermott | ||
| - Alexis de Lattre <alexis@via.ecp.fr> | ||
| - Miku Laitinen | ||
| - Assem Bayahi | ||
| - Daniel Dico <ddico@oerp.ca> (BOC) | ||
| - Dmytro Katyukha <firemage.dima@gmail.com> | ||
| - Jesús Ventosinos Mayor <jesus@comunitea.com> | ||
| - `CorporateHub <https://corporatehub.eu/>`__ | ||
|
|
||
| - Alexey Pelykh <alexey.pelykh@corphub.eu> | ||
|
|
||
| - `Quartile Limited <https://www.quartile.co/>`__: | ||
|
|
||
| - Tatsuki Kanda <kanda@quartile.co> | ||
|
|
||
| - `Komit Company Limited <https://komit-consulting.com/>`__: | ||
|
|
||
| - Quoc Pham Ngoc <quoc-pn@komit-consulting.com> | ||
|
|
||
| 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/currency <https://github.com/OCA/currency/tree/20.0/currency_rate_update>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
|
||
| from . import models | ||
| from . import wizards |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Copyright 2008-2016 Camptocamp | ||
| # Copyright 2019 Brainbean Apps (https://brainbeanapps.com) | ||
| # Copyright 2020 CorporateHub (https://corporatehub.eu) | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
|
||
| { | ||
| "name": "Currency Rate Update", | ||
| "version": "20.0.1.0.0", | ||
| "author": "Camptocamp, CorporateHub, Odoo Community Association (OCA)", | ||
| "website": "https://github.com/OCA/currency", | ||
| "license": "AGPL-3", | ||
| "category": "Financial Management/Configuration", | ||
| "summary": "Update exchange rates using OCA modules", | ||
| "depends": ["base", "mail", "account"], | ||
| "data": [ | ||
| "data/cron.xml", | ||
| "security/ir.access.csv", | ||
| "wizards/res_currency_rate_update_wizard.xml", | ||
| "views/res_currency_rate.xml", | ||
| "views/res_currency_rate_provider.xml", | ||
| "views/res_config_settings.xml", | ||
| ], | ||
| "installable": True, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0" encoding="UTF-8" ?> | ||
| <!-- | ||
| Copyright 2019 Brainbean Apps (https://brainbeanapps.com) | ||
| License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
| --> | ||
| <odoo noupdate="1"> | ||
| <record id="ir_cron_currency_rates_update_every_day" model="ir.cron"> | ||
| <field name="name">Currency Rates Update (OCA) daily</field> | ||
| <field name="interval_number" eval="1" /> | ||
| <field name="interval_type">days</field> | ||
| <field name="state">code</field> | ||
| <field name="nextcall">2019-01-01 00:01:00</field> | ||
| <field | ||
| name="model_id" | ||
| ref="currency_rate_update.model_res_currency_rate_provider" | ||
| /> | ||
| <field name="code">model._scheduled_update()</field> | ||
| </record> | ||
| </odoo> | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a pre-commit commit "autofixes"; I'm not sure if the script did that or if you did.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are completely right. I ran pre-commit directly on the imported branch and split the autofixes into a dedicated
[IMP] currency_rate_update: pre-commit auto fixescommit right before the[MIG] currency_rate_update: Migration to 20.0commit, exactly as specified in the OCA migration workflow. Thank you for pointing that out!