Skip to main content

Agrupa las líneas de la tasa GENCI por albarán

Project description

Odoo Community Association

Tasa Genci agrupada por albarán

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

This module acts as a bridge between l10n_es_genci_account and account_invoice_report_grouped_by_picking.

In the base GENCI module, contribution lines are generated at invoice level, without considering stock pickings. As a result, when using reports grouped by picking, GENCI lines are not properly distributed and may appear without a picking reference.

This module enhances that behavior by:

Assigning the corresponding genci_rule_id to generated GENCI invoice lines. Distributing GENCI lines across pickings based on the quantities delivered per picking. Ensuring compatibility with the grouped invoice report provided by account_invoice_report_grouped_by_picking.

The implementation is intentionally kept in a separate module to avoid adding a direct dependency in the core GENCI module and to keep responsibilities well separated.

Table of contents

Known issues / Roadmap

Known issues

It has been identified that when a delivery is returned and a customer invoice is generated (standard invoice, not a refund), the GENCI line associated with the returned product is displayed with a positive amount, whereas it should be negative.

This issue does not occur in credit notes (out_refund), where the behavior is correct.

The root cause is that the module account_invoice_report_grouped_by_picking applies a sign correction when grouping invoice lines by picking. This logic is implemented in the method lines_grouped_by_picking, where quantities are adjusted using an internal sign computation together with _get_signed_quantity_done().

Reference: https://github.com/OCA/account-invoice-reporting/blob/9a1c954f9b220fc90b507e2d8c52f83618c2797d/account_invoice_report_grouped_by_picking/models/account_move.py#L65

Possible solution

A possible solution would be to introduce a small helper method in this module to replicate the sign logic used in the original implementation, and apply it when computing GENCI quantities (e.g. in _get_genci_qty_by_picking_rule).

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_l10n_es_genci_account_grouped_by_picking-16.0.1.0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_l10n_es_genci_account_grouped_by_picking-16.0.1.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58211236a2957a356c70454686834632fb899af0a380fea0a1ca53199ae9029d
MD5 d0ed0eb317551003d1c6c73486a6b789
BLAKE2b-256 6889a476d3d4895b8b158ed1dbe0178ce95ef9b26ccf1f4bb6c5feca0e47929c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page