pingen.com integration
pingen · OCA/report-print-send
Health
62/100
fair
-
Security10/251 grave, 3 minor
-
Activity12/25Last human commit 17 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 6 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.27 MB
Module directory on disk
Code analysis
4 migration notes
4 models
5 views
3 HTTP endpoints
Security warnings
res.company— Adds credential fields (pingen_webhook_secret) with no `groups=` to 'res.company', which every user (portal/public included) can read under core's access rights: they can read them over RPC. Restrict the fields with `groups=` (e.g. base.group_system). CWE-200. acl-public-read-secret
Found by automated static analysis: these patterns are usually risky, but only a manual review of the module can confirm a real issue. Methodology
Migration considerations
PingenDocument— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceir_cron_push_pingen— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. (2 occurrences in this file) migration-cron-numbercall · sourceview_pingen_document_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. migration-view-attrs-states · sourceview_pingen_document_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
Dependencies
- Odoo dependencies
- Python dependencies
- oauthlib, requests_oauthlib
- System dependencies
- None
- Required by
- pingen_env
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.inherit | res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
view_attachment_form |
ir.attachment.pingen.view | ir.attachment | form | Inherits base.view_attachment_form |
view_pingen_document_form |
pingen.document.form | pingen.document | form | New |
view_pingen_document_search |
pingen.document.search | pingen.document | search | New |
view_pingen_document_tree |
pingen.document.tree | pingen.document | tree | New |
HTTP endpoints 3
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/pingen/letter_issues |
PingenController.letter_issues |
none | http | POST | csrf off |
/pingen/sent_letters |
PingenController.sent_letters |
none | http | POST | csrf off |
/pingen/undeliverable_letters |
PingenController.undeliverable_letters |
none | http | POST | csrf off |
Models touched 4
New fields (2)
-
pingen_document_idsOne2many → pingen.documentreadonly=Truestring='Pingen Document' args: 'pingen.document', 'attachment_id' -
send_to_pingenBooleanargs: 'Send to Pingen.com'
-
create(self, vals)@api.model -
write(self, vals)
New fields (17)
-
attachment_idMany2one → ir.attachmentondelete='cascade'readonly=Truerequired=True args: 'ir.attachment', 'Document' -
auto_sendBooleandefault=Truehelp='Defines if a document is merely uploaded or also sent' -
company_idMany2onerelated='attachment_id.company_id' -
costFloatreadonly=True -
country_idMany2one → res.countryreadonly=True args: 'res.country', 'Country' -
currency_idMany2one → res.currencyreadonly=True args: 'res.currency', 'Currency' -
delivery_productSelectiondefault='cheap' args: [('fast', 'fast'), ('cheap', 'cheap'), ('bulk', 'bulk'), ('track', 'track'), ('sign', 'sign'), ('atpost_economy', 'atpost_economy'), ('atpost_priority', 'atpost_priority'), ('postag_a', 'postag_a'), ('postag_b', 'postag_b'), ('postag_b2', 'postag_b2'), ('postag_registered', 'postag_registered'), ('postag_aplus', 'postag_aplus'), ('dpag_standard', 'dpag_standard'), ('dpag_economy', 'dpag_economy'), ('indpost_mail', 'indpost_mail'), ('indpost_speedmail', 'indpost_speedmail'), ('nlpost_priority', 'nlpost_priority'), ('dhl_priority', 'dhl_priority')], 'Delivery product' -
last_error_messageTextreadonly=True args: 'Error Message' -
pagesIntegerreadonly=True -
parsed_addressTextreadonly=True -
pingen_statusCharreadonly=True -
pingen_uuidCharreadonly=True -
print_modeSelectiondefault='simplex' args: [('simplex', 'Simplex'), ('duplex', 'Duplex')], 'Print mode' -
print_spectrumSelectiondefault='grayscale' args: [('grayscale', 'Grayscale'), ('color', 'Color')] -
push_dateDatetimereadonly=True -
send_dateDatetimereadonly=True args: 'Date of sending' -
stateSelectiondefault='pending'readonly=Truerequired=True args: [('pending', 'Pending'), ('pushed', 'Pushed'), ('sendcenter', 'In Sendcenter'), ('sent', 'Sent'), ('error_undeliverable', 'Undeliverable'), ('error', 'Connection Error'), ('pingen_error', 'Pingen Error'), ('canceled', 'Canceled')]
-
ask_pingen_send(self)For a document already pushed to pingen, ask to send it. Wrapper method for multiple ids (when triggered from button for instance) for public interface. -
push_to_pingen(self)Push a document to pingen.com Convert errors to osv.except_osv to be handled by the client. Wrapper method for multiple ids (when triggered from button for instance) for public interface. -
resolve_error(self)A document as resolved, put in the correct state -
update_post_infos(self)Update the informations from pingen of a document in the Sendcenter Wrapper method for multiple ids (when triggered from button for instance) for public interface.
New fields (6)
-
pingen_client_secretidCharsize=80 -
pingen_clientidCharsize=20 -
pingen_organizationCharargs: 'Pingen organization ID' -
pingen_ssl_verifyBooleandefault=True -
pingen_stagingBoolean -
pingen_webhook_secretChar
No public methods.
New fields (6)
-
pingen_client_secretidCharreadonly=Falserelated='company_id.pingen_client_secretid'string='Pingen Client Secret ID' -
pingen_clientidCharreadonly=Falserelated='company_id.pingen_clientid'string='Pingen Client ID' -
pingen_organizationCharreadonly=Falserelated='company_id.pingen_organization'string='Pingen organization' -
pingen_ssl_verifyBooleanreadonly=Falserelated='company_id.pingen_ssl_verify'string='Pingen SSL Verification' -
pingen_stagingBooleanreadonly=Falserelated='company_id.pingen_staging'string='Pingen Staging' -
pingen_webhook_secretCharreadonly=Falserelated='company_id.pingen_webhook_secret'string='Pingen webhook secret'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…