Search In
In record data is accessible via the read() method, which takes a list of ids (as returned by search()) and optionally a list of fields to fetch.
ids = models.execute_kw(db, uid, password,
'res.partner', 'search',
[[['is_company', '=', True]
Solr schema.xml have a default unique key which is "id". This field has "string" type hence can not be used for sorting.
We can not change its type as it is required as "string" because if you have enabled the QueryElevationComponent in solrconfig.xm
Creating a module in OpenErp is very simple. All you need to know is the basic skeleton of any module to be used in the system. There are four major files that build up your module:
1.) init.py file
2.) openerp.py file
3.) mymodel.py file
Indexing:
Solr gives you a quick response and results because of indexing. What does this mean? It means that it searches index instead of the text to retrieve the results for you.
In book , you search for the index in the index page of the book an
Widgets are the GUI elements that can perform some controlling tasks. In OpenERP, we can see a few of widgets that have significance in the views like statuses of the any process, seeing states of an object, or getting lists out of huge data, or spli
Step-1 Install Audit Trail module
Step-2 After that custmozie .py(Python file) file: In below example, I have custmozied .py file. You can directly copy the below python code in your .py file:-
from openerp.osv import fields, osv
from openerp.osv.os
The SQL Joins are mostly used to combine records from two or more tables in a database for getting data. A JOIN defined as combining fields from 2 tables.
There are several operators that can be used to join tables. The opertaors that are used such
In OpenERP, Tuple represents recursive relationship of type and the tuple models is a browsable model which start loading relationships type from and use it param ttypes which is a list of relationship types and follow 'one2many' and 'man
Validating an empty field on submit through JavaScript
As we know in almost all the web applications we have forms which contain text boxes and text fields to input some data and submit it. Sometimes knowingly or unknowingly users can submit the for
In solr we can create a field which can update as the related doc is searched by user.
For that we need to add a field in schema.xml as:
<field name="popularity" type="long" indexed="true" stored="true"/>
In the below code we have used a ma