Odoo Community Association

Tasa Genci

Beta License: AGPL-3 sygel-technology/sy-l10n-spain

This module integrates the GENCI system into Odoo accounting, automatically applying the GENCI environmental rate on invoice lines where applicable.

Table of contents

Installation

To install this module, you need to:

  • Only install

Configuration

To configure this module, you need to:

  1. Enable GENCI for the company:
    • Go to Settings → Users & Companies → Companies.
    • Select the desired company.
    • In the GENCI tab, check Enable GENCI.
    • Save the changes.

This enables the GENCI functionality for all invoices of that company and makes GENCI-specific configurations available elsewhere in the system.

  1. Create GENCI Rules:
    • Material type (metal, plastic, etc.).
    • Usage type (commercial or industrial).
    • Container capacity (1L, 5L, etc.).
    • Rate amount (price per unit, excluding taxes).
    • Validity period (start/end date).
    • Rule name will be used as invoice line description.
  2. Configure Products:
    • “Subject to GENCI” = Yes.
    • Link GENCI rule on Genci Tab.
  3. Configure Partners:
    • GENCI Subject checked by default.
    • Uncheck if not applicable.
  4. Fiscal Positions:
    • GENCI Subject checkbox controls inclusion.
  5. Invoice Header Field: “Is GENCI”:
    • Default depends on partner config.
    • If unchecked, GENCI lines removed even if products apply.

Usage

Usage Flow

  1. Create invoice.
  2. Add products with GENCI rules.
  3. If all conditions met (partner, fiscal pos, rule, date, etc.) → GENCI line(s) auto-added.

Application Logic

  • One GENCI line per distinct rule.
  • Uses generated product: “Tasa GENCI (R.D. 1055/2022)”.
  • Line description comes from rule name.
  • Amount = Unit Rate × Total Quantity across matching products.

Error Handling

  • If “Is GENCI” is checked and no rule applies → Warning is shown.

Known issues / Roadmap

Pending Features:

  • Multi-company: Confirm whether GENCI rules should support multi-company logic, and ensure each rule is linked to its respective company with coherent application logic.
  • Currency: Validate whether GENCI rules can be configured in different currencies or only in euros.
  • Supplier association: Determine if each GENCI rule should be linked to a specific supplier, and consider if multiple rules could exist for the same product depending on the supplier.
  • Product GENCI flag type: Consider changing the genci_subject field on product.template from a selection (yes/no) to a Boolean is_genci field for simplicity and consistency in the code.

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

  • Sygel

Contributors

  • Sygel:
    • Ángel Rivas
    • Valentín Vinagre
    • Harald Panten

Maintainers

This module is part of the sygel-technology/sy-l10n-spain project on GitHub.

You are welcome to contribute.