小编ono*_*rua的帖子

如何在自定义POS弹出窗口上使用条形码扫描仪?

我正在尝试创建一种形式,这将简化我尚未注册的产品的添加到我的小商店的命名法.为此,我创建了以下形式的模块:

<t t-extend="ConfirmPopupWidget">
    <t t-jquery="p.body" t-operation="replace">
        <div class="product-container">
            <div id="search_row" style="padding-bottom: 12px;padding-top: 11px;border-bottom: 1px solid gray;">
                <label>Barcode </label>
                <input style="height: 18px;" type="text" id="is_ean13" class="search" placeholder="EAN13 Barcode"/>
            </div>
            <div class="form-group">
                <label for="is_name" class="col-sm-2 control-label">Product Name </label>
                <div class="col-sm-10">
                    <input type="text" id="is_name" class="form-control" placeholder="Product name" style="height: 32px;background-color:#D2D2FF"/>
                </div>
            </div>
            <div class="form-group">
                <label for="is_sale_price" class="col-sm-2 control-label">Sale price</label>
                <div class="col-sm-10">
                    <input type="text" id="is_sale_price" class="form-control" placeholder="Sale Price"/>
                </div>
            </div>
            <div class="form-group">
                <label for="is_internal_reference" class="col-sm-2 control-label">Internal Reference</label>
                <div class="col-sm-10">
                    <input type="text" id="is_internal_reference" class="form-control" placeholder="Internal Reference"/>
                </div> …
Run Code Online (Sandbox Code Playgroud)

javascript odoo qweb odoo-9

6
推荐指数
1
解决办法
485
查看次数

iptables模式下的kube-proxy无法正常工作

我有

  • Kubernetes:v.1.1.1
  • iptables v1.4.21
  • 内核:4.2.0-18-与Ubuntu wily一起提供的泛型
  • 通过在交换机上终止的L2 VLAN完成联网
  • 没有云提供商

我所做的

我正在尝试使用kube-proxy的iptables模式.我用--proxy_mode=iptables争论启用了它.似乎缺少一些规则:

iptables -t nat -nvL

Chain PREROUTING (policy ACCEPT 8 packets, 459 bytes)
 pkts bytes target     prot opt in     out     source               destination         
 2116  120K KUBE-SERVICES  all  --  *      *       0.0.0.0/0            0.0.0.0/0            /* kubernetes service portals */

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 2 packets, 120 bytes)
 pkts bytes target     prot opt in     out …
Run Code Online (Sandbox Code Playgroud)

kubernetes kube-proxy

5
推荐指数
1
解决办法
4414
查看次数

标签 统计

javascript ×1

kube-proxy ×1

kubernetes ×1

odoo ×1

odoo-9 ×1

qweb ×1