Repository
OCA/l10n-portugal · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting/Localizations/EDI
Folder size
0.25 MB
License
AGPL-3
Application
No
Auto-installable
Yes
Website
https://github.com/OCA/l10n-portugal
Last tracking update
2026-08-17 11:36:00
Authors
Odoo Community Association (OCA), Open Source Integrators
Maintainers
Odoo Community Association (OCA), Open Source Integrators
Committers
Daniel Reis, OCA-git-bot, oca-ci, Devin AI
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

Views touched (4)
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_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 (5)

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 (9)
  • 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'
  • l10npt_transport_doc_due_date Date
    compute='_compute_l10npt_transport_doc_due_date' readonly=False store=True args: 'Transport Doc. Validity'
  • 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 (1)
  • 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')]
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…