Repository
OCA/l10n-brazil · module folder · Try on Runboat
Module version
1.1.0
Category
Uncategorized
Folder size
0.03 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-brazil
Last tracking update
2026-08-07 08:42:50
Authors
Odoo Community Association (OCA), Escodoo
Maintainers
Odoo Community Association (OCA), Escodoo
Committers
OCA-git-bot, oca-ci, CristianoMafraJunior, Cristiano Mafra Junior
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (0)

No models found for this module.

Loading…

Loading…