Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a5e9d5f
sales order unit test foundation
t-900-a May 8, 2021
8f53a4c
formatting corrections
t-900-a May 9, 2021
7b615a1
added sales order unit tests
t-900-a May 17, 2021
cabf71c
flake8 / black formatting
t-900-a May 17, 2021
59983c6
flake8 / black formatting
t-900-a May 17, 2021
5ab337b
flake8 / black formatting
t-900-a May 17, 2021
941f488
flake8 / black formatting
t-900-a May 17, 2021
2048465
flake8 / black formatting
t-900-a May 17, 2021
024a8fb
initial point of sale code
t-900-a Jun 13, 2021
a2c4c5c
security fix - payment token reuse
t-900-a Jun 13, 2021
d66a914
Fixes internal server error on unavailable rpc
bosd Jun 6, 2022
f036e05
rename to payment_monero
bosd Jun 6, 2022
9188a69
rename to pos_payment_monero
bosd Jun 6, 2022
45ceb3c
add base_monero
bosd Jun 6, 2022
fe8c5a1
Set development status to Alpha
bosd Jun 6, 2022
19242c3
imp documentation of automatic currency rate update
bosd Jun 7, 2022
2e54340
Remove unused imports
bosd Jun 7, 2022
1e94195
Update Readme.md Fixup Travis
bosd Jun 9, 2022
5083e6d
Update README.md
bosd Jun 9, 2022
0777506
Fixes internal server error on unavailable rpc
bosd Jun 6, 2022
e3c9d26
rename to payment_monero
bosd Jun 6, 2022
7da86b1
rename to pos_payment_monero
bosd Jun 6, 2022
7d38113
add base_monero
bosd Jun 6, 2022
e6b532d
Set development status to Alpha
bosd Jun 6, 2022
a714176
imp documentation of automatic currency rate update
bosd Jun 7, 2022
576daab
Remove unused imports
bosd Jun 7, 2022
c609516
Update Readme.md Fixup Travis
bosd Jun 9, 2022
4f236b5
Update README.md
bosd Jun 9, 2022
2abd57c
Merge branch '14.0' of github.com:bosd/moneroodoo into 14.0
bosd Mar 13, 2024
3bb3562
[IMP][FIX] payment_monero: Fix, Autoset Payment Icon, and fix checkou…
bosd Mar 16, 2024
4add2d0
Fixup Rename
bosd Mar 17, 2024
41ceb86
[IMP] Adopt translation method
bosd Mar 17, 2024
6c5d06a
[IMP] add mising license keys
bosd Mar 17, 2024
fe87a10
[FIX] file permissions
bosd Mar 17, 2024
b388f3d
[IMP] Migrate views, demo, data and prettier
bosd Mar 17, 2024
0969a64
[FIX] payment_monero: Fix urllib3 import
bosd Mar 17, 2024
a23703a
[FIX] pos_payment_monero: missing import
bosd Mar 17, 2024
854ad53
[IMP] base_monero: add demo data
bosd Mar 17, 2024
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
Empty file modified .codeclimate.yml
100755 → 100644
Empty file.
Empty file modified .gitignore
100755 → 100644
Empty file.
Empty file modified .pre-commit-config.yaml
100755 → 100644
Empty file.
Empty file modified .travis.yml
100755 → 100644
Empty file.
Empty file modified CONTRIBUTING.md
100755 → 100644
Empty file.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ Available addons
----------------
| addon | version | summary |
|---|---|---|
| [monero-rpc-odoo](monero-rpc-odoo/) | 14.0.1.0.2 | Accept Monero Payment via a Wallet RPC |
| [base_monero](base_monero/) | 14.0.1.0.0 | Integrate the Monero Currency in the accounting of odoo |
| [payment_monero](payment_monero/) | 14.0.1.0.0 | Accept Monero Payment in E-commerce via a Wallet RPC |
| [pos_payment_monero](pos_payment_monero/) | 14.0.1.0.0 | Accept Monero Payment in Point of Sale via a Wallet RPC |
84 changes: 84 additions & 0 deletions base_monero/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
Base Monero
=========================


[![Build Status](https://api.travis-ci.com/t-900-a/moneroodoo.svg?branch=main)](https://travis-ci.com/t-900-a/moneroodoo)
[![codecov](https://codecov.io/gh/t-900-a/moneroodoo/branch/main/graph/badge.svg?token=10S5GGNRHH)](https://codecov.io/gh/t-900-a/moneroodoo)

This module defines the Monero Currency.
It acts as a base for the other integration modules.
It sets the decimal precision to 12 digits. Depends on the oca module account_cryptocurrency to integrate monero in the accounting of odoo.

Configuration
=============


* Monero - This quickstart guide can guide you through the configuration of Monero specific
components. https://monero-python.readthedocs.io/en/latest/quickstart.html
* monerod
* https://www.getmonero.org/resources/moneropedia/daemon.html
* Download: https://www.getmonero.org/downloads/#cli
* monero-wallet-rpc
* Use a view-key on the server
* https://www.getmonero.org/resources/developer-guides/wallet-rpc.html
* Download: https://www.getmonero.org/downloads/#cli
* Odoo - Add-ons are installed by adding the specific module folder to the add-ons
directory (restart
required)
* account_cryptocurrency
* https://github.com/OCA/currency/
* monero-rpc-odoo
* https://github.com/monero-integrations/moneroodoo
* The Monero payment acquirer is configured similar to other payment acquirers
* https://www.odoo.com/documentation/user/14.0/general/payment_acquirers/payment_acquirers.html#configuration
* Currency rate
* You can enter the currency rate manually for Monero.
* https://www.odoo.com/documentation/user/14.0/accounting/others/multicurrencies/how_it_works.html
* Or use any of the currency rate update apps of odoo. (See Helping modules)
* Pricelist
* A pricelist should be created specifically for Monero
* https://www.odoo.com/documentation/user/14.0/website/publish/multi_website.html#pricelists



Usage
=====

* Go to accounting/Configuration/Currencies. The Monero currency is added to the list and can be activated/deactivated.
* On the accounting Dashboard a new journal is created for the Monero Currency.

Helping modules
=====
* Automatic update the currency rates between fiat and crypto
* currency_rate_update_cmc
* https://github.com/OCA/currency/
* Inverse method for converting currencies
* currency_rate_inverted
* https://github.com/OCA/currency/


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

Bugs are tracked on [GitHub Issues](https://github.com/monero-integrations/moneroodoo/issues).
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
[feedback](https://github.com/monero-integrations/moneroodoo/issues/new?body=module:%20monero-rpc-odoo%0Aversion:%14.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**)?

Credits
=======

Contributors

* T-900 <https://github.com/t-900-a>
* bosd <https://github.com/bosd>

Maintainers

This module is maintained by Monero-Integrations.
![Monero-Integrations](/monero-rpc-odoo/static/src/img/monero-integrations.png)


This module is part of the [monero-integrations/moneroodoo](https://github.com/monero-integrations/moneroodoo) project on GitHub.

You are welcome to contribute. To learn how please visit the [Monero Taiga](https://taiga.getmonero.org/project/t-900-monero-x-odoo-integrations/).
File renamed without changes.
29 changes: 29 additions & 0 deletions base_monero/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Monero Base",
"summary": "Integrate Monero Currency in Odoo",
"author": "Monero Integrations",
"website": "https://monerointegrations.com/",
# Categories can be used to filter modules in modules listing
# for the full list
"category": "Accounting",
"version": "14.0.1.0.0",
"development_status": "Alpha",
# any module necessary for this one to work correctly
"depends": [
"account_cryptocurrency",
],
# "external_dependencies": {"python": ["monero"]},
# always loaded
"data": [
"data/res_currency_data.xml",
],
# only loaded in demonstration mode
# TODO add demo data
"demo": [
"demo/demo.xml",
],
"installable": True,
"application": True,
"classifiers": ["License :: OSI Approved :: MIT License"],
"license": "Other OSI approved licence", # MIT
}
14 changes: 6 additions & 8 deletions monero-rpc-odoo/data/currency.xml → base_monero/data/res_currency_data.xml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!--XMR Currency Record-->
<record id="currency_xmr" model="res.currency">
<record id="XMR" model="res.currency">
<field name="name">XMR</field>
<field name="currency_unit_label">Monero</field>
<field name="currency_subunit_label">Atomic Units</field>
<field name="display_name">Monero</field>
<field name="symbol">ɱ</field>
<field name="position">after</field>
<field name="active">True</field>
<!-- Monero has 12 decimal places, but Odoo only allows up to 6 -->
<field name="decimal_places">6</field>
<field name="rounding">0.000001</field>
<field name="decimal_places">12</field>
<field name="rounding">0.000000000001</field>
</record>
</data>
</odoo>
13 changes: 13 additions & 0 deletions base_monero/demo/demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<odoo>
<record model="product.pricelist" id="list_xmr">
<field name="name">Monero Demo</field>
<field name="sequence">3</field>
<field name="currency_id" ref="base_monero.XMR" />
</record>
<record id="monero_items" model="product.pricelist.item">
<field name="pricelist_id" ref="list_xmr" />
<field name="compute_price">formula</field>
<field name="base">list_price</field>
<field name="price_discount">2</field>
</record>
</odoo>
Empty file modified dev-requirements.txt
100755 → 100644
Empty file.
17 changes: 0 additions & 17 deletions monero-rpc-odoo-pos/data/currency.xml

This file was deleted.

30 changes: 0 additions & 30 deletions monero-rpc-odoo-pos/views/pos_payment_method_form.xml

This file was deleted.

52 changes: 0 additions & 52 deletions monero-rpc-odoo/data/monero_xmr_payment_acquirer.xml

This file was deleted.

8 changes: 0 additions & 8 deletions monero-rpc-odoo/data/payment_icon_data.xml

This file was deleted.

5 changes: 0 additions & 5 deletions monero-rpc-odoo/models/__init__.py

This file was deleted.

22 changes: 0 additions & 22 deletions monero-rpc-odoo/views/monero_acquirer_form.xml

This file was deleted.

1 change: 1 addition & 0 deletions oca_dependencies.txt
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
# commit SHA to select:
# sale-workflow https://github.com/OCA/sale-workflow branchname f848e37
queue https://github.com/OCA/queue
account_cryptocurrency https://github.com/OCA/currency
File renamed without changes.
24 changes: 20 additions & 4 deletions monero-rpc-odoo/README.md → payment_monero/README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Monero Odoo
Payment Monero
=========================


[![Build Status](https://api.travis-ci.com/t-900-a/moneroodoo.svg?branch=main)](https://travis-ci.com/t-900-a/moneroodoo)
[![codecov](https://codecov.io/gh/t-900-a/moneroodoo/branch/main/graph/badge.svg?token=10S5GGNRHH)](https://codecov.io/gh/t-900-a/moneroodoo)

Allows you to accept Monero as Payment within your Odoo Ecommerce shop
This module allows you to accept Monero as Payment within your Odoo Ecommerce shop.
It depends on the base_monero module. Which defines the Monero Currency in Odoo.

Configuration
=============
Expand All @@ -24,17 +25,21 @@ components. https://monero-python.readthedocs.io/en/latest/quickstart.html
required)
* queue-job
* https://github.com/OCA/queue
* monero-rpc-odoo
* payment_monero
* https://github.com/monero-integrations/moneroodoo
* The Monero payment acquirer is configured similar to other payment acquirers
* https://www.odoo.com/documentation/user/14.0/general/payment_acquirers/payment_acquirers.html#configuration
* Currency rate
* You will need to manually add currency rate for Monero
* You can enter the currency rate manually for Monero.
* https://www.odoo.com/documentation/user/14.0/accounting/others/multicurrencies/how_it_works.html
* Or use any of the currency rate update apps of odoo. (See Helping modules)
* Pricelist
* A pricelist should be created specifically for Monero
* https://www.odoo.com/documentation/user/14.0/website/publish/multi_website.html#pricelists

To configure the Monero payment acquirer and make it available to your customers, go to Accounting ‣ Configuration ‣ Payment Acquirers, look for Monero RPC, install the module.
Set the RPC protocol, RPC Host, RPC User & Password, RPC Port,
, and activate it. To do so, open the payment acquirer and change its state from Disabled to Enabled.


Usage
Expand All @@ -43,6 +48,16 @@ Usage
* At Ecommerce checkout your customer's will be presented with the option to pay
with Monero


Helping modules
=====
* Automatic update the currency rates between fiat and crypto
* currency_rate_update_cmc
* https://github.com/OCA/currency/
* Inverse method for converting currencies
* currency_rate_inverted
* https://github.com/OCA/currency/

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

Expand All @@ -57,6 +72,7 @@ Credits
Contributors

* T-900 <https://github.com/t-900-a>
* bosd <https://github.com/bosd>

Maintainers

Expand Down
File renamed without changes.
Loading