Repository
OCA/l10n-brazil · module folder · Try on Runboat
Module version
4.0.0
Category
Localization
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-brazil
Last tracking update
2026-08-07 08:09:13
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Raphaël Valyi, OCA-git-bot, oca-ci, Antonio Neto, CristianoMafraJunior
Odoo dependencies
Python dependencies
astor, erpbrasil.base, email-validator, num2words, phonenumbers
System dependencies
None
Required by
l10n_br_delivery_nfe
Description
*(summary: extends the delivery module to comply with the fiscal
documents requirements)*

Esse módulo localiza o módulo *delivery* para adequar as necessidades do
Brasil. Em especial ele:

> - acrescenta informações para os Documentos Fiscais: Transportadora,
>   responsabilidade do frete, volume e peso bruto.
> - acrescenta na Transportadora o código ANTT e a lista de veículos.
> - cria um modelo simples de veículo com os campos fiscais (placa,
>   código ANTT, modelo, ano de fabricação...)
> - desativa o método *\_add_delivery_cost_to_so* da Expedição, pois o
>   frete já esta corretamente informado no pedido.
> - vale a pena notar que o rateamento do frete, seguro e outros custos
>   já esta sendo feito pelo módulo l10n_br_fiscal, tanto para notas de
>   saída como de entrada.
> - se você for emitir NF-e, você precisa do módulo
>   *l10n_br_delivery_nfe* que faz a integração deste módulo com o
>   módulo *l10n_br_nfe*.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
l10n_br_account_nfe_account_incoterms_form account.incoterms.form account.incoterms form Inherits account.account_incoterms_form
l10n_br_delivery-view_picking_withcarrier_out_form l10n_br_delivery.picking.form stock.picking form Inherits delivery.view_picking_withcarrier_out_form
l10n_br_delivery_carrier_form_view l10n_br_delivery.carrier.form delivery.carrier form Inherits delivery_carrier_partner.view_delivery_carrier_form
l10n_br_delivery_carrier_vehicle_form l10n_br_delivery.carrier.vehicle.form l10n_br_delivery.carrier.vehicle form New
l10n_br_delivery_carrier_vehicle_tree l10n_br_delivery.carrier.vehicle.tree l10n_br_delivery.carrier.vehicle tree New
l10n_br_delivery_sale_form l10n_br_delivery.sale.order.form sale.order form Inherits sale.view_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (1)
  • freight_responsibility Selection
    default='0' help='Informação usada na emissão de Documentos Fiscais' required=True selection=MODFRETE_TRANSP string='Frete por Conta'
Public methods (0)

No public methods.

New fields (2)
  • antt_code Char
    size=32 string='Codigo ANTT'
  • vehicle_ids One2many → l10n_br_delivery.carrier.vehicle
    comodel_name='l10n_br_delivery.carrier.vehicle' inverse_name='carrier_id' string='Vehicles'
Public methods (0)

No public methods.

New fields (13)
  • active Boolean
  • carrier_id Many2one → delivery.carrier
    comodel_name='delivery.carrier' index=True ondelete='cascade' string='Carrier'
  • city_id Many2one → res.city
    comodel_name='res.city' domain="[('state_id', '=', state_id)]" string='City'
  • country_id Many2one → res.country
    comodel_name='res.country' string='Country'
  • description Char
    size=132 unaccent=False
  • driver Char
    size=64 unaccent=False
  • manufacture_year Char
    size=4 string='Ano de Fabricação'
  • model_year Char
    size=4 string='Ano do Modelo'
  • name Char
    required=True size=32 unaccent=False
  • plate Char
    size=7 string='Placa'
  • rntc_code Char
    size=32 string='ANTT Code'
  • state_id Many2one → res.country.state
    comodel_name='res.country.state' domain="[('country_id', '=', country_id)]" string='State'
  • type Selection
    selection=[('bau', 'Caminhão Baú')] string='Model Type'
Public methods (0)

No public methods.

New fields (2)
  • carrier_id Many2one → delivery.carrier
    comodel_name='delivery.carrier' ondelete='restrict' string='Carrier'
  • incoterm_id Many2one → account.incoterms
    comodel_name='account.incoterms' help='International Commercial Terms are a series of predefined commercial terms used in international transactions.' string='Incoterm'
Public methods (0)

No public methods.

New fields (3)
  • amount_gross_weight Float
    compute='_compute_amount_gross_weight'
  • amount_volume Float
    compute='_compute_amount_volume'
  • incoterm_id Many2one
    related='incoterm'
Public methods (1)
  • set_delivery_line(self, carrier, amount)

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
25 days ago
Last activity
21 days ago
Repository
OCA/l10n-brazil
Pull request
[18.0][MIG] l10n_br_delivery (#4774)