Adyen for Platforms
adyen_platforms · odoo/odoo
Health
50/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 65 months ago
-
Required by20/252 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
2.41 MB
Module directory on disk
Code analysis
4 migration notes
8 models
8 views
1 HTTP endpoint
Migration considerations
AdyenAccount— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceadyen_account_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (4 occurrences in this file) migration-view-attrs-states · sourceadyen_sync_cron— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourceadyen_transaction_view_list— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Base Module for Adyen for Platforms, used in eCommerce and PoS
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- payment_odoo_by_adyen, pos_adyen
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
adyen_account_view_form |
adyen.account.view.form | adyen.account | form | New |
adyen_bank_account_view_form |
adyen.bank.account.view.form | adyen.bank.account | form | New |
adyen_payout_view_form |
adyen.payout.view.form | adyen.payout | form | New |
adyen_shareholder_view_form |
adyen.shareholder.view.form | adyen.shareholder | form | New |
adyen_transaction_view_form |
adyen.transaction.view.form | adyen.transaction | form | New |
adyen_transaction_view_list |
adyen.transaction.view.list | adyen.transaction | tree | New |
assets_backend |
Adyen for Platforms Backend Assets | ir.ui.view | qweb | Inherits web.assets_backend |
kyc_status_message |
kyc_status_message | ir.ui.view | qweb | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/adyen_platforms/create_account |
AdyenPlatformsController.adyen_platforms_create_account |
user | http | ALL | website |
Models touched 8
New fields (23)
-
account_holder_codeChardefault=<expr> args: 'Account Holder Code' -
adyen_uuidCharargs: 'Adyen UUID' -
bank_account_idsOne2many → adyen.bank.accountstring='Bank Accounts' args: 'adyen.bank.account', 'adyen_account_id' -
company_idMany2one → res.companydefault=<expr> args: 'res.company' -
date_of_birthDateargs: 'Date of birth' -
document_numberCharhelp='The type of ID Number required depends on the country:\nUS: Social Security Number (9 digits or last 4 digits)\nCanada: Social Insurance Number\nItaly: Codice fiscale\nAustralia: Document Number' args: 'ID Number' -
document_typeSelectiondefault='ID'selection=[('ID', 'ID'), ('PASSPORT', 'Passport'), ('VISA', 'Visa'), ('DRIVINGLICENSE', 'Driving license')]string='Document Type' -
doing_business_asCharargs: 'Doing Business As' -
emailCharrequired=True args: 'Email' -
first_nameCharargs: 'First Name' -
full_nameCharcompute='_compute_full_name' -
is_businessBooleanrequired=True args: 'Is a business' -
kyc_statusSelectiondefault='pending'required=Trueselection=[('awaiting_data', 'Data to provide'), ('pending', 'Waiting for validation'), ('passed', 'Confirmed'), ('failed', 'Failed')]string='KYC Status' -
kyc_status_messageCharreadonly=True args: 'KYC Status Message' -
last_nameCharargs: 'Last Name' -
legal_business_nameCharargs: 'Legal Business Name' -
payout_idsOne2many → adyen.payoutstring='Payouts' args: 'adyen.payout', 'adyen_account_id' -
phone_numberCharrequired=True args: 'Phone Number' -
proxy_tokenCharargs: 'Proxy Token' -
registration_numberCharargs: 'Registration Number' -
shareholder_idsOne2many → adyen.shareholderstring='Shareholders' args: 'adyen.shareholder', 'adyen_account_id' -
transaction_idsOne2many → adyen.transactionstring='Transactions' args: 'adyen.transaction', 'adyen_account_id' -
transactions_countIntegercompute='_compute_transactions_count'
-
action_create_redirect(self)@api.modelAccessing the FormView to create an Adyen account needs to be done through this action. The action will redirect the user to accounts.odoo.com to link an Odoo user_id to the Adyen account. After logging in on odoo.com the user will be redirected to his DB with a token in the URL. This token is then needed to create the Adyen account. -
action_show_transactions(self) -
create(self, values)@api.model -
get_status(self, statuses)@api.model -
unlink(self) -
write(self, vals)
New fields (8)
-
cityCharrequired=True args: 'City' -
country_codeCharrelated='country_id.code' -
country_idMany2one → res.countrydomain=[('code', 'in', ADYEN_AVAILABLE_COUNTRIES)]required=Truestring='Country' args: 'res.country' -
house_number_or_nameCharrequired=True args: 'House Number Or Name' -
state_codeCharrelated='state_id.code' -
state_idMany2one → res.country.statedomain="[('country_id', '=?', country_id)]"string='State' args: 'res.country.state' -
streetCharrequired=True args: 'Street' -
zipCharrequired=True args: 'ZIP'
No public methods.
New fields (22)
-
account_numberCharargs: 'Account Number' -
account_typeSelectionselection=[('checking', 'Checking'), ('savings', 'Savings')]string='Account Type' -
adyen_account_idMany2one → adyen.accountondelete='cascade' args: 'adyen.account' -
bank_account_referenceChardefault=<expr> args: 'Reference' -
bank_account_uuidCharargs: 'UUID' -
bank_codeCharargs: 'Bank Code' -
bank_statementBinaryhelp="You need to provide a bank statement to allow payouts. The file must be a bank statement, a screenshot of your online banking environment, a letter from the bank or a cheque and must contain the logo of the bank or it's name in a unique font, the bank account details, the name of the account holder. Allowed formats: jpg, pdf, png. Maximum allowed size: 10MB." args: 'Bank Statement' -
bank_statement_filenameChar -
branch_codeCharargs: 'Branch Code' -
country_codeCharrelated='country_id.code' -
country_idMany2one → res.countrydomain=[('code', 'in', ADYEN_AVAILABLE_COUNTRIES)]required=Truestring='Country' args: 'res.country' -
currency_idMany2one → res.currencyrequired=Truestring='Currency' args: 'res.currency' -
ibanCharargs: 'IBAN' -
kyc_statusSelectiondefault='pending'required=Trueselection=[('awaiting_data', 'Data to provide'), ('pending', 'Waiting for validation'), ('passed', 'Confirmed'), ('failed', 'Failed')]string='KYC Status' -
kyc_status_messageCharreadonly=True args: 'KYC Status Message' -
owner_cityCharargs: 'Owner City' -
owner_country_idMany2one → res.countrystring='Owner Country' args: 'res.country' -
owner_house_number_or_nameCharargs: 'Owner House Number or Name' -
owner_nameCharrequired=True args: 'Owner Name' -
owner_state_idMany2one → res.country.statedomain="[('country_id', '=?', owner_country_id)]" args: 'res.country.state', 'Owner State' -
owner_streetCharargs: 'Owner Street' -
owner_zipCharargs: 'Owner ZIP'
-
create(self, values)@api.model -
unlink(self) -
write(self, vals)
New fields (5)
-
id_backBinaryhelp='Allowed formats: jpg, pdf, png. Maximum allowed size: 4MB.' args: 'Photo ID Back' -
id_back_filenameChar -
id_frontBinaryhelp='Allowed formats: jpg, pdf, png. Maximum allowed size: 4MB.' args: 'Photo ID Front' -
id_front_filenameChar -
id_typeSelectionselection=[('PASSPORT', 'Passport'), ('ID_CARD', 'ID Card'), ('DRIVING_LICENSE', 'Driving License')]string='Photo ID type'
-
write(self, vals)
New fields (7)
-
adyen_account_idMany2one → adyen.accountondelete='cascade' args: 'adyen.account' -
adyen_bank_account_idMany2one → adyen.bank.accounthelp='The bank account to which the payout is to be made. If left blank, a bank account is automatically selected'string='Bank Account' args: 'adyen.bank.account' -
codeCharargs: 'Account Code' -
nameChardefault='Default'required=True args: 'Name' -
next_scheduled_payoutDatecompute=_compute_next_scheduled_payoutstore=True args: 'Next scheduled payout' -
payout_scheduleSelectiondefault='week'required=Trueselection=[('day', 'Daily'), ('week', 'Weekly'), ('month', 'Monthly')]string='Schedule' -
transaction_idsOne2many → adyen.transactionstring='Transactions' args: 'adyen.transaction', 'adyen_payout_id'
-
create(self, values)@api.model -
send_payout_request(self, notify=True) -
unlink(self)
New fields (10)
-
adyen_account_idMany2one → adyen.accountondelete='cascade' args: 'adyen.account' -
date_of_birthDaterequired=True args: 'Date of birth' -
document_numberCharhelp='The type of ID Number required depends on the country:\nUS: Social Security Number (9 digits or last 4 digits)\nCanada: Social Insurance Number\nItaly: Codice fiscale\nAustralia: Document Number' args: 'ID Number' -
first_nameCharrequired=True args: 'First Name' -
full_nameCharcompute='_compute_full_name' -
kyc_statusSelectiondefault='pending'required=Trueselection=[('awaiting_data', 'Data to provide'), ('pending', 'Waiting for validation'), ('passed', 'Confirmed'), ('failed', 'Failed')]string='KYC Status' -
kyc_status_messageCharreadonly=True args: 'KYC Status Message' -
last_nameCharrequired=True args: 'Last Name' -
shareholder_referenceChardefault=<expr> args: 'Reference' -
shareholder_uuidCharargs: 'UUID'
-
create(self, values)@api.model -
unlink(self) -
write(self, vals)
New fields (8)
-
adyen_account_idMany2one → adyen.accountargs: 'adyen.account' -
adyen_payout_idMany2one → adyen.payoutargs: 'adyen.payout' -
amountFloatargs: 'Amount' -
currency_idMany2one → res.currencystring='Currency' args: 'res.currency' -
dateDatetimeargs: 'Date' -
descriptionCharargs: 'Description' -
referenceCharargs: 'Reference' -
statusSelectionselection=[('PendingCredit', 'Pending Credit'), ('CreditFailed', 'Credit Failed'), ('Credited', 'Credited'), ('Converted', 'Converted'), ('PendingDebit', 'Pending Debit'), ('DebitFailed', 'Debit Failed'), ('Debited', 'Debited'), ('DebitReversedReceived', 'Debit Reversed Received'), ('DebitedReversed', 'Debit Reversed'), ('ChargebackReceived', 'Chargeback Received'), ('Chargeback', 'Chargeback'), ('ChargebackReversedReceived', 'Chargeback Reversed Received'), ('ChargebackReversed', 'Chargeback Reversed'), ('Payout', 'Payout'), ('PayoutReversed', 'Payout Reversed'), ('FundTransfer', 'Fund Transfer'), ('PendingFundTransfer', 'Pending Fund Transfer'), ('ManualCorrected', 'Manual Corrected')]string='Type'
-
sync_adyen_transactions(self)@api.modelMethod called by cron to sync transactions from Adyen. Updates the status of pending transactions and create missing ones.
New fields (1)
-
adyen_account_idMany2one → adyen.accountreadonly=Truestring='Adyen Account' args: 'adyen.account'
No public methods.