Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 14.0

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

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 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 0 migration notes 7 models 5 views 0 HTTP endpoints

Description

Generate Portuguese tax authority legal transport documents ("Guias de Transporte") using InvoiceXpress.

The InvoiceXpress document is automatically generated when an ougoing Transfer or Delivery Order is validated.

This feature depends on the InvoiceXpress Invoice generation feature. See https://github.com/OCA/l10n-portugal/blob/14.0/l10n_pt_account_invoicexpress/README.rst for more details.

UPDATE November/2021:

Deliveries:

  • Added support to the different document types, Transport ("Guia de Transporte") and Shipment ("Guia de Remessa"). The default document type is set on the Operation Type.
  • Changed the line description to be the Product name, instead of the original Sales Order description, so that it uses the most up to date product description.
  • Added tax details to the document lines.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

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_company_form_invoicexpress_stock InvoiceXpress Stock 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 l10n_pt_account_invoicexpress.res_config_settings_view_form
view_order_form sale.order.form sale.order form Inherits sale.view_order_form
view_stock_picking_form stock.picking.form stock.picking form Inherits stock.view_picking_form
view_stock_picking_type_form InvoiceXpress: add fields stock.picking.type form Inherits stock.view_picking_type_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (1)
  • invoicexpress_delivery_template_id Many2one → mail.template
    default=<expr> domain="[('model', '=', 'stock.picking')]" help='Used to generate the To, Cc, Subject and Body for the InvoiceXpress email sending the Delivery document.' args: 'mail.template', 'InvoiceXpress Delivery Email'
Public methods (2)
  • create_multi(self, vals_list)
    @api.model
  • write(self, vals)

New fields (1)
  • invoicexpress_delivery_template_id Many2one
    readonly=False related='company_id.invoicexpress_delivery_template_id'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • l10npt_has_tax_exempt_lines Boolean
    compute='_compute_l10npt_has_tax_exempt_lines'
  • l10npt_vat_exempt_reason Many2one → account.l10n_pt.vat.exempt.reason
    compute='_compute_l10npt_vat_exempt_reason' help='VAT exemption reason used on invoices and transport documents created from this sale order. Defaults from the sales journal.' readonly=False store=True string='VAT Exempt Reason' args: 'account.l10n_pt.vat.exempt.reason'
Public methods (0)

No public methods.

New fields (1)
  • l10npt_invoicexpress_tax_id Many2one → account.tax
    compute='_compute_l10npt_invoicexpress_tax_id' help='Tax used for the InvoiceXpress transport document line.' string='InvoiceXpress Tax' args: 'account.tax'
Public methods (0)

No public methods.

New fields (12)
  • can_invoicexpress Boolean
    compute='_compute_can_invoicexpress'
  • can_invoicexpress_email Boolean
    compute='_compute_can_invoicexpress_email'
  • invoicexpress_doc_type Selection
    compute='_compute_invoicexpress_doc_type' copy=False help='Select the type of legal delivery document to be created by InvoiceXpress.' readonly=False store=True string='InvX Doc Type' args: [('transport', 'Guia de Transporte / Transport'), ('shipping', 'Guia de Remessa / Shipping'), ('devolution', 'Devolução / Return')]
  • invoicexpress_id Char
    copy=False readonly=True args: 'InvoiceXpress ID'
  • invoicexpress_number Char
    copy=False readonly=True args: 'InvoiceXpress Number'
  • invoicexpress_permalink Char
    copy=False readonly=True args: 'InvoiceXpress Doc Link'
  • invoicexpress_send_email Boolean
    compute='_compute_invoicexpress_send_email' copy=False help="If unchecked, both the InvoiceXpress email and the Delivery email won't be sent." readonly=False store=True args: 'InvX Send Email'
  • invoicexpress_transport_date Datetime
    copy=False help='Date for the InvoiceXpress transport document. If not set, the shipping date will be used.' string='InvX Transport Document Date'
  • l10npt_has_tax_exempt_lines Boolean
    compute='_compute_l10npt_has_tax_exempt_lines'
  • l10npt_transport_doc_due_date Date
    compute='_compute_l10npt_transport_doc_due_date' readonly=False store=True args: 'Transport Doc. Validity'
  • l10npt_vat_exempt_reason Many2one → account.l10n_pt.vat.exempt.reason
    compute='_compute_l10npt_vat_exempt_reason' help='VAT exemption reason to send to InvoiceXpress when the transport document contains exempt items.' readonly=False store=True string='VAT Exempt Reason' args: 'account.l10n_pt.vat.exempt.reason'
  • license_plate Char
Public methods (3)
  • action_create_invoicexpress_delivery(self)
    Generate legal "Guia de Transporte", for customer deliveries or transfers between warehouses. We allow generating more than one for the same Odoo document.
  • action_send_invoicexpress_delivery(self, ignore_no_config=False)
  • button_validate(self)
    Automatically generate legal transport docs for PT customers

New fields (2)
  • invoicexpress_doc_type Selection
    help='Select the type of legal delivery document to be created by InvoiceXpress. If unset' args: [('transport', 'Guia de Transporte / Transport'), ('shipping', 'Guia de Remessa / Shipping'), ('none', 'No InvoiceXpress document')]
  • invoicexpress_include_uom Boolean
    default=False help='If checked, the Unit of Measure will be included in the line descriptions sent to InvoiceXpress.' string='Include UoM in Descriptions'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…