Romania - Account ANAF Sync
l10n_ro_account_anaf_sync · OCA/l10n-romania
Health
71/100
fair
-
Security19/252 minor findings
-
Activity12/25Last human commit 22 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 4 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
2.21 MB
Module directory on disk
Code analysis
2 migration notes
3 models
4 views
2 HTTP endpoints
Migration considerations
AccountANAFSync— Since 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceview_l10n_ro_account_anaf_sync_tree— 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
This module will make posible to send e-invoice / e-transport to Romanian goverment anaf.ro.
To use this module you must have a digital signature usb token from Romania connected with a ANAF account.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
redirect_anaf |
redirect_anaf | ir.ui.view | qweb | New |
res_config_settings_view_form |
res.config.settings.view.form.inherit | res.config.settings | form | Inherits l10n_ro_config.res_config_settings_view_form |
view_l10n_ro_account_anaf_sync_form |
l10n.ro.account.anaf.sync.form | l10n.ro.account.anaf.sync | form | New |
view_l10n_ro_account_anaf_sync_tree |
l10n.ro.account.anaf.sync.tree | l10n.ro.account.anaf.sync | tree | New |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/l10n_ro_account_anaf_sync/anaf_oauth/<int:anaf_config_id> |
AccountANAFSyncWeb.get_anaf_oauth_code |
public | http | ALL | csrf off sudo website |
/l10n_ro_account_anaf_sync/redirect_anaf/<int:anaf_config_id> |
AccountANAFSyncWeb.redirect_anaf |
user | http | ALL | csrf off sudo website |
Models touched 3
New fields (13)
-
access_tokenCharhelp='Received from ANAF'tracking=1 -
anaf_callback_urlCharcompute='_compute_anaf_callback_url'help='This is the address to set in anaf_portal_url (and will work if is https & accessible form internet)' -
anaf_oauth_urlChardefault='https://logincert.anaf.ro/anaf-oauth2/v1' -
anaf_scope_idsOne2many → l10n.ro.account.anaf.sync.scopecomodel_name='l10n.ro.account.anaf.sync.scope'inverse_name='anaf_sync_id' -
client_idCharhelp='From ANAF site the Oauth id - view the readme'tracking=1 -
client_secretCharhelp='From ANAF site the Oauth id - view the readme'tracking=1 -
client_token_valabilityDatehelp='Date when is going to expire - 90 days from when was generated'tracking=1 -
codeCharhelp='Received from ANAF with this you can take access token and refresh_token'tracking=1 -
company_idMany2one → res.companyrequired=True args: 'res.company' -
last_request_datetimeDatetimehelp='Time when was last time pressed the Get Token From Anaf Website. It waits for ANAF request for maximum 1 minute' -
refresh_tokenCharhelp='Received from ANAF'tracking=1 -
response_secretCharhelp='A generated secret to know that the response is ok' -
stateSelectiondefault='test' args: [('test', 'Test'), ('automatic', 'Automatic')]
-
get_token_from_anaf_website(self) -
handle_anaf_callback(self, authorization_code) -
name_get(self) -
refresh_access_token(self) -
revoke_access_token(self) -
test_anaf_api(self) -
write(self, values)
New fields (7)
-
anaf_sync_idMany2one → l10n.ro.account.anaf.syncargs: 'l10n.ro.account.anaf.sync' -
anaf_sync_production_urlCharstring='API production URL' -
anaf_sync_test_urlCharstring='API test URL' -
anaf_sync_urlCharcompute='_compute_anaf_sync_url' -
company_idMany2onerelated='anaf_sync_id.company_id'store=True -
scopeSelectionargs: [] -
stateSelectiondefault='test' args: [('test', 'Test'), ('production', 'Production')]
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…