Portugal InvoiceXpress Integration
l10n_pt_account_invoicexpress · OCA/l10n-portugal
-
Security10/251 grave, 0 minor
-
Activity25/25Last human commit 3 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Security warnings
res.company— Adds credential fields (invoicexpress_api_key) 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
Description
Generate Portuguese tax authority legal Invoices ("Faturas") using InvoiceXpress.
InvoiceXpress is a paid service. Visit https://invoicexpress.com for more details.
Once the InvoiceXpress connection is configured, the invoice CONFIRM button automatically generates the InvoiceXpress invoice.
If the InvoiceXpress Invoice email template is configured, the InvoiceXpress service will also send the invoice by email, using the details in Odoo configured email template.
This replaces the Odoo SEND & PRINT button, since only the InvoiceXpress generated document should be used. Having other print layouts for the invoice is not allowed by the Portuguese Tax Authority.
Legal transport documents ("Guias de Transporte" e "Guias de Remessa) are also supported through an extension module. For this please ensure that "l10n_pt_stock_invoicexpress" is installed.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_compnay_form_invoicexpress |
InvoiceXpress Company Configuration | res.company | form | Inherits base.view_company_form |
res_config_settings_view_form |
res.config.settings.view.form.invoicexpress | res.config.settings | form | Inherits account.res_config_settings_view_form |
view_account_journal_form |
Journal Form: add Invoicexpress | account.journal | form | Inherits account.view_account_journal_form |
view_account_move_form |
account.move.form | account.move | form | Inherits account.view_move_form |
view_account_tax_form |
account.tax.form | account.tax | form | Inherits account.view_tax_form |
view_partner_form_invoicexpress |
res.partner.form.invoicexpress | res.partner | form | Inherits account.view_partner_property_form |
view_res_country_form |
Country: add InvoiceXpress name | res.country | form | Inherits base.view_country_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 9
No new fields.
Public methods (1)-
call(self, company, endpoint, verb='GET', headers=None, params=None, payload=None, raise_errors=True)
-
invoicexpress_doc_typeSelectionhelp='Select the type of legal invoice document to be created by InvoiceXpress.' args: [('invoice', 'Invoice'), ('invoice_receipt', 'Invoices Receipt'), ('simplified_invoice', 'Simplified Invoice'), ('none', 'No InvoiceXpress document')] -
use_invoicexpressBooleancompute='_compute_use_invoicexpress'help='Invoicexpress service is only used if checked. Only relevant for Sales journals.'
No public methods.
-
can_invoicexpressBooleancompute='_compute_can_invoicexpress' -
can_invoicexpress_emailBooleancompute='_compute_can_invoicexpress_email' -
invoicexpress_doc_typeSelectioncompute='_compute_invoicexpress_doc_type'copy=Falsehelp='Select the type of legal invoice document to be created by InvoiceXpress. If unset, InvoiceXpress will not be used.'readonly=Falsestore=True args: [('invoice', 'Invoice'), ('invoice_receipt', 'Invoice and Receipt'), ('simplified_invoice', 'Simplified Invoice'), ('vat_moss_invoice', 'Europe VAT MOSS Invoice'), ('vat_moss_credit_note', 'Europe VAT MOSS Credit Note'), ('debit_note', 'Debit Note'), ('credit_note', 'Credit Note')] -
invoicexpress_idCharcopy=Falsereadonly=True args: 'InvoiceXpress ID' -
invoicexpress_permalinkCharcopy=Falsereadonly=True args: 'InvoiceXpress Doc Link' -
journal_typeSelectionreadonly=Truerelated='journal_id.type'string='Journal Type'
-
action_create_invoicexpress_invoice(self) -
action_send_invoicexpress_email(self, ignore_no_config=False)
No new fields.
Public methods (0)No public methods.
-
invoicexpress_idCharcopy=Falsereadonly=True args: 'InvoiceXpress ID'
-
action_invoicexpress_tax_create(self)
-
has_invoicexpressBooleancompute='_compute_has_invoicexpress'help='Easy to use indicator if InvoiceXpress is enabled and can be used' -
invoicexpress_account_nameCharstring='InvoiceXpress Account Name' -
invoicexpress_api_keyCharstring='InvoiceXpress API Key' -
invoicexpress_template_idMany2one → mail.templatedefault=<expr>domain="[('model', '=', 'account.move')]"help='Used to generate the To, Cc, Subject and Body for the email sent by the InvoiceXpress service' args: 'mail.template', 'InvoiceXpress Email Template'
No public methods.
-
invoicexpress_account_nameCharreadonly=Falserelated='company_id.invoicexpress_account_name' -
invoicexpress_api_keyCharreadonly=Falserelated='company_id.invoicexpress_api_key' -
invoicexpress_template_idMany2onereadonly=Falserelated='company_id.invoicexpress_template_id'
No public methods.
-
invoicexpress_nameChar
No public methods.
-
invoicexpress_codeCharcompany_dependent=Truecopy=Falsehelp='Company-specific identifier used for this partner in InvoiceXpress.' args: 'InvoiceXpress Code' -
invoicexpress_idCharcopy=Falsehelp='Deprecated: will be removed in future versions'readonly=True args: 'InvoiceXpress ID'
-
set_invoicexpress_contact(self, company=False)
Loading…
Loading…
Loading…
Loading…
Loading…