Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

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

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
javascriptodooodoo-v9
1 Răspunde
5084 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Imagine profil
Globalist Technology
Cel mai bun răspuns

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
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Save and get the value of variable from backend
javascript odoo
Imagine profil
0
aug. 23
194
Odoo use which javascript framework? Rezolvat
javascript odoo
Imagine profil
Imagine profil
1
feb. 22
3732
how to assign javascript value to odoo fields
javascript odoo
Imagine profil
0
aug. 18
6622
How to inherit javascript (class, widget) odoo v9
javascript odoo
Imagine profil
0
feb. 18
7405
How to add an existing field validation with OWL?
javascript odoo OWL
Imagine profil
Imagine profil
Imagine profil
2
oct. 25
1117
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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