You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
741 B

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherit the template to add a customer note text area on the payment page -->
<template id="website_customer_note_template" name="Customer Note" inherit_id="website_sale.payment">
<xpath expr="//div[@class='mt-2']" position="after">
<div class="form-group">
<label for="customer_note">Customer Note:</label>
<textarea id="customer_note" class="form-control" name="customer_note" rows="3"/>
</div>
<!-- Add a hidden input field to store the sale order ID -->
<input type="hidden" name="sale_order_id" t-att-value="request.website.sale_get_order().id"/>
</xpath>
</template>
</odoo>