Purchase Report Hide Line

purchase_report_hide_line
REPOSITORY
REPOSITORYOCA/purchase-reporting
GIT
GIThttps://github.com/OCA/purchase-reporting.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-reporting/tree/17.0/purchase_report_hide_line
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sygel
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sygel
COMMITTERS
COMMITTERSWeblate, oca-ci, sygel
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-reporting
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows you to hide purchase order lines from the Purchase Report.

You will be able to configure which lines will be hidden by default, having 3 different options to choose:
- Don't hide any line by default
- Hide lines with quantity equal to 0
- Hide lines with price subtotal equal to 0

You will also be able to manually edit whose lines will be hidden in the purcase order form

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
purchase_order_form_hide_line purchase.order.form.hide.line purchase.order xpath Inherits purchase.purchase_order_form
report_purchaseorder_document_hide_lines report_purchaseorder_document_hide_lines ir.ui.view qweb Inherits purchase.report_purchaseorder_document
res_config_settings_view_form_purchase_report_hide_line res.config.settings.view.form.inherit.purchase.report.hide.line res.config.settings xpath Inherits purchase.res_config_settings_view_form_purchase
Models touched (3)

New fields (1)
  • hide_in_report Boolean
    compute='_compute_hide_in_report' readonly=False store=True
Public methods (0)

No public methods.

New fields (1)
  • purchase_hide_in_report_default Selection
    default='none' required=True selection=[('none', 'None'), ('quantity', 'Quantity equal to 0'), ('price', 'Price equal to 0')]
Public methods (0)

No public methods.

New fields (1)
  • purchase_hide_in_report_default Selection
    readonly=False related='company_id.purchase_hide_in_report_default' required=True
Public methods (0)

No public methods.