Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Displaying Client's Total Discount on Invoice

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
invoicediscountOdooStudioodoo16features
2 Odpowiedzi
4345 Widoki
Awatar
Ula

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

0
Awatar
Odrzuć
EverestX

If you have working solution can you please share with me on Odoo 19 context ?

Awatar
Cybrosys Techno Solutions Pvt.Ltd
Najlepsza odpowiedź

Hi,



First, verify the visibility and access rights of the "Amount Before Discount" field (or any field you intend to use for this purpose). In Odoo Studio, check the field's properties to ensure it's visible to the "Portal" group or the "Public" user. If you can't find access rights settings in Odoo Studio, enable developer mode and check the record rules related to the sale.order or account.move models to see if any rules are restricting access to the field.


Next, add the field to the invoice report. The most likely reason your customers can't see the discount is that the field isn't included in the invoice report template. You'll need to customize the report using Odoo Studio's Report Editor. Find a suitable place on the report to add the field, drag and drop it from the "Fields" list, and add labels and formatting to display the discount information clearly. You might need to create a new computed field in the report to calculate the discount amount.


As an alternative, you can modify the report's QWeb code directly, but this requires technical knowledge of QWeb templating. Enable developer mode, find the invoice report, and edit the template view to include the field and calculate the discount amount.


Finally, consider using existing discount fields if available. Odoo might already have fields that store the discount amount or percentage, such as discount or amount_discount on the invoice lines. Check the available fields in Odoo Studio to see if you can use those instead of creating new ones. Remember to test your changes thoroughly and consider creating a custom report that inherits from the standard one for easier upgrades.


Hope it helps



0
Awatar
Odrzuć
Awatar
Junaid Alam
Najlepsza odpowiedź

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.


0
Awatar
Odrzuć
Ula
Autor

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?

Junaid Alam

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.

EverestX

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.

can you show the python code with odoo studio 19

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Add bank account number under company details of a invoice - Odoo 16 Community Edition Rozwiązane
invoice odoo16features
Awatar
Awatar
1
mar 24
1476
How to place a foreach loop inside a <td> in a QWEB Report Rozwiązane
invoice odoo16features
Awatar
Awatar
1
lip 23
3536
How to place a foreach loop inside a <td> in a QWEB Report
invoice odoo16features
Awatar
0
lip 23
25
How to display total discount in invoice and sales orders ?
invoice fields discount sales.order odoo16features
Awatar
Awatar
1
maj 23
4170
I can't delete a model v16
OdooStudio odoo16features
Awatar
0
maj 23
2317
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now