Skip to content

Update LICENSE to MIT#14

Open
bosd wants to merge 1 commit intomonero-integrations:14.0from
bosd:patch-1
Open

Update LICENSE to MIT#14
bosd wants to merge 1 commit intomonero-integrations:14.0from
bosd:patch-1

Conversation

@bosd
Copy link
Copy Markdown

@bosd bosd commented Mar 17, 2024

Current Situation:
The modules are licensed according to MIT by their manifest file.
Somehow the license file in this repo contained a AGPLv3 license.

It was not clear which license was actually applicable.

This PR let's the licensfile reflect the same contents as the modules in this repo.
Thus the MIT License.

Let the licensfile reflect the same contents as the modules in this repo.
niyid added a commit to niyid/moneroodoo that referenced this pull request Mar 16, 2026
models/monero_daemon.py:
- get_daemon_status_summary: order by last_checked desc not id desc (monero-integrations#1)
- cleanup_old_records: order by last_checked desc not id desc (monero-integrations#2)

models/monero_payment.py:
- Replace hmac.new() with hmac.HMAC().hexdigest() (monero-integrations#4)

models/monero_transaction.py:
- confirmations field: store=False so value is always live from
  daemon cache, never stale after block_height is set (monero-integrations#9)

models/payment_provider.py:
- Remove duplicate inline 'import time' inside _fetch_xmr_rate (monero-integrations#12)
- Replace 1e12 float with integer 1_000_000_000_000 in piconero
  conversion (monero-integrations#13)
- Remove unused provider param from _generate_subaddress (monero-integrations#14)

controllers/main.py:
- Add missing 'import base64' — critical NameError fix (monero-integrations#15)
- Replace _verify_access_token() with _validate_order_access() for
  Odoo 18 compatibility (monero-integrations#16)
- Log swallowed exception in monero_payment_processor before
  redirecting to error page (monero-integrations#17)

tests/test_sales_order.py:
- Fix invalid state assertion: 'done'/'paid' are not valid
  monero.payment states, only 'confirmed' is (monero-integrations#20)
- Replace datetime.utcnow() with datetime.now(tz=timezone.utc) (monero-integrations#21)
- Fix MAX(payment_id) on Char field to MAX(id) on integer PK (monero-integrations#22)
- Replace warnings.warn() with proper skip pattern (monero-integrations#23)
- Add assertions to address reuse scenario (monero-integrations#24)

tests/test_payment_provider.py:
- Fix _payment_confirmed(payment, {...}) to _payment_confirmed({...})
  matching the fixed single-arg signature (#25)
- Fix _generate_subaddress(self.provider, ...) to _generate_subaddress(...)
  matching the fixed no-provider-param signature
niyid added a commit to niyid/moneroodoo that referenced this pull request Mar 16, 2026
…n documentation

models/monero_payment.py:
- amount: add IEEE 754 / sub-piconero precision warning to help text
- amount_received: same
- amount_due: same
- original_amount: same
- exchange_rate: same

All other 14 v3 review issues were already applied in the uploaded version:
- monero-integrations#1  is_confirmed store=False (non-stored dep cannot trigger stored recompute)
- monero-integrations#2  _order = 'create_date desc' (timestamp is nullable)
- monero-integrations#3  monero_payment.confirmations store=False (cross-model non-stored dep)
- monero-integrations#4  _get_status_message: provider.confirmation_threshold guarded against empty recordset
- monero-integrations#5  check_payment_status: explicit UserError when no provider configured
- monero-integrations#7  _validate_and_lock_order uses hmac.compare_digest
- monero-integrations#8  access_token forwarding documented in controller
- monero-integrations#9  comment documenting status vs state key name difference
- monero-integrations#11 payment_form_monero.js includes access_token in RPC payload
- monero-integrations#13 monero.daemon record created in test setUp for confirmation tests
- monero-integrations#14 selective env.ref mock in test_payment_confirmed_posts_message
- monero-integrations#15 unused import warnings removed from test_sales_order.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant