Skip to content

Odoo 18.0: Error on purchase_order_secondary_unit.report_purchaseorder_document #2951

@klosll

Description

@klosll

Module

purchase_order_secondary_unit

Describe the bug

When printing a purchase order, a non-existent field error appears.

Error

Error while render the template
AttributeError: 'res.company' object has no attribute 'hide_secondary_uom_column'
Template: purchase.report_purchaseorder_document
Path: /t/t/div/table/thead/tr/th[2]
Node:

To Reproduce

Affected versions: 18.0

Steps to reproduce the behavior:

  1. Go to a purchase order or create new.
  2. Print purchase order --> Error

Expected behavior
The purchase order PDF is expected to be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions