Brazilian Localization Account Fleet

l10n_br_account_fleet
REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/18.0/l10n_br_account_fleet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Escodoo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Escodoo
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Cristiano Mafra Junior
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account_fleet
    - fleet
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module inserts the following snippet below into the form view of
the invoice_line_ids field:

``` xml
<xpath
    expr="//field[@name='invoice_line_ids']/form/sheet/group/field[@name='account_id']"
    position="after"
>
    <field name='need_vehicle' invisible='1' />
    <field
        name='vehicle_id'
        attrs="{'required': [('need_vehicle', '=', True), ('parent.move_type', 'in', ('in_invoice', 'in_refund'))], 'column_invisible': [('parent.move_type', 'not in', ('in_invoice', 'in_refund'))]}"
    />
</xpath>
```

This implementation is necessary because, by default, invoice lines are
added directly in the tree view. However, in the case of Brazilian
localization, the inclusion of invoice lines is done through the form
view. Therefore, the account_fleet module adds the necessary fields for
integration between the accounting and fleet modules, specifically in
the tree view of the invoice_line_ids field. Additionally, this module
adds the same fields in the form view of the invoice lines. With this,
the integration between accounting and the fleet module occurs
seamlessly.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_move_form_view account.move.form (in l10n_br_account_fleet) account.move xpath Inherits account.view_move_form
Models touched (0)

No models found for this module.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/17.0/l10n_br_account_fleet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Escodoo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Escodoo
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Cristiano Mafra Junior
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:04
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account_fleet
    - fleet
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module inserts the following snippet below into the form view of
the invoice_line_ids field:

``` xml
<xpath
    expr="//field[@name='invoice_line_ids']/form/sheet/group/field[@name='account_id']"
    position="after"
>
    <field name='need_vehicle' invisible='1' />
    <field
        name='vehicle_id'
        attrs="{'required': [('need_vehicle', '=', True), ('parent.move_type', 'in', ('in_invoice', 'in_refund'))], 'column_invisible': [('parent.move_type', 'not in', ('in_invoice', 'in_refund'))]}"
    />
</xpath>
```

This implementation is necessary because, by default, invoice lines are
added directly in the tree view. However, in the case of Brazilian
localization, the inclusion of invoice lines is done through the form
view. Therefore, the account_fleet module adds the necessary fields for
integration between the accounting and fleet modules, specifically in
the tree view of the invoice_line_ids field. Additionally, this module
adds the same fields in the form view of the invoice lines. With this,
the integration between accounting and the fleet module occurs
seamlessly.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_move_form_view account.move.form (in l10n_br_account_fleet) account.move xpath Inherits account.view_move_form
Models touched (0)

No models found for this module.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_account_fleet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Escodoo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Escodoo
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Kaynnan Lemes
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:11:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account_fleet
    - fleet
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module inserts the following snippet below into the form view of
the invoice_line_ids field:

``` xml
<xpath
    expr="//field[@name='invoice_line_ids']/form/sheet/group/field[@name='account_id']"
    position="after"
>
    <field name='need_vehicle' invisible='1' />
    <field
        name='vehicle_id'
        attrs="{'required': [('need_vehicle', '=', True), ('parent.move_type', 'in', ('in_invoice', 'in_refund'))], 'column_invisible': [('parent.move_type', 'not in', ('in_invoice', 'in_refund'))]}"
    />
</xpath>
```

This implementation is necessary because, by default, invoice lines are
added directly in the tree view. However, in the case of Brazilian
localization, the inclusion of invoice lines is done through the form
view. Therefore, the account_fleet module adds the necessary fields for
integration between the accounting and fleet modules, specifically in
the tree view of the invoice_line_ids field. Additionally, this module
adds the same fields in the form view of the invoice lines. With this,
the integration between accounting and the fleet module occurs
seamlessly.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_move_form_view account.move.form (in l10n_br_account_fleet) account.move xpath Inherits account.view_move_form
Models touched (0)

No models found for this module.