Trình tạo báo giá PDF

The PDF Quote Builder in Odoo Sales provides the opportunity to send customers a fully customized PDF file for quotes, showcasing the company and products, with various information and design elements, instead of just showing the price and total.

The PDF Quote Builder groups header pages, product descriptions, the price(s), and footer pages to create a detailed quote. It can also inject dynamic texts in the PDF to personalize the offer for the customer.

Việc có một file PDF tùy chỉnh trong báo giá mang lại trải nghiệm mua sắm trọn vẹn hơn cho khách hàng, đồng thời tăng thêm sự chuyên nghiệp và tính thẩm mỹ cho doanh nghiệp.

Ghi chú

Nên chỉnh sửa các biểu mẫu PDF bằng phần mềm Adobe. Những trường biểu mẫu trên các mẫu PDF header và footer là cần thiết để lấy các giá trị động với Odoo.

Cấu hình

Để thêm các tệp PDF tùy chỉnh cho báo giá, tính năng Trình tạo báo giá PDF phải được cấu hình.

To do that, navigate to Sales app ‣ Configuration ‣ Settings. Then, on the Settings page, scroll to the Quotations & Orders section, and locate the PDF Quote builder feature.

The PDF Quote Builder feature located on the Settings page of the Sales application.

Here, custom Header pages and Footer pages can be uploaded. To upload either, click the Upload your file button, or the ✏️ (pencil) icon to the right of the desired field, and proceed to locate, select, and upload the desired PDF file.

Ghi chú

Headers and footers can also be added directly in a quotation template, so it's possible to have different variations per template.

Clicking the 🗑️ (trash) icon deletes the current PDF file and replaces the blank field with an Upload your file button.

Once the desired PDF file(s) are uploaded in the appropriate fields in the PDF Quote builder section of the Sales Settings page, be sure to click Save.

The files uploaded here will be the default PDF used for all quotes.

Ghi chú

Values set in the PDF Quote Builder settings are company-specific.

Văn bản động trong PDF

Khi tạo các tệp PDF tùy chỉnh cho báo giá, hãy sử dụng văn bản động để Odoo tự động điền nội dung PDF với thông tin liên quan đến báo giá từ cơ sở dữ liệu Odoo, như tên, giá cả, v.v.

Các giá trị văn bản động là các thành phần biểu mẫu (trường nhập văn bản) có thể được thêm vào một tệp PDF, và Odoo tự động điền các giá trị đó bằng thông tin liên quan đến báo giá.

Giá trị văn bản động

Below are common dynamic text values used in custom PDFs, and what they represent:

  • name: Tham chiếu đơn bán hàng

  • partner_id__name: Tên khách hàng

  • user_id__name: Tên nhân viên sales

  • amount_untaxed: Số tiền chưa thuế

  • amount_total: Tổng tiền

  • delivery_date: Ngày giao hàng

  • validity_date: Ngày hết hạn

  • client_order_ref: Tham chiếu khách hàng

Ghi chú

Double underscore notation for partner_id__name and user_id__name values are used in place of the typically used . symbol because the library currently does not support the . symbol.

Product-specific dynamic text values are as follows:

  • description: Mô tả sản phẩm

  • quantity: Số lượng

  • uom: Đơn vị tính (ĐVT)

  • price_unit: Đơn giá

  • discount: Chiết khấu

  • product_sale_price: Giá niêm yết của sản phẩm

  • taxes: Tên thuế được nối bằng dấu phẩy (,)

  • tax_excl_price: Giá chưa bao gồm thuế

  • tax_incl_price: Giá bao gồm thuế

Example

When a PDF is built, it's best practice to use common dynamic text values (name and partner_id_name). When uploaded into the database, Odoo auto-populates those fields with the information from their respective fields.

Trong trường hợp này, Odoo sẽ tự động điền Tham chiếu đơn bán hàng vào trường văn bản động name, và Tên khách hàng vào trường partner_id_name.

Báo giá PDF được tạo bằng cách sử dụng các placeholder động phổ biến.

Once the PDF file(s) are complete, save them to the computer's hard drive, and proceed to upload them to Odoo via Sales app ‣ Configuration ‣ Settings ‣ PDF Quote builder.

Upload the created PDF in the Header pages or Footer pages field.

Once the upload(s) are complete, click Save.

Thêm PDF vào sản phẩm

In Odoo Sales, it's also possible to add a custom PDF to a product form. When a PDF is added to a product, and that product is used in a quotation, that PDF is also inserted in the final PDF.

To add a custom PDF to a product, start by navigating to Sales app ‣ Products ‣ Products, and select the desired product to which a custom PDF should be added.

Ghi chú

Một tài liệu cũng có thể được thêm vào một biến thể sản phẩm, thay vì một sản phẩm. Nếu có tài liệu trên một sản phẩm trên biến thể của nó, chỉ các tài liệu trong biến thể mới được hiển thị.

To add a custom document to a product variant, navigate to Sales app ‣ Products ‣ Product Variants. Select the desired variant, click the Documents smart button, and proceed to upload the custom document(s) to the specific product variant.

On the product page, click the Documents smart button at the top of the page.

Nút thông minh Tài liệu trên biểu mẫu sản phẩm trong Odoo Bán hàng.

Doing so reveals a separate Documents page for that product, wherein files related to that product can be uploaded. From this page, either click New or Upload.

Clicking Upload instantly provides the opportunity to upload the desired document. Then, the document can be further configured on the document card, or by clicking the three dots icon in the top right corner of the document card, and then clicking Edit.

Nhấp Mới sẽ hiển thị một biểu mẫu tài liệu trống, trong đó tệp PDF mong muốn có thể được tải lên thông qua nút Tải lên tệp của bạn (Upload your file) trên biểu mẫu, nằm trong trường Nội dung tệp (File Content).

A standard document form with various fields for a specific product in Odoo Sales.

Nhiều thông tin và cấu hình liên quan đến tài liệu đã tải lên có thể được sửa đổi tại đây.

Trường đầu tiên trên biểu mẫu tài liệu là Tên (Name) của tài liệu, và nó bị xám (không thể nhấp) cho đến khi một tài liệu được tải lên. Sau khi một tệp PDF đã được tải lên, trường Tên được tự động điền với tên của tệp PDF, và sau đó có thể được chỉnh sửa.

Trước khi tải lên một tài liệu, có thể chỉ định tài liệu đó là Tệp hay URL trong menu thả xuống của trường Loại.

A standard document form with an uploaded pdf in Odoo Sales.

Ghi chú

Nếu một tệp PDF được tải lên, trường Loại được tự động điền thành Tệp, và không thể sửa đổi.

Then, in the Sales section, in the Visible at field, click the drop-down menu, and select either: Quotation, Confirmed order, or Inside quote.

  • Quotation: the document is sent to (and accessible by) customers at any time.

  • Confirmed order: the document is sent to customers upon the confirmation of an order. This is best for user manuals and other supplemental documents.

  • Inside quote: the document is included in the PDF of the quotation, between the header pages and the Pricing section of the quote.

Example

When the Inside quote option for the Visible at field is chosen, and the custom PDF file, Sample Builder.pdf is uploaded, the PDF is visible on the quotation the in the customer portal under the Documents field.

Sample of an uploaded pdf with the inside quote option chosen in Odoo Sales.

Lastly, in the E-Commerce section, decide whether or not to Show on product page on the front-end (in the online store).

Example

When the Show on product page option is enabled, a link to the uploaded document, Sample Builder.pdf, appears on the product's page, located on the frontend in the online store.

Nó xuất hiện bên dưới tiêu đề Tài liệu, với một liên kết hiển thị tên của tài liệu đã tải lên.

Hiển thị liên kết đến một tài liệu đã tải lên trên trang sản phẩm bằng Odoo Bán hàng.

Báo giá PDF

Once a quote with a pre-configured PDF has been confirmed, Odoo provides the option to print the confirmed quote to check for errors, or to keep for records.

To print the PDF quote, navigate to the confirmed quote, and click the ⚙️ (gear) icon to reveal a drop-down menu. From this drop-down menu, select Print, then select PDF Quote.

Print pdf quote option on drop-down menu located on confirmed sales order in Odoo Sales.

Thao tác này ngay lập tức tải xuống báo giá PDF. Khi mở, có thể được xem và in báo giá PDF, cùng với tệp PDF sản phẩm đã cấu hình được thiết lập để hiển thị bên trong báo giá.

Ghi chú

Download these PDF quote builder examples for added reference.

Xem thêm