
Search In
Records can be deleted in bulk by providing their ids to unlink().
For example code like below.
models.execute_kw(db, uid, password, 'res.partner', 'unlink', [[id]])
check if the deleted record is still in the database
models.execute_kw(db, uid, pas
I was integrating solr with java using maven dependencies
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>5.5.0</version>
</depen
In openerp to create print template of the survey means that first check response or survey and if response is available then print this response otherwise print survey form and the current row, from the database cursor and also the current user&rsqu
Odoo provides a search_read() shortcut which as its name notes is equivalent to a search() followed by a read(), but avoids having to perform two requests and keep ids around.for example code is like below.
models.execute_kw(db, uid, password,
'
How to remove a child element by ID of a parent div
var element = document.getElementByid("parentDiv").children("#childDiv1");
element.remove();
here parentDiv have a child with id childDiv1
Hello if you want to get last insert id or something equivalent to this you can try following steps:-
Lets take this example, Here I just inserted the field in column
$data = array('menuName' =$_REQUEST['menuname'])
$this->Menu->crea
In fat model and skinny controllers method we write our database query in model. Normally we use validation rules and model binding in our model and all query write in controllers but as we know that when url routing requests first comes to controlle
We have ?? Operator which is called null- coalescing operator in c#. It takes two operands, one at the left side and one at the right side and checks if the left side operand is null or not. If is is null then it will return the right side operand el
In OpenERP for clicking the selection's icon in the web client, first create the users and check all rights of the users and than click the selection icon in web client and compose a default action for the model in the user's selection,
In OpenERP first we create the form and browse the record of account invoice line and then select to the product in product form and then find to the the current user’s ID for security checks. In account invoice line we check to
