Bỏ qua để đến Nội dung
Odoo Menu
  • Đăng nhập
  • Dùng thử miễn phí
  • Ứng dụng
    Tài chính
    • Kế toán
    • Hóa đơn
    • Chi phí
    • Bảng tính (BI)
    • Tài liệu
    • Ký tên
    Bán hàng
    • CRM
    • Bán hàng
    • POS Cửa hàng
    • POS Nhà hàng
    • Đăng ký
    • Cho thuê
    Trang web
    • Trình tạo trang web
    • Thương mại điện tử
    • Blog
    • Diễn đàn
    • Trò chuyện trực tiếp
    • Học trực tuyến
    Chuỗi cung ứng
    • Tồn kho
    • Sản xuất
    • PLM
    • Mua hàng
    • Bảo dưỡng
    • Chất lượng
    Nhân sự
    • Nhân viên
    • Tuyển dụng
    • Ngày nghỉ
    • Đánh giá
    • Giới thiệu
    • Đội xe
    Marketing
    • Marketing trên MXH
    • Marketing qua email
    • Marketing qua SMS
    • Sự kiện
    • Tự động hóa Marketing
    • Khảo sát
    Dịch vụ
    • Dự án
    • Bảng chấm công
    • Dịch vụ hiện trường
    • Hỗ trợ
    • Kế hoạch
    • Lịch hẹn
    Năng suất
    • Thảo luận
    • Phê duyệt
    • IoT
    • VoIP
    • Kiến thức
    • WhatsApp
    Ứng dụng của bên thứ ba Studio Odoo Nền tảng Đám mây Odoo
  • Ngành
    Bán lẻ
    • Nhà sách
    • Cửa hàng quần áo
    • Cửa hàng nội thất
    • Cửa hàng tạp hóa
    • Cửa hàng đồ kim khí
    • Cửa hàng đồ chơi
    Ẩm thực & Dịch vụ lưu trú
    • Bar và quán rượu
    • Nhà hàng
    • Đồ ăn nhanh
    • Guest house
    • Nhà phân phối đồ uống
    • Khách sạn
    Bất động sản
    • Công ty môi giới bất động sản
    • Công ty kiến trúc
    • Xây dựng
    • Quản lý bất động sản
    • Làm vườn
    • Hiệp hội chủ sở hữu bất động sản
    Tư vấn
    • Công ty kế toán
    • Đối tác Odoo
    • Công ty marketing
    • Công ty luật
    • Tuyển dụng
    • Thanh tra & chứng nhận
    Sản xuất
    • Dệt may
    • Kim loại
    • Nội thất
    • Ẩm thực
    • Nhà máy bia
    • Quà tặng doanh nghiệp
    Sức khoẻ & fitness
    • CLB thể thao
    • Cửa hàng kính mắt
    • Trung tâm fitness
    • Chuyên gia chăm sóc sức khỏe
    • Hiệu thuốc
    • Tiệm làm tóc
    Thương mại
    • Dịch vụ sửa chữa
    • Phần cứng CNTT & Hỗ trợ
    • Hệ thống năng lượng mặt trời
    • Công ty sản xuất giày
    • Dịch vụ vệ sinh
    • Dịch vụ HVAC
    Khác
    • Tổ chức phi lợi nhuận
    • Cơ quan môi trường
    • Cho thuê biển quảng cáo
    • Nhiếp ảnh
    • Cho thuê xe đạp
    • Đại lý phần mềm
    Xem tất cả ngành
  • Cộng đồng
    Học tập
    • Khóa học
    • Tài liệu
    • Chứng chỉ
    • Đào tạo
    • Blog
    • Podcast
    Thúc đẩy đào tạo
    • Chương trình đào tạo
    • Trò chơi kinh doanh Scale Up!
    • Tham quan Odoo
    Nhận phần mềm
    • Tải xuống
    • So sánh các phiên bản
    • Phiên bản
    Hợp tác
    • Github
    • Diễn đàn
    • Sự kiện
    • Dịch thuật
    • Trở thành đối tác
    • Dịch vụ dành cho Đối tác
    • Đăng ký công ty kế toán của bạn
    Nhận dịch vụ
    • Tìm đối tác
    • Tìm kế toán
    • Gặp chuyên gia hỗ trợ
    • Dịch vụ Triển khai
    • Khách hàng tham khảo
    • Hỗ trợ
    • Nâng cấp
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Nhận một buổi demo
  • Bảng giá
  • Trợ giúp

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

  • CRM
  • e-Commerce
  • Kế toán
  • Tồn kho
  • PoS
  • Dự án
  • MRP
All apps
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Hỗ trợ

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

Đăng ký nhận tin

Nhận thông báo khi có hoạt động trên bài viết này

Câu hỏi này đã bị gắn cờ
javascriptodooodoo-v9
1 Trả lời
5052 Lượt xem
Ảnh đại diện
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
Ảnh đại diện
Huỷ bỏ
Ảnh đại diện
Globalist Technology
Câu trả lời hay nhất

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
Ảnh đại diện
Huỷ bỏ
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!

Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!

Đăng ký
Bài viết liên quan Trả lời Lượt xem Hoạt động
Save and get the value of variable from backend
javascript odoo
Ảnh đại diện
0
thg 8 23
194
Odoo use which javascript framework? Đã xử lý
javascript odoo
Ảnh đại diện
Ảnh đại diện
1
thg 2 22
3705
how to assign javascript value to odoo fields
javascript odoo
Ảnh đại diện
0
thg 8 18
6606
How to inherit javascript (class, widget) odoo v9
javascript odoo
Ảnh đại diện
0
thg 2 18
7383
How to add an existing field validation with OWL?
javascript odoo OWL
Ảnh đại diện
Ảnh đại diện
Ảnh đại diện
2
thg 10 25
1089
Cộng đồng
  • Khóa học
  • Tài liệu
  • Diễn đàn
Open source
  • Tải xuống
  • Github
  • Runbot
  • Dịch thuật
Dịch vụ
  • Lưu trữ Odoo.sh
  • Hỗ trợ
  • Nâng cấp
  • Phát triển tùy chỉnh
  • Đào tạo
  • Tìm kế toán
  • Tìm đối tác
  • Trở thành đối tác
Giới thiệu công ty
  • Công ty của chúng tôi
  • Tài sản thương hiệu
  • Liên hệ
  • Việc làm
  • Sự kiện
  • Podcast
  • Blog
  • Khách hàng
  • Pháp lý • Riêng tư
  • Bảo mật
الْعَرَبيّة 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 là bộ ứng dụng kinh doanh có open source đáp ứng tất cả các nhu cầu của công ty bạn: CRM, thương mại điện tử, kế toán, tồn kho, POS, quản lý dự án, v.v.

Định hướng giá trị riêng biệt của Odoo là tích hợp hoàn toàn và dễ dàng sử dụng.

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