Skip to Content
Menu
This question has been flagged

Hello All,

We would like to display the total discount our client is receiving from us. In the invoice summary, only the final price is currently shown. We want it to display the breakdown as follows: Public Price - Discount - Final Price.

I found a Tab in Odoo Studio that I could add in the Sales Order as 'Amount Before Discount' (which is not perfect but could work). However, the issue is that it's only visible to us, not for clients.

How can I change that option?


Thank you for help

Avatar
Discard
Best Answer

1- Go to Odoo Studio and navigate to the model for invoices (account.move).

2- Create a new field to store the "Amount Before Discount." This can be done by adding a new field of type monetary to the account.move model.

3- Define a computed value for this new field. This computed value should calculate the difference between the public price and the final price for each line on the invoice.

4- Go to the Studio Report Designer and edit the invoice report template to include your new field. You can use expressions to fetch and display the calculated "Amount Before Discount."

5- By default, newly added fields might not be visible to the external users. Go to Odoo Studio, navigate to the field you've created, and check its visibility settings. Ensure that it is marked as visible for external users or the "Portal" user type if applicable.

6- Confirm that the user role associated with your clients has the necessary permissions to view this field.


Avatar
Discard
Author

Thank you for your answer. I have changed the visibility, but we can still only see this in Odoo (including Porta user). However, when I try to print a version of the Sales Order / Invoice, the column disappears.
Is there a solution for that?

1- Go to Odoo Studio or the Odoo backend and identify the report template associated with the Sales Order or Invoice. This is often done in the "Settings" or "Technical Settings" section.

2- Once you've identified the report template, edit it using Odoo Studio or by navigating to "Settings" > "Technical" > "Reports."

3- In the report template editor, add the custom field (Amount Before Discount) to the appropriate section of the report where you want it to be displayed.

4- Clear your browser cache or try accessing the printed version in incognito/private mode.

Related Posts Replies Views Activity
1
Mar 24
1475
1
Jul 23
2776
0
Jul 23
25
1
May 23
3515
0
May 23
1700