Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Guest House
    • Drankenhandelaar
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Solar Energy Systems
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC Services
    Others
    • Nonprofit Organization
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
Stock Appointment Customer OdooV16 Onlinebooking
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
Stock Appointment Customer OdooV16 Onlinebooking
Over dit forum
  1. Field Service
  2. Forum

What is the difference between "filter_domain" and "domain" filter attributes?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
salesdomainerrordifferencefilter_domain
1 Beantwoorden
14248 Weergaven
Avatar
JC Paniagua

In the module of the core 'sale' (sale_views) we can find the line:


<field name="order_line" string="Product" filter_domain="[('order_line.product_id', 'ilike', self)]"/>


When the filter is tested for 'cer' by Product, 60 sales orders appear, but if you export this data, 200 appear on the csv (e.g.).

The results of this csv are correct. Different sales orders also contain 'cert'.


According to https://www.odoo.com/documentation/12.0/reference/views.html#search the difference between filter_domain and domain is that in filter_domain you can use 'self'.


But by changing in the field 'filter_domain' to 'domain' the filter works:

<record id="view_sales_order_filter_fixed" model="ir.ui.view">

        <field name="name">view.sales.order.filter.fixed</field>

        <field name="model">sale.order</field>

        <field name="inherit_id" ref="sale.view_sales_order_filter"/>

        <field name="arch" type="xml">

            <field name="order_line" position="replace">

                <field name="order_line" string="Product" domain="[('order_line.product_id', 'ilike', self)]"/>

            </field>

        </field>

    </record>


Why does this happen? Can you use 'self' with 'domain' or is it a sales module error? 


0
Avatar
Annuleer
Avatar
Cayprol
Beste antwoord

I searched the same thing, and this thread showed as 1st result without answer.
Whoever came across this, please, take a look at this answer.
https://www.odoo.com/forum/help-1/what-is-diff-between-domain-domain-filter-and-attr-21145

In short,
Domain are applied on relational fields (Many2one, One2many, Many2many) which restrict available selection when records are viewed in UI.
filter_domain is a search filter to best match given input by user, and it does not affect how records are actually stored.

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
[help] Uncaught Error: Unknown field state in domain [["state","not in",["draft"]]]
domain error state
Avatar
Avatar
1
mrt. 23
4819
How to configure "error page" in V13 ? Opgelost
sales error product
Avatar
Avatar
Avatar
2
mrt. 24
5692
Errror "There is no matching vendor price to generate the purchase order " on quotation confirmation Opgelost
sales error quotation
Avatar
Avatar
Avatar
2
aug. 21
10715
Error When Creating a Product
sales error product
Avatar
Avatar
1
aug. 16
6170
The following error appears and sales orders and quotations are gone in the menu, what to do?
sales error quotation
Avatar
0
mrt. 15
5203
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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