Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    อสังหาริมทรัพย์
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    ปรึกษา
    • สำนักงานบัญชี
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • เหล็ก
    • เฟอร์นิเจอร์
    • อาหาร
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • ระบบพลังงานแสงอาทิตย์
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    อื่น ๆ
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม Odoo
    รับซอฟต์แวร์
    • ดาวน์โหลด
    • เปรียบเทียบรุ่น
    • เผยแพร่
    ทำงานร่วมกัน
    • Github
    • ฟอรั่ม
    • ระบบการจัดงานอีเวนต์
    • การแปล
    • ร่วมเป็นพาร์ทเนอร์
    • Services for Partners
    • ลงทะเบียนเพื่อสร้างบัญชีบริษัทของคุณ
    รับบริการ
    • ค้นหาพาร์ทเนอร์
    • ค้นหานักบัญชี
    • พบกับที่ปรึกษา
    • บริการติดตั้งระบบเพื่อใช้งาน
    • ข้อมูลอ้างอิงลูกค้า
    • การสนับสนุน
    • อัปเกรด
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    รับการสาธิต
  • ราคา
  • ช่วยเหลือ

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • ลูกค้าสัมพันธ์
  • e-Commerce
  • ระบบบัญชี
  • สินค้าคงคลัง
  • PoS
  • โปรเจกต์
  • MRP
All apps
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

What could make odoo have a JavaScript error: Unsupported operator “not like” in domain

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
javascriptodooodoo-v9
1 ตอบกลับ
5027 มุมมอง
อวตาร
Alexander Darlington Agboada

So when I added a new field, shower_form, to jobshop.xml which ties to tickets.py, it is supposed to appear when one selects shower from manage_jobs.xml.
It does work, only that this code breaks my JavaScript for the whole application and gives an error in the browser's console "Unsupported operator not like in domain". More specifically, background colors based on Javascript no longer work, buttons added as widgets no turns to a Char field. Any idea what causes this error?

jobshop.xml

<field name="shower_form" attrs="{'invisible':[('type','not in',['shower'])]}"/>

tickets.py

shower_form = fields.One2many('jobshop.shower_order_form', 'ticket_id', string='Fill Shower Order Form?',
                               help='Does this ticket needs a shower order form?',
)

manage_jobs.xml

<t t-if="widget.ticket_type == 'shower'">
                <option value="shower_form">Shower Order form</option>
            </t>

shower_form.xml

<?xml version="1.0" encoding="UTF-8"?>

<template id="assets_backend" name="jobshop.shower_order_form assets" inherit_id="web.assets_backend">
  <xpath expr="." position="inside">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"/>
    <link rel='stylesheet' type="text/css" href="/jobshop/static/src/css/shower.css"/>
  </xpath>
</template>
<!-- Form View -->
<record id="ticket_shower_form_view" model="ir.ui.view">
  <field name="name">jobshop.shower_form</field>
  <field name="model">jobshop.shower_order_form</field>
  <field name="priority">15</field>
  <field name="arch" type="xml">
    <form string="Shower Form">
      <sheet>
        <nav class="navbar navbar-default">
          <div class="container-fluid">
            <div class="navbar-header">
              <a class="navbar-brand" href="#">
                Shower Order Form
              </a>
            </div>
          </div>
        </nav>
        <group class="container">
          <div class="row m-3">
            <div class="col-md-9">
              <h2 class="display-5">Store</h2>
              <h3 class="display-5 text-muted">SHOWER ORDER FORM</h3>
            </div>
            <div class="col-md-3">
              <label for="date" class="col-sm-4 control-label"/>
              <div class="col-sm-8">
                <field name="date" placeholder="Date"/>
              </div>
              <label for="sales_rep" class="col-sm-4 control-label"/>
              <div class="col-sm-8">
                <field name='sales_rep' />
              </div>
            </div>
          </div>
        </group>
        <group class="container">
          <div class="row">
            <div class="panel panel-default col-xs-6 col-md-6">
              <div class="panel-body">
                <label for="customer" class="col-sm-5 control-label"/>
                <div class="col-sm-7">
                  <field name="customer" placeholder="Customer"/>
                </div>
                <label for="address" class="col-sm-5 control-label"/>
                <div class="col-sm-7">
                  <field name="address" placeholder="Address"/>
                </div>
                <label for="project" class="col-sm-5 control-label"/>
                <div class="col-sm-7">
                  <field name="project" placeholder="Project"/>
                </div>
                <label for="lot" class="col-sm-5 control-label"/>
                <div class="col-sm-7">
                  <field name="lot" placeholder="Lot#"/>
                </div>
              </div>
            </div>
            <div class="panel panel-default col-xs-6 col-md-6">
              <div class="panel-body">
                <label for="deliver_address" class="col-sm-5 control-label"/>
                <div class="col-sm-7">
                  <field name="deliver_address" placeholder="Delivery Address"/>
                </div>
                <div class="form-inline row">
                  <div class="form-group col-sm-8 row">
                    <label for="install_date" class="col-sm-5 clearfix"/>
                    <div class="col-sm-3">
                      <field name="install_date" placeholder=""/>
                    </div>
                  </div>
                  <div class="checkbox col-sm-4 row">
                    <label for="ready_now" class="col-sm-8 clearfix"/>
                    <div class="col-sm-4">
                      <field name="ready_now" placeholder=""/>
                    </div>
                  </div>
                </div>
                <label for="telephone" class="col-sm-5 control-label"/>
                <div class="col-sm-7">
                  <field name="telephone" placeholder="Telephone"/>
                </div>
                <label for="superintendent_num" class="col-sm-5 control-label"/>
                <div class="col-sm-7">
                  <field name="superintendent_num" placeholder="Superintendent Num"/>
                </div>
              </div>
            </div>
          </div>
        </group>
        <group class="container">
          <div class="row">
            <div class="table-responsive">
              <table class="table table-bordered">
                <thead>
                  <tr>
                    <th class="vertical">
                      <span class="vertical">Numbers</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Size</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Chrome</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Plate</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">BN</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Champ</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Brushed Nickel</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Oil Rubbed</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Aged BZ</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Aged Pewter</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Clear</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">P62</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Rain</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Glue Chip</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Gray</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Bronze</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Tub Bypass</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Shower Bypass</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Other</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Euro Tub</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Euro Lite Shower</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Semi-Patch</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Semi-Comp</span>
                    </th>
                    <th class="vertical">
                      <span class="vertical">Euro</span>
                    </th>

                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <th scope="row">1</th>
                    <td><field name="size"/></td>
                    <td><field name="chrome"/></td>
                    <td><field name="plate"/></td>
                    <td><field name="bn"/></td>
                    <td><field name="champ"/></td>
                    <td><field name="brushed_nickel"/></td>
                    <td><field name="oil_rubbed"/></td>
                    <td><field name="aged_bz"/></td>
                    <td><field name="aged_pewter"/></td>
                    <td><field name="clear"/></td>
                    <td><field name="p62"/></td>
                    <td><field name="rain"/></td>
                    <td><field name="glue_chip"/></td>
                    <td><field name="gray"/></td>
                    <td><field name="bronze"/></td>
                    <td><field name="tub_bypass"/></td>
                    <td><field name="shower_bypass"/></td>
                    <td><field name="other"/></td>
                    <td><field name="euro_tub"/></td>
                    <td><field name="euro_lite_shower"/></td>
                    <td><field name="semi_patch"/></td>
                    <td><field name="semi_comp"/></td>
                    <td><field name="euro"/></td>
                  </tr>
                  <tr>
                    <th scope="row">2</th>
                    <td><field name="size"/></td>
                    <td><field name="chrome"/></td>
                    <td><field name="plate"/></td>
                    <td><field name="bn"/></td>
                    <td><field name="champ"/></td>
                    <td><field name="brushed_nickel"/></td>
                    <td><field name="oil_rubbed"/></td>
                    <td><field name="aged_bz"/></td>
                    <td><field name="aged_pewter"/></td>
                    <td><field name="clear"/></td>
                    <td><field name="p62"/></td>
                    <td><field name="rain"/></td>
                    <td><field name="glue_chip"/></td>
                    <td><field name="gray"/></td>
                    <td><field name="bronze"/></td>
                    <td><field name="tub_bypass"/></td>
                    <td><field name="shower_bypass"/></td>
                    <td><field name="other"/></td>
                    <td><field name="euro_tub"/></td>
                    <td><field name="euro_lite_shower"/></td>
                    <td><field name="semi_patch"/></td>
                    <td><field name="semi_comp"/></td>
                    <td><field name="euro"/></td>

                  </tr>
                  <tr>
                    <th scope="row">3</th>
                    <td><field name="size"/></td>
                    <td><field name="chrome"/></td>
                    <td><field name="plate"/></td>
                    <td><field name="bn"/></td>
                    <td><field name="champ"/></td>
                    <td><field name="brushed_nickel"/></td>
                    <td><field name="oil_rubbed"/></td>
                    <td><field name="aged_bz"/></td>
                    <td><field name="aged_pewter"/></td>
                    <td><field name="clear"/></td>
                    <td><field name="p62"/></td>
                    <td><field name="rain"/></td>
                    <td><field name="glue_chip"/></td>
                    <td><field name="gray"/></td>
                    <td><field name="bronze"/></td>
                    <td><field name="tub_bypass"/></td>
                    <td><field name="shower_bypass"/></td>
                    <td><field name="other"/></td>
                    <td><field name="euro_tub"/></td>
                    <td><field name="euro_lite_shower"/></td>
                    <td><field name="semi_patch"/></td>
                    <td><field name="semi_comp"/></td>
                    <td><field name="euro"/></td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </group>
        <group class="container">
          <div class="row">
            <div class="panel panel-default col-xs-4 col-md-2">
              <div class="panel-title">Order Size</div>
              <div class="panel-body">
                <div class="form-row form-group">
                  <field name="order_size_1" class="col input-sm" placeholder=""/>
                </div>
                <div class="form-row form-group">
                  <field name="order_size_2" class="col input-sm" placeholder=""/>
                </div>
                <div class="form-row form-group">
                  <field name="order_size_3" class="col input-sm" placeholder=""/>
                </div>
                <div class="form-row form-group">
                  <field name="order_size_4" class="col input-sm" placeholder=""/>
                </div>
              </div>
            </div>
            <div class="col-xs-6 col-md-6">
              <div class="">Insert photo of sketch</div>
              <div class="form-group">
                <div class="input-group ">
                  <div class="input-group-addon">Take Shot
                  </div>
                  <field name="sketch" class="input-sm" id="hand-drawn-sketch"/>
                </div>
              </div>
            </div>
            <div class="panel panel-default col-xs-4 col-md-4">
              <div class="panel-title">Kits</div>
              <div class="panel-body">
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Screw Pack</span>
                  </div>
                  <field name="screw_pack"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Vinyl</span>
                  </div>
                  <field name="vinyl"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Gussets</span>
                  </div>
                  <field name="gussetts"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Sill</span>
                  </div>
                  <field name="sill"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Header</span>
                  </div>
                  <field name="header"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Jamb</span>
                  </div>
                  <field name="jamb"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Thin Sill</span>
                  </div>
                  <field name="thin_sill"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Neo Post</span>
                  </div>
                  <field name="neo_post"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">ADJ Post</span>
                  </div>
                  <field name="adj_post"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Expander Post</span>
                  </div>
                  <field name="expander_post"/>
                </div>
                <div class="form-group input-group input-group-sm">
                  <div class="input-group-addon">
                    <span class="input-group-text">Door Kit with Door</span>
                  </div>
                  <field name="door_kits_with_door"/>
                </div>
              </div>
            </div>
          </div>
        </group>
        <group>
          <div class="row">
            <div class="panel panel-default col-md-6">
              <div class="panel-body">
                <div class="form-row form-group">
                  <label for="date_completed"/>
                  <field name="date_completed" class="col" placeholder="Date"/>
                </div>
                <div class="form-row form-group">
                  <label for="completed_by"/>
                  <field name="completed_by" class="col" placeholder="Name"/>
                </div>
                <div class="card-title">Installed, Door Built, Correct Glass and Color Initials</div>
                <div class="form-row form-group">
                  <label for="installed_date"/>
                  <field name="install_date" class="col" placeholder="Date"/>
                </div>
                <div class="form-row form-group">
                  <label for="installed_by"/>
                  <field name="installed_by" class="col" placeholder="Name"/>
                </div>
              </div>
            </div>
            <div class="panel panel-default col-md-6">
              <div class="panel-heading">Notes</div>
              <div class="panel-body">
                <div class="form-row form-group">
                  <label for="notes"/>
                  <field name="notes" class="col" rows="4" placeholder="Notes"/>
                </div>
                <div class="form-row form-group">
                  <div class="form-check mx-2 mr-sm-2">
                    <label for="send_mirror_with_job"/>
                    <field name="send_mirror_with_job" class="form-check-input"/>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </group>
      </sheet>
    </form>
  </field>
</record>
1
อวตาร
ละทิ้ง
อวตาร
Globalist Technology
คำตอบที่ดีที่สุด

I don't know if you solve it in the end, considering how many years passed. However it seems it was a know bug/issue. See this https://github\.com/odoo/odoo/commit/411abff3880c8b3945e2f3afe963894a2380202d and\ this: https://github.com/odoo/odoo/issues/41051 

On v.15 seems the problem still exists.

0
อวตาร
ละทิ้ง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
Save and get the value of variable from backend
javascript odoo
อวตาร
0
ส.ค. 23
194
Odoo use which javascript framework? แก้ไขแล้ว
javascript odoo
อวตาร
อวตาร
1
ก.พ. 22
3686
how to assign javascript value to odoo fields
javascript odoo
อวตาร
0
ส.ค. 18
6595
How to inherit javascript (class, widget) odoo v9
javascript odoo
อวตาร
0
ก.พ. 18
7362
How to add an existing field validation with OWL?
javascript odoo OWL
อวตาร
อวตาร
อวตาร
2
ต.ค. 25
1048
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบสินค้าคงคลัง ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ Odoo คือการใช้งานที่ง่ายดายและผสานการทำงานอย่างสมบูรณ์แบบในเวลาเดียวกัน

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now