Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • Hotel
    Real Estate
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    Consulting
    • Accounting Firm
    • Odoo पार्टनर
    • Marketing Agency
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

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

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

Quotation PDF Page 2 Description long override

Subscribe

Get notified when there's activity on this post

This question has been flagged
pdfquote
2 Replies
5483 Views
Avatar
Chris

I have a problem when I make a quotation with a product or services which the description is so long that the PDF generated will need two pages to display the description : it results that the product description is not cut properly on the second page of the PDF and appear to be over the company name ...

Problem is visibile here : https://imgur.com/a/EoFjfQg

how to solve this?


0
Avatar
Discard
Avatar
Chris
Author Best Answer

@ibrahim Where to try this ?

@ibrahim, can you specify where I can edit those line ? Is it in a python file or is it in a settings in the admin ? Where ?

Thanks

0
Avatar
Discard
Ibrahim Boudmir

replace the part you call your description field in the report with the code in my answer.

you probably have added something like this :

<span t-field="o.YourdescriptionField"/>

instead, add my code and tell me if it works for you.

Chris
Author

@Ibrahim, where do I find the area to modify ? In a python file or in a settings (where in this case?)

Chris
Author

@ibrahim, I suppose we are talking about this code: can you please highlight which line I should modify :

CODE:

<?xml version="1.0"?>

<t t-name="sale.report_saleorder_document">

<t t-call="report.external_layout">

<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})"/>

<div class="page">

<div class="oe_structure"/>

<div class="row">

<div class="col-xs-6">

<strong t-if="doc.partner_shipping_id == doc.partner_invoice_id">Invoicing and shipping address:</strong>

<strong t-if="doc.partner_shipping_id != doc.partner_invoice_id">Invoicing address:</strong>

<div t-field="doc.partner_invoice_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;fax&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}"/>

<p t-if="doc.partner_invoice_id.vat">VAT: <span t-field="doc.partner_invoice_id.vat"/></p>

<div t-if="doc.partner_shipping_id != doc.partner_invoice_id" class="mt8">

<strong>Shipping address:</strong>

<div t-field="doc.partner_shipping_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;fax&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}"/>

<p t-if="doc.partner_shipping_id.vat">VAT: <span t-field="doc.partner_shipping_id.vat"/></p>

</div>

</div>

<div class="col-xs-5 col-xs-offset-1">

<div t-field="doc.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>

</div>

</div>

<h2>

<span t-if="doc.state not in ['draft','sent']">Order # </span>

<span t-if="doc.state in ['draft','sent']">Quotation # </span>

<span t-field="doc.name"/>

</h2>

<div class="row mt32 mb32" id="informations">

<div t-if="doc.client_order_ref" class="col-xs-3">

<strong>Your Reference:</strong>

<p t-field="doc.client_order_ref"/>

</div>

<div t-if="doc.date_order" class="col-xs-3">

<strong t-if="doc.state not in ['draft','sent']">Date Ordered:</strong>

<strong t-if="doc.state in ['draft','sent']">Quotation Date:</strong>

<p t-field="doc.date_order"/>

</div>

<div t-if="doc.user_id.name" class="col-xs-3">

<strong>Salesperson:</strong>

<p t-field="doc.user_id"/>

</div>

<div name="payment_term" t-if="doc.payment_term_id" class="col-xs-3">

<strong>Payment Terms:</strong>

<p t-field="doc.payment_term_id"/>

</div>

</div>

<!-- Is there a discount on at least one line? -->

<t t-set="display_discount" t-value="any([l.discount for l in doc.order_line])"/>

<t t-foreach="doc.order_lines_layouted()" t-as="page">

<table class="table table-condensed">

<thead>

<tr>

<th>Description</th>

<th class="text-right">Quantity</th>

<th class="text-right">Unit Price</th>

<th t-if="display_discount" class="text-right" groups="sale.group_discount_per_so_line">Disc.(%)</th>

<th class="text-right">Taxes</th>

<th class="text-right" groups="sale.group_show_price_subtotal">Price</th>

<th class="text-right price_tax_included" groups="sale.group_show_price_total">Total Price</th>

</tr>

</thead>

<tbody class="sale_tbody">

<t t-foreach="page" t-as="layout_category">

<t t-if="layout_category_size &gt; 1 or page_size &gt; 1" groups="sale.group_sale_layout">

<tr class="active">

<td colspan="7" style="font-weight: bold; border-bottom: 1px solid black;">&amp;bull;

<t t-esc="layout_category['name']"/>

</td>

</tr>

</t>

<!-- Lines associated -->

<t t-foreach="layout_category['lines']" t-as="l">

<tr>

<td><span t-field="l.name"/></td>

<td class="text-right">

<span t-field="l.product_uom_qty"/>

<span t-field="l.product_uom" groups="product.group_uom"/>

</td>

<td class="text-right">

<span t-field="l.price_unit"/>

</td>

<td t-if="display_discount" class="text-right" groups="sale.group_discount_per_so_line">

<span t-field="l.discount"/>

</td>

<td class="text-right">

<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_id))"/>

</td>

<td class="text-right" groups="sale.group_show_price_subtotal">

<span t-field="l.price_subtotal" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: doc.pricelist_id.currency_id}"/>

</td>

<td class="text-right" groups="sale.group_show_price_total">

<span t-field="l.price_total" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: doc.pricelist_id.currency_id}"/>

</td>

</tr>

</t>

<t t-if="(layout_category_size &gt; 1 or page_size &gt; 1) and layout_category['subtotal']" groups="sale.group_sale_layout">

<tr class="text-right">

<td colspan="6">

<strong>Subtotal: </strong>

<t t-set="subtotal" t-value="sum(line.price_subtotal for line in layout_category['lines'])"/>

<span t-esc="subtotal" t-options="{'widget': 'monetary', 'display_currency': doc.pricelist_id.currency_id}"/>

</td>

</tr>

</t>

</t>

</tbody>

</table>

<t t-if="page_index &lt; page_size - 1" groups="sale.group_sale_layout">

<p style="page-break-before:always;"> </p>

</t>

</t>

<div class="row" name="total">

<div class="col-xs-4 pull-right">

<table class="table table-condensed">

<tr class="border-black">

<td><strong>Total Without Taxes</strong></td>

<td class="text-right">

<span t-field="doc.amount_untaxed" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: doc.pricelist_id.currency_id}"/>

</td>

</tr>

<t t-foreach="doc._get_tax_amount_by_group()" t-as="amount_by_group">

<tr>

<td><span t-esc="amount_by_group[0] or 'Taxes'"/></td>

<td class="text-right">

<span t-esc="amount_by_group[1]" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: doc.pricelist_id.currency_id}"/>

</td>

</tr>

</t>

<tr class="border-black">

<td><strong>Total</strong></td>

<td class="text-right">

<span t-field="doc.amount_total" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: doc.pricelist_id.currency_id}"/>

</td>

</tr>

</table>

</div>

</div>

<p t-field="doc.note"/>

<p t-if="doc.payment_term_id.note">

<span t-field="doc.payment_term_id.note"/>

</p>

<p id="fiscal_position_remark" t-if="doc.fiscal_position_id and doc.fiscal_position_id.note">

<strong>Fiscal Position Remark:</strong>

<span t-field="doc.fiscal_position_id.note"/>

</p>

<div class="oe_structure"/>

</div>

</t>

</t>

/CODE

Chris
Author

Problem comes precisely from this : <tr>

<th>Description</th>

<th class="text-right">Quantity</th>

<th class="text-right">Unit Price</th>

<th t-if="display_discount" class="text-right" groups="sale.group_discount_per_so_line">Disc.(%)</th>

<th class="text-right">Taxes</th>

<th class="text-right" groups="sale.group_show_price_subtotal">Price</th>

<th class="text-right price_tax_included" groups="sale.group_show_price_total">Total Price</th>

</tr>

</thead>

This get overlap on the second page by the product description which continue from page 1 to page 2

Chris
Author

Problem is visible here: https://imgur.com/a/EoFjfQg

Avatar
Ibrahim Boudmir
Best Answer

Hi, 
can you try this : 

<div style="page-break-inside: avoid;margin-top:5%">

     <t t-if='YourCommentField'>

          <p style="font-size:15px;">              

                <span t-field="YourCommentField"/>

          </p>

     </t>

let me now what if this works for you.

Thanks.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
pfd quote
pdf quote
Avatar
Avatar
2
दिस॰ 23
1682
Quote Builder With Custom Rental Report (Studio)
pdf
Avatar
0
अक्तू॰ 25
498
Quote Builder With Custom Rental Report (Studio)
pdf
Avatar
0
अक्तू॰ 25
4
How to edit the header of the quote template Solved
pdf
Avatar
Avatar
Avatar
2
अग॰ 25
1261
Customize Report problem Solved
pdf
Avatar
Avatar
Avatar
3
अग॰ 25
1555
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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