我得到ParseError:“在系统中找不到外部ID:website_sale.checkout”虽然模板存在于odoo / addons / website_sale中。它工作了一段时间然后崩溃了。
<template id="checkout_add_delivery" inherit_id="website_sale.checkout">
<xpath expr="//a[@class='btn btn-default mb32']" position="replace">
<form action="/shop/payment" method="post" class="s_website_form form-horizontal container-fluid mt32"
enctype="multipart/form-data" data-force_action="sale.order" data-model_name="sale.order" data-success_page="/shop/payment">
<div class="form-group">
<p>Delivery Date: <input type="text" id="datepicker"/></p>
<span>Delivery Time</span>
<select>
<option>08:00</option>
<option>08:15</option>
<option>08:30</option>
</select>
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
</div>
</form>
</xpath>
</template>