Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How to change a search vue automatically according to the current vue ?

Subscribe

Get notified when there's activity on this post

This question has been flagged
filterviewssearchodoo
2812 Views
Avatar
SERI Koubi Sokouri Emmanuel

I have a model named repair.order and in its views.xml there are list, kanban, graph and search views. When I use a filter in kanban vue for exemple, the filter remains when I switch to the list view. I want to remove the filter selected in search view when I switch from kanban vue to list view.

model="ir.ui.view" id="view_repair_order_search">
name="name">Recherche ordre de réparation
name="model">repair.order
name="arch" type="xml">
string="Recherche ordre de réparation">
name="reference" string="Numéro de l'OR ou Immatriculation"
filter_domain="['|', ('reference', 'ilike', self),('vehicle_id', 'ilike', self)]"/>
name="reference"/>
name="client_id" operator="child_of"/>
name="vehicle_id"/>
name="vehicle"/>
name="state"/>
name="workshop"/>

name="service_mechanical" string="Atelier Mécanique"
domain="[('service_mechanical', '=', True)]"/>
name="service_gps" string="Atelier GPS"
domain="[('service_gps', '=', True)]"/>
name="service_bodywork" string="Atelier Tôlerie"
domain="[('service_bodywork', '=', True)]"/>
name="service_painting" string="Atelier Peinture"
domain="[('service_painting', '=', True)]"/>

name="active" string="Archivé" domain="[('active', '=', False)]"/>

expand="1" string="Group By">
string="Status" name="state" context="{'group_by':'state'}"/>



name="state" string="Status" icon="fa-bar-chart" enable_counters="1"/>
name="priority" string="Priorité" icon="fa-star" color="#FCBC0C"
enable_counters="1"/>





id="view_repair_order_kanban" model="ir.ui.view">
name="name">Kanban ordre de réparation
name="model">repair.order
name="arch" type="xml">
create="1" edit="0" archivable="false" class="o_res_partner_kanban"
sample="1">
name="client_id"/>
name="state"/>
name="activity_ids"/>
name="priority"/>
name="receipt_date"/>
name="reference"/>
name="vehicle_id"/>
name="vehicle"/>
name="workshop"/>
name="is_validate_sup"/>
name="id"/>
field="state"
colors='{
"0_draft": "muted",
"1_received": "primary",
"3_in_diagnosis": "warning",
"4_waiting_quotation": "info",
"6_waiting_parts": "info",
"5_waiting_customer_validation": "info",
"7_ready": "primary",
"8_in_progress": "warning",
"90_finished": "success",
"91_Vehicle_delivered": "success",
"92_cancel": "danger"
}'
/>

t-name="kanban-box">

class="oe_kanban_card oe_kanban_global_click">
name="web_ribbon" title="Validé" bg_color="bg-danger"
attrs="{'invisible': [('is_validate_sup', '=', False)]}"/>
class="oe_kanban_content">
name="vehicle_id" class="mt-1 text-center">
name="workshop" widget="badge" decoration-info="state != '92_cancel'"/>

name="client" class="mt-1">


N°
name="reference"/>


name="client" class="mt-1">

Client :

name="client_id"/>

name="vehicle" class="mt-1">

Véhicule :

name="vehicle"/>

name="vehicle_id" class="mt-1">

Immatricule véhicule :

name="vehicle_id"/>


class="o_kanban_record_top mb-0">
class="o_kanban_record_headings">

name="state" widget="badge"
decoration-muted="state == '0_draft'"
decoration-primary="state in ['1_received','2_insurance', '7_ready']"
decoration-info="state in ['4_waiting_quotation', '6_waiting_parts', '5_waiting_customer_validation']"
decoration-warning="state in ['3_in_diagnosis', '8_in_progress']"
decoration-success="state in ['90_finished', '91_Vehicle_delivered']"
decoration-danger="state == '92_cancel'"/>

class="o_kanban_record_bottom">
class="oe_kanban_bottom_left">
reçu le
name="receipt_date" widget="date"/>

class="oe_kanban_bottom_right">
name="activity_ids" widget="kanban_activity"/>
name="priority" widget="priority" class="mr-3" readonly="1"/>










model="ir.ui.view" id="view_repair_order_list">
name="name">Liste ordre de réparation
name="model">repair.order
name="arch" type="xml">
sample="1" name="liste_order_repair"
decoration-muted="state == '0_draft'"
decoration-primary="state in ['1_received','2_insurance', '7_ready']"
decoration-info="state in ['4_waiting_quotation', '6_waiting_parts', '5_waiting_customer_validation']"
decoration-warning="state in ['3_in_diagnosis', '8_in_progress']"
decoration-success="state in ['90_finished', '91_Vehicle_delivered']"
decoration-danger="state == '92_cancel'">
name="reference"/>
name="client_id"/>
name="vehicle_id" string="Immatriculation véhicule"/>
name="workshop" widget="badge" decoration-danger="state != '92_cancel'"/>
name="state" widget="badge"
decoration-muted="state == '0_draft'"
decoration-primary="state in ['1_received','2_insurance', '7_ready']"
decoration-info="state in ['4_waiting_quotation', '6_waiting_parts', '5_waiting_customer_validation']"
decoration-warning="state in ['3_in_diagnosis', '8_in_progress']"
decoration-success="state in ['90_finished', '91_Vehicle_delivered']"
decoration-danger="state == '92_cancel'"/>


id="action_repair_order" model="ir.actions.act_window">
name="name">Ordre de réparation
name="type">ir.actions.act_window
name="res_model">repair.order
name="view_mode">kanban,tree,form,graph
name="context">{}
name="help" type="html">

class="o_view_nocontent_smiling_face">
Créer un nouvel ordre de réparation !







0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
What could be another way which feels more natural for filters?
filter search odoo odoo17
Avatar
0
Dec 24
1590
[V12] Filter customers property_product_pricelist in res.partner Solved
filter views search res.partner
Avatar
Avatar
2
Sep 21
5612
Product search View in MRP, Inventory etc.
filter views search variant autofill
Avatar
0
Jul 24
1113
how can i create a filter that uses the "and" condition
filter search
Avatar
Avatar
Avatar
2
Nov 23
4066
How does line item display as kanban mode on mobile device Solved
views odoo
Avatar
Avatar
Avatar
2
Jul 22
7916
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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