Skip to content
Health
62/100
fair
  • Security10/25
    1 grave, 3 minor
  • Activity12/25
    Last human commit 17 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 6 Odoo series since 6.1

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Description

Dependencies

Odoo dependencies
odoo/odoo:
- web
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 IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
/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_ids One2many → pingen.document
    readonly=True string='Pingen Document' args: 'pingen.document', 'attachment_id'
  • send_to_pingen Boolean
    args: 'Send to Pingen.com'
Public methods (2)
  • create(self, vals)
    @api.model
  • write(self, vals)

New fields (17)
  • attachment_id Many2one → ir.attachment
    ondelete='cascade' readonly=True required=True args: 'ir.attachment', 'Document'
  • auto_send Boolean
    default=True help='Defines if a document is merely uploaded or also sent'
  • company_id Many2one
    related='attachment_id.company_id'
  • cost Float
    readonly=True
  • country_id Many2one → res.country
    readonly=True args: 'res.country', 'Country'
  • currency_id Many2one → res.currency
    readonly=True args: 'res.currency', 'Currency'
  • delivery_product Selection
    default='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_message Text
    readonly=True args: 'Error Message'
  • pages Integer
    readonly=True
  • parsed_address Text
    readonly=True
  • pingen_status Char
    readonly=True
  • pingen_uuid Char
    readonly=True
  • print_mode Selection
    default='simplex' args: [('simplex', 'Simplex'), ('duplex', 'Duplex')], 'Print mode'
  • print_spectrum Selection
    default='grayscale' args: [('grayscale', 'Grayscale'), ('color', 'Color')]
  • push_date Datetime
    readonly=True
  • send_date Datetime
    readonly=True args: 'Date of sending'
  • state Selection
    default='pending' readonly=True required=True args: [('pending', 'Pending'), ('pushed', 'Pushed'), ('sendcenter', 'In Sendcenter'), ('sent', 'Sent'), ('error_undeliverable', 'Undeliverable'), ('error', 'Connection Error'), ('pingen_error', 'Pingen Error'), ('canceled', 'Canceled')]
Public methods (4)
  • 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_secretid Char
    size=80
  • pingen_clientid Char
    size=20
  • pingen_organization Char
    args: 'Pingen organization ID'
  • pingen_ssl_verify Boolean
    default=True
  • pingen_staging Boolean
  • pingen_webhook_secret Char
Public methods (0)

No public methods.

New fields (6)
  • pingen_client_secretid Char
    readonly=False related='company_id.pingen_client_secretid' string='Pingen Client Secret ID'
  • pingen_clientid Char
    readonly=False related='company_id.pingen_clientid' string='Pingen Client ID'
  • pingen_organization Char
    readonly=False related='company_id.pingen_organization' string='Pingen organization'
  • pingen_ssl_verify Boolean
    readonly=False related='company_id.pingen_ssl_verify' string='Pingen SSL Verification'
  • pingen_staging Boolean
    readonly=False related='company_id.pingen_staging' string='Pingen Staging'
  • pingen_webhook_secret Char
    readonly=False related='company_id.pingen_webhook_secret' string='Pingen webhook secret'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…