Portugal InvoiceXpress Legal Transport Documents
l10n_pt_stock_invoicexpress · OCA/l10n-portugal
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
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
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_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
-
invoicexpress_delivery_template_idMany2one → mail.templatedefault=<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'
-
create_multi(self, vals_list)@api.model -
write(self, vals)
-
invoicexpress_delivery_template_idMany2onereadonly=Falserelated='company_id.invoicexpress_delivery_template_id'
No public methods.
No new fields.
Public methods (0)No public methods.
-
l10npt_has_tax_exempt_linesBooleancompute='_compute_l10npt_has_tax_exempt_lines' -
l10npt_vat_exempt_reasonMany2one → account.l10n_pt.vat.exempt.reasoncompute='_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=Falsestore=Truestring='VAT Exempt Reason' args: 'account.l10n_pt.vat.exempt.reason'
No public methods.
-
l10npt_invoicexpress_tax_idMany2one → account.taxcompute='_compute_l10npt_invoicexpress_tax_id'help='Tax used for the InvoiceXpress transport document line.'string='InvoiceXpress Tax' args: 'account.tax'
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 delivery document to be created by InvoiceXpress.'readonly=Falsestore=Truestring='InvX Doc Type' args: [('transport', 'Guia de Transporte / Transport'), ('shipping', 'Guia de Remessa / Shipping'), ('devolution', 'Devolução / Return')] -
invoicexpress_idCharcopy=Falsereadonly=True args: 'InvoiceXpress ID' -
invoicexpress_numberCharcopy=Falsereadonly=True args: 'InvoiceXpress Number' -
invoicexpress_permalinkCharcopy=Falsereadonly=True args: 'InvoiceXpress Doc Link' -
invoicexpress_send_emailBooleancompute='_compute_invoicexpress_send_email'copy=Falsehelp="If unchecked, both the InvoiceXpress email and the Delivery email won't be sent."readonly=Falsestore=True args: 'InvX Send Email' -
invoicexpress_transport_dateDatetimecopy=Falsehelp='Date for the InvoiceXpress transport document. If not set, the shipping date will be used.'string='InvX Transport Document Date' -
l10npt_has_tax_exempt_linesBooleancompute='_compute_l10npt_has_tax_exempt_lines' -
l10npt_transport_doc_due_dateDatecompute='_compute_l10npt_transport_doc_due_date'readonly=Falsestore=True args: 'Transport Doc. Validity' -
l10npt_vat_exempt_reasonMany2one → account.l10n_pt.vat.exempt.reasoncompute='_compute_l10npt_vat_exempt_reason'help='VAT exemption reason to send to InvoiceXpress when the transport document contains exempt items.'readonly=Falsestore=Truestring='VAT Exempt Reason' args: 'account.l10n_pt.vat.exempt.reason' -
license_plateChar
-
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
-
invoicexpress_doc_typeSelectionhelp='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_uomBooleandefault=Falsehelp='If checked, the Unit of Measure will be included in the line descriptions sent to InvoiceXpress.'string='Include UoM in Descriptions'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…