15 changed files with 115 additions and 21 deletions
@ -1,6 +1,6 @@ |
|||||
## Module <website_quotation_template> |
## Module <website_quotation_template> |
||||
|
|
||||
#### 18.11.2023 |
#### 01.02.2024 |
||||
#### Version 16.0.1.0.0 |
#### Version 16.0.1.0.0 |
||||
#### ADD |
#### ADD |
||||
- Initial commit for Website Quotation Template Snippet |
- Initial commit for Website Quotation Template Snippet |
||||
|
After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 180 KiB |
@ -0,0 +1,55 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!-- This template is used to display detailed information about each product |
||||
|
in a sale order template. --> |
||||
|
<template id="product_details_template" name="Product Details Template"> |
||||
|
<t t-call="website.layout"> |
||||
|
<t t-name="website_quotation_template.product_details_template"> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<table class="table"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Image</th> |
||||
|
<th>Name</th> |
||||
|
<th>Description</th> |
||||
|
<th>Quantity</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<t t-foreach="template.sale_order_template_line_ids" |
||||
|
t-as="line"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<t t-if="line.product_id.image_1920"> |
||||
|
<img class="product-image" |
||||
|
t-att-src="image_data_uri(line.product_id.image_1920)" |
||||
|
alt="Product Image" |
||||
|
style="height:50px;"/> |
||||
|
</t> |
||||
|
</td> |
||||
|
<td t-esc="line.product_id.name"/> |
||||
|
<td t-esc="line.product_id.display_name"/> |
||||
|
<td t-esc="line.product_uom_qty"/> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="text-center mt-4"> |
||||
|
<form action="/product/add_cart" method="POST"> |
||||
|
<input name="prod_id" t-att-value="template.id" |
||||
|
type="hidden"/> |
||||
|
<button type="submit" |
||||
|
class="btn btn-primary buy_template"> |
||||
|
<span>Add To Cart</span> |
||||
|
</button> |
||||
|
</form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
</t> |
||||
|
</template> |
||||
|
</odoo> |
Loading…
Reference in new issue