Skip to content

[17.0] sale_fixed_discount: PDF report omits printing fixed discount column and online preview omits displaying discounted unit price #3769

@kwoychesko

Description

@kwoychesko

I'm happy to work on this issue myself, but need some input/confirmation from the devs/maintainers.

Module

sale_fixed_discount

Describe the bug

When printing a PDF report of a quotation/order that includes a Fixed Discount, the fixed discount column is not included:

Image

Also, the online Preview does not show the discounted unit price. I have included this in the same issue because they both deal with the display of a fixed discount, but if you like I can create a separate issue. But perhaps this is by-design/a known limitation?

Image

To Reproduce

Affected versions: 17.0

Steps to reproduce the behavior:

  1. In a runboat.odoo-community.org instance for sale-workflow, login and enable Discounts in the Sales general settings.
  2. With sale_fixed_discount installed, create a new quotation.
  3. Add a product (e.g. Acoustic Bloc Screens with a unit price of $295).
  4. In the line’s Disc. Fixed Amount column, enter a discount (e.g. $100).
  5. Click Preview (the portal/online preview view). Notice that the regular unit price is red with strikethrough but the discounted unit price is not displayed (by design?)
  6. Return to the backend view of the quotation/order and print it to create a PDF. Notice that the Disc. Fixed Amount column is not displayed.

Expected behavior

  • Online preview: ideally should behave like the Disc. % functionality and show the discounted unit price beneath the strikethrough.
  • PDF report: should include a “Disc. Fixed Amount” column showing the fixed discount (e.g. “$100.00”).

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