Skip to Content
Menu
This question has been flagged
1 Reply
1958 Views

Hi all, I am using odoo version 12. I am new to odoo. I created a simple snippet for bike projects. There are three fields any make, any model, price. I have to combine and give the result as one search. how to apply in this code.

<template id="section-banner" name="BannerCar">

<section class="section-banner">  

 <img src="snippt/static/src/images/banner1.jpg" alt="bike"/>

  <div class="banner-content">    

<div class="container">      

<div class="row">    

    <div class="grid-7"> 

         <h2>LIFE IS GOOD <span>ENJOY THE RIDE</span></h2>        

  <h5><a href="about.html">LEARN MORE</a></h5>      

  </div>   

     <div class="grid-5">  

        <div class="stock-form">         

   <h3>SEARCH OUR STOCK</h3>   

         <form action="#">     

         <input type="text" placeholder="ANY MAKE"/>      

        <input type="text" placeholder="ANY MODEL"/>       

       <input type="text" placeholder="MAXIMUM PRICE"/>     

         <input type="submit" value="SEARCH"/>   

         </form>       

     <div class="price-box">           

   <form action="#" method="post">        

        <input type="range" min="1" max="500" value="50" class="slider" id="myRange"/>    

            <p><span id="demo">50</span></p>               

 <input type="submit" value="SEARCH"/>            

  </form>  

          </div> 

         </div>   

     </div>    

  </div>    

</div>  

</div>

</section>

</template>

Avatar
Discard
Best Answer

you are trying to put this in website (frontend side) ? so in that case you have to call controller and put all your fields with ilike with '|' (OR operator) with domain .

Avatar
Discard