コンテンツへスキップ
メニュー
この質問にフラグが付けられました

My xml fileis:

<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"                  name="with_delivery"
                   t-att-data-line-id="line.id"
                   t-att-data-product-id="line.product_id.id"/>
</
td>
</
xpath>
</
template>

My controller main is:
@http.route(['/shop/checkout'], type='http', auth="public", website=True, sitemap=False)
def checkout(self, **post):
        # print the input with the id: "with_delivery"
        # update the 'with_delivery' attribute
        res = super(myECommerce, self).checkout(**post)
        return res

I want to print the value of the input with the id "with_delivery"
can any one help me plz
アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 22
2866
0
2月 22
1877
6
8月 19
10080
1
2月 24
2716
0
2月 24
1413