Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
5349 Tampilan

Hello,


We are using Odoo Community and would like to add multiple products that may or may not have a price and hide their individual prices in the quotation which will be sent to the respective customer.

While setting the total price for the complete package ourselves, attached below is an example of what we can do on Excel. 

I have tried to go through the documentation, however, there doesn't seem to be any topics mentioning our issue.

If this can be achieved either out of the box, with a custom module or through changing the code please let us know.

Thank you.

SCREENSHOT: https://ibb.co/R3SKGd4

Avatar
Buang
Penulis

Hi Niyas,

Thank you for your response, we will try to work on the code given your example.

Furthermore, is it possible to have an option in the form to toggle the hiding and showing of the subtotal?

Jawaban Terbai

Hi,
If you dont want to show the subtotal of the each line in the sales/quotation report/print you can inherit the report template and replace the column.


Following is a sample code of removing the tax column from the report.

<template id="report_saleorder_document_inherit" inherit_id="sale.report_saleorder_document">
<xpath expr="//th[@name='th_taxes']" position="replace"/>
<xpath expr="//td[@name='td_taxes']" position="replace"/>
</template>

For more:  How To Inherit And Modify Existing PDF Reports in Odoo


Thanks

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Nov 23
1615
1
Apr 24
3673
4
Jun 20
4560
1
Mar 15
5135
0
Nov 23
1820