问题描述
我在sale.order.line中添加了一个新属性“ with_delivery”,它可以在模块中完美运行, 现在,我需要将其添加到我的电子商务模块中,并通过按“流程签出”按钮将其值保存在商店/购物车视图的数据库中
这是xml视图代码
<template id="payment_cart_shipping_column" inherit_id="website_sale.cart_lines" customize_show="True"
name="Shipping option">
<xpath expr="//table[@id='cart_products']/thead[1]/tr[1]/th[4]" position="after">
<th class="text-center">Shipping</th>
</xpath>
<xpath expr="//table[@id='cart_products']/tbody[1]/t[1]/tr[1]/td[5]" position="after">
<td class="text-center">
<input class="form-control" type="checkBox" id="with_delivery"
t-att-data-line-id="line.id"
t-att-data-product-id="line.product_id.id"
t-att-checked="bool(line.with_delivery)"
t-att-value="bool(line.with_delivery)"/>
</td>
</xpath>
</template>
有人可以帮助我吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)