Skip to content

Commit

Permalink
[ADD] Grouped by picking invoice report customization module
Browse files Browse the repository at this point in the history
  • Loading branch information
valentincastravete committed Aug 13, 2024
1 parent 45fe76a commit 861476c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdi_grouped_by_picking/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
###############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
###############################################################################
35 changes: 35 additions & 0 deletions sdi_grouped_by_picking/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
###############################################################################
#
# Sidoo, S.L.
# Copyright (C) 2024-Today Sidoo, S.L. https://www.sdi.es/odoo-cloud/
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
{
'name': 'SDi Grouped by Picking',
'version': '11.0.1.0.0',
'summary': 'Grouped by picking customization',
'author': 'Valentín Georigan Castravete, Sidoo, S.L.',
'website': 'https://www.sdi.es/odoo-cloud/',
'license': 'AGPL-3',
'category': 'Custom',
'depends': [
'sdi_sale_pack_uom_management_nocompute',
'account_invoice_report_grouped_by_picking',
],
'data': [
'report/account_reports.xml',
],
}
11 changes: 11 additions & 0 deletions sdi_grouped_by_picking/report/account_reports.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<template id="report_invoice_document" inherit_id="account.report_invoice_document" priority="100">
<xpath expr="//td/t[@t-if='l.uom_id.factor_inv > 1']/t[@t-set='qty']" position="replace">
<t t-set="qty" t-value="lines_group['quantity']" />
</xpath>
<xpath expr="//td/span[@t-esc='lines_group['quantity']']" position="attributes">
<attribute name="t-esc">lines_group['quantity'] * l.uom_id.factor_inv</attribute>
</xpath>
</template>
</odoo>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 861476c

Please sign in to comment.