Skip to main content

Tasa Genci - Compras

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

This module extends l10n_es_genci_account to integrate GENCI functionality into the Purchase workflow.

It automatically creates GENCI rate lines in purchase orders when products subject to GENCI are added, and ensures correct linkage of GENCI amounts with vendor bills.

Key Features

  • “Apply GENCI” checkbox on purchase orders to control GENCI application

  • Automatic creation of GENCI lines based on product rules and purchased quantities

  • Consolidation of multiple products sharing the same GENCI rule into a single GENCI line

  • Display of GENCI amounts on purchase order reports (when enabled in company settings)

Table of contents

Installation

To install this module, you need to:

  • Only install

Usage

Prerequisites

Before using this module, ensure that the base module ``l10n_es_genci_account`` is properly configured:

  • Company GENCI is enabled (Settings → Companies → GENCI tab)

  • GENCI rules are created with validity dates if necessary

  • Products purchased from suppliers are configured as “Subject to GENCI” with linked rules

  • Vendors have “Subject to GENCI” enabled when appropriate

For detailed configuration instructions, refer to the ``l10n_es_genci_account`` module documentation.

1. Create a Purchase Order

  1. Go to Purchase → Orders → Requests for Quotation → Create

  2. Select a vendor that has “Subject to GENCI” enabled

2. Apply GENCI Checkbox

  • The “Apply GENCI” checkbox appears in the order header (only when company GENCI is enabled)

  • If the vendor is GENCI-subject, this box should be checked to apply GENCI rules

  • If left unchecked, GENCI lines will not be created, even if products require it

3. Add Products

  • Add products that are configured as “Subject to GENCI”

  • Products must have a valid GENCI rule assigned

  • The rule’s validity dates must include the purchase order date

4. Automatic GENCI Line Creation

GENCI lines are automatically generated when:

  • You save the purchase order

  • Or you modify order lines

Behavior:

  • One GENCI line is created per distinct GENCI rule

  • Quantity = sum of all purchased quantities using that rule

  • GENCI lines appear at the bottom of the order lines

Application Logic

Conditions for GENCI Application

GENCI logic is applied only when:

  • The company has GENCI enabled

  • The “Apply GENCI” checkbox is enabled on the purchase order

  • The vendor is subject to GENCI

  • The fiscal position (if defined) allows GENCI

  • Products have valid GENCI rules for the purchase order date

If any requirement is not met, GENCI lines will not be generated.

Known issues / Roadmap

Pending Features:

  • Product GENCI flag type The genci_subject field on products is currently a selection (yes / no), inherited from l10n_es_genci_account. Once this field is migrated to a Boolean in the parent module, this module should be updated accordingly to use a Boolean flag.

  • GENCI logic reuse Purchase and Sale modules currently share very similar GENCI logic. As a future improvement or during a migration, this logic should be extracted into a shared mixin to reduce duplication and improve maintainability.

  • Units of Measure handling for GENCI calculations GENCI amounts are currently computed per purchased unit (product_qty), without applying any Unit of Measure (UoM) conversion. This is an intentional design decision, as GENCI rules are defined per product unit. If future requirements introduce UoM-dependent GENCI rules (e.g. weight or volume based), this logic should be reviewed and adapted accordingly.

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

Maintainers

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

You are welcome to contribute.

Metadata

Release files for odoo-addon-l10n-es-genci-purchase 16.0.1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-l10n-es-genci-purchase 16.0.1.1.0
File Interpreter ABI Platform
odoo_addon_l10n_es_genci_purchase-16.0.1.1.0-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_l10n_es_genci_purchase-16.0.1.1.0-py3-none-any.whl

Download URL odoo_addon_l10n_es_genci_purchase-16.0.1.1.0-py3-none-any.whl
Size 47.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee1c2f66783c8340058069acaed6f30d893c25ef7002382a93096d491b760e4b
BLAKE2b-256 checksum
How to use checksums
eb2d198819c461c3767d222e41cd47362da6f1660d5c6ecbb0ea0c76a369325d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

16.0.1.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page