【发布时间】:2017-06-01 18:35:50
【问题描述】:
我已使用以下代码在网站支付 (/shop/payment) 屏幕中成功添加了 textarea。
<template id="payment_notes" name="PO" inherit_id="website_sale.payment">
<xpath expr="//div[@id='payment_method']" position="after">
<div class="mt32" method="post">
<textarea type="textarea" rows="5" name="po_notes" style="height:100px;width:800px" placeholder="Terms and conditions..."/>
</div>
</xpath>
</template>
到目前为止我尝试了什么?
@http.route('/shop/payment/validate', type='http', auth="public", website=True)
def payment_validate(self, transaction_id=None, sale_order_id=None, **post):
print "\n=======res=paymentvalidate====", request.session.get('po_notes'), post.get('po_notes')
######
######
我没有,没有
我的问题是:
我怎样才能获得下一级的价值/shop/payment/validate?
【问题讨论】:
-
你想达到什么目的?
-
@AtulArvind,我想向销售订单发送备注。不是从结帐屏幕,而是在问题中提到的付款屏幕。
标签: python openerp odoo-9 openerp-8 odoo-website