Search In
In Read-only fields, which only display content and don't allow the user to modify it can be useful, but most fields in Odoo also allow editing.
In the write field the Abstract field class sets a widget property named effective_readonly. The field sh
Function fields in OpenERP:
A functional field is a field whose value is calculated by a function and Fields that do not directly store into the DB but compute their value instead
Parameters:
fnct, arg=None, fnct_inv=None, fnct_inv_arg
A functional field is a field whose value is calculated by a function in openerp, hence in openerp functional fields values is calculated by the function and its process of function given below,
Parameters:
fnct,
arg=None,
fnct_inv=None,
fnct_se
To get the table and field information of a table in MySQL using PHP we will follow the steps given below:
Make a connection.
Select a database.
Find the number of fields using the mysql_num_fields().
Then we will print the type, name, length, flag
In OpenERP we can create many2one and one2many relationships between models very easily by creating many2one and one2many fields. You just need to declare a field in _columns and then using this field normally in the rest programming and views as we
If you have the database part ready it is time to create your view.
Example:- I have created a simple form view and tree view which shows the fields ‘name’, ‘numberOfUpdates’ and ‘lastModified’ as created in our model:
<record id="view_check_rec
Delegation is most important for odoo module, it is the third inheritance mechanism which provides more flexibility (it can be altered at runtime) but less power: using the _inherits a model delegates the lookup of any field not f
Sometimes in mysql we have to count the values that are comma separated from a field in mysql. For this we will use the length function in mysql as follows:
select LENGTH(fieldname)-LENGTH( REPLACE( fieldname , ',', '' ) )+1 from tablename where TRI
Inherit OpenERP Models:
There are two ways of Inheritance in openerp:-
1-Object Inheritance - _inherit
2-view inheritance
1-Object Inheritance -
Objects may be inherited in some custom or specific modules. It is better to inherit an object to add/mo
Schema Configuration:
For performing indexing you have to create indexes first in the schema.xml file.
This is the file which you have to configure to perform any further operations. It the contains the fields which needs to be in