Odoo Community Association

Brazilian Localization Account Fleet

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module inserts the following snippet below into the form view of the invoice_line_ids field:

<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.

Table of contents

Usage

Just install the module.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Escodoo

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

marcelsavegnago

This module is part of the OCA/l10n-brazil project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.