Featured
-
Function calling on button click in OpenERP
Adding a button on an OpenERP view is very easy an
by dinesh.singh
Tags
How to create Odoo Search views?
If you want to make Search views in OpenERP(Odoo) follow the below mentioned code and paste it in your .xml file: -
<="" field="">
<record model="ir.ui.view" id="course_search_view">
<field name="name">cour...
Odoo Form views
If you want to make Form view in OpenERP(Odoo) follow the below mentioned code and paste it in your .xml file: -
<group colspan="4">
<group colspan="2" col="2">
<separator string="General stuff" colspan="2">
...
Odoo Tree View
If you want to make tree view in OpenERP(Odoo) follow the below mentioned code and paste it in your .xml file: -
<tree string="Idea list">
<field name="name">
<field name="inventor_id">
</field></field>...
Generic view declaration in Odoo
If you want generic view declaration in OpenERP(Odoo) use the below mentioned code by pasting it in your .xml file: -
<record model="ir.ui.view" id="view_id">
<field name="name">view.name</field>
<field name="mo...
Odoo Actions and Menus
Action- There are different types of actions in Odoo:
1- Window: Opening of a new window
2- Report: The printing of a report
3- Custom Report: The personalized reports or RML Report: The XSL:RML reports
4- Execut...
How to Build an Odoo module
If you want to build an Odoo module in OpenERP(Odoo) follow the below mentioned step.
For creation of any module in Odoo you have to make four files,given below-
1-__init__.py // its indicate the import instructions for various Python fi...
How to Start/Stop the Odoo server ?
If you want to Start/Stop the Odoo server in OpenERP(Odoo) follow the below mentioned step-
Step-1 Go to the start menu-> Service-> search service ->Select line and click on it.
Step-2 After that Restart/Start/Stop's buttons .
That...
Discussions and notifications in Odoo
One is likely to mistake Odoos technical models for directly fulfilling business needs. The models actually enable to add capabilities to business objects, by eliminating the need of building them by hand.
Odoo's email and messaging system, ca...
Editing in the Odoo administration
If you want to setup editing in the Odoo administration in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file -
model.py
'data': [
'security/ir.model.access.csv',
'templates.xml',
...
Field edition in Odoo
If you want to make field edition in OpenERP(Odoo) follow the below mentioned code and paste it in your models .py file: -
_name = 'test.demo'
name = fields.Char()
biography = fields.Html()
academy/templates.xml
...
URLs and routing in Odoo
Hello Friends,
If you want to use urls and routing in OpenERP(Odoo) paste the below mentioned code in your .controllers.py file: -
'Url': url.search([])
})
@http.route('/academy//', auth='public', website=True)
d...
Could not execute command 'lessc' in odoo-9
If "Could not execute command 'lessc'" Error ocour while installing odoo-9 and the login page will not show clearly.
Then use this six command in terminal and run it one by one
1- sudo apt-get install nodejs
2- sudo apt-get install npm
3-...
Odoo/OpenERP : Advance Point of sale Software
Hello Guys,
With advent of POS (point of sale) software, it has become quite easy & trouble-free for the hospitality business owners, especially hotel & restaurant owners to run their business in quite better & healthy way. A poin...
How to Connect to Odoo using Google Account
Hello Guys.
Important: Make sure Odoo is correctly configured to send email before starting this tutorial. Odoo will need to email an activation link when you enable OAUTH.
So, lets get started.
Enabling OAuth Support in Odoo
Login to O...
Storing data in Odoo
If you want to storing data in OpenERP(Odoo) follow the below mentioned step.
Step-1 first you have to difine the data model
Step-2 imported from __init__.py for loded the file.
Step-3 academy/models.py
Step-4 academy/__openerp...
Creating templates in Odoo
If you want to creating templates in OpenERP(Odoo) follow the below mentioned code in your .xml file.
<openerp>
<data>
<template id="index">
<title>Academy</title>
<t t-f...
Odoo in the browser
If you want to run Odoo in the browser follow the below mentioned commond in terminal:
./odoo.py --addons-path addons,my-modules
A demonstration module in Odoo
If you want to demonstration module in OpenERP(Odoo) follow the below mentioned step:
for creation of any module in Odoo you have to make five files,given below-
1-__init__.py // its indicate the import instructions for various Python ...
Creating a basic module in Odoo
If you want to creating a basic module in OpenERP(Odoo) follow the below mentioned step:
for creation of any module in Odoo you have to make four files,given below-
1-__init__.py // its indicate the import instructions for various Pyth...
Editing Layout and Media Reference Guide in Odoo
If you want to editing reference Guide for layout and media in OpenERP(Odoo) follow the below mentioned code in your .xml file:
To edit Media Reference Guide in Odoo-
<div class="media_iframe_video" data-src="[your url]" >
<div...
Odoo: Javascript Options
If you want to Javascript Options in OpenERP(Odoo) follow the below mentioned code in your Static->SRC->JS file: -
<div data-js="snippet_testimonial_options" data-selector=".snippet_testimonial">
[...]
</div>
(function(...
Default option methods in Odoo
If you want to default option methods in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<template id="snippet_demo_opt" name="Snippet demo Options"
<a href="#">Your Option</a>
<template id=...
Options group properties in Odoo
If you want to options group properties in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<template id="snippet_demo_opt" name="Snippet demo Options" inherit_id="website_less.snippet_options">
<xpath expr="//di...
How to add custom styles to your theme in Odoo ?
If you want to add custom styles to your theme in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<xpath expr="/form/header/button[@name='action_quotation_send']" position='attributes'>
...
How to create a specific page layout in Odoo?
If you want to create a specific page layout in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<!--?xml version="1.0" encoding="utf-8" ?-->
<openerp>
<data>
<!-- === Demo Page === -->
...
How to add new elements or style the existing header in odoo?
If you want to Extend the default Header in OpenERP(Odoo) follow the below mentioned code in your .xml file:
<template id="snippet_testimonial" name="Testimonial snippet">
<section class="snippet_testimonial">
<div class...
Structure of an Odoo page
If you want to create Structure in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 Insatll the website builder module.
Step-2 Go to website menu and click it.
Step-3 Click on content->new page.
Step-4 Add the new page.
Step...
Installing your theme in Odoo
If you want to installing your theme in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 Go to website module and click it
Step-2 Select Users->Content New Page
Step-3 create a template
Step-4 select the update theme
Step-5 Ap...
How to Edit __openerp__.py ?
If you want Edit __openerp__.py in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 Go to given module and click it.
Step-2 You will find four files mentioned below.
(i)-__openerp__.py
(ii)- __init__.py
(iii)- _python.py
(iv)-_vie...
How to Create a Theme Module in Odoo?
If you want to create a theme module in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 insatll web_theme module .
Step-1 Go to Settings menu and click .
Step-2 Select update theme.
Step-3 Select the menu .
Step-4 Click on Edit bu...
How to Update Your Theme in Odoo?
If you want to update Your Theme in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 Go to Settings menu and click
Step-2 Select Users button
Step-3 Select the logged-in User button
Step-4 Click on Edit button
Step-5 Enable "Techni...
Odoo's XML files
For creation of Odoo module we need four files, given below
1-
Demo_views.xml
(with the view definitions of Demo module).
2-__openerp__.py
(with the description of your module and import of your xml files)
3-Demo_python.py
(with demo m...
How to install OpenERP-9 (Odoo9) in windows 7, 8 and 10 ?
If you want to install OpenERP-9 (Odoo9) in windows 7,8 and 10 follow the below mentioned steps:-
Step-1 Go to the link->"https://nightly.odoo.com/9.0/nightly/exe/
Step-2 Select->latest exe file like->odoo_9.0.latest.exe -> (Latest...
How to install OpenERP-9 (Odoo9) in windows server 2012 R2 ?
Step-1 Go to the link https://nightly.odoo.com/9.0/nightly/exe/
Step-2 Select->latest exe file like->odoo_9.0.latest.exe -> (Latest Date)
Step-3 click on Downloaded exe->select the languages->click on Next button.
Step-4 select...
How to Debug in odoo 8
Use below code line in .py file if you want to debug file in odoo
import ipdb; ipdb.set_trace();
And then restart server use this command in terminal and then restart your openerp- server with the debug option.
# openerp-server debug
How to Use XML-RPC of Odoo 8
XML-RPC is very useful in openerp. The XML-RPC protocol communicate to server and clients. XML-RPC is a very simple protocol which allows the client to do remote procedure calls. The called function, its arguments, and the result of the call are...
How to calculate two fields and show total in third fields in openerp
To create two float fields in openerp you have to make third fields function and also this is a auto calculate in openerp.
Like:- field3 = field1 + field2
EXAMLE -
'field3' : fields.function(get_total, method=True, string='FIELD3',type='i...
Odoo 9.0 release
As we all know that today being 1-10-2015 odoo version9 has been released, and our company is strongly looking out to partition the fundamental features with odoo9.
Odoo version 9 have loads of incipient features including the utilizer interface...
How to Create write function in openerp
To create writer function in openerp you have to override the create and write methods, as show in example below.
Example:- use this code to write and override function in openerp
def write(self, cr, uid, ids, values, context = None):
re...
Some useful parameters used by multiple methods in OpenERP/Odoo
Here is useful parameters used by multiple methods in OpenERP
cr: database connection (cursor)
uid: id of user performing the operation
ids: record ids to perform the operation on
context: optional dictionary of contextual parameters
For e...
How to check partner balance in openerp
To check partner balance in openerp follow these step given below
Step1-First Install Account module, to install Account module in openerp
Step2- Go to Account -> Reporting -> Generic Report -> Partners -> Partners Balance and save...
How to get the invoice associate with the picking of invoice in OpenERP/Odoo ?
Step-1 Go to picking_invoice_relation module.
Step-2 invoice->invoice.py.
Step-3 After that used below code in invoice.py file.
if not isinstance(ids, types.ListType): # Ensure it is a list before proceeding.
ids = [ids] ...
How to check if audittrail rule apply in super admin mode in OpenERP/Odoo ?
Step-1 Go to audittrail module.
Step-2 audittrail->audittrail.py.
Step-3 After that used below code in audittrail.py file.
if self.check_rules(cr, SUPERUSER_ID, field_obj._obj, method):
x2m_model_ids = pool.get('ir....
How to check credential key in avalara-salestax in OpenERP/Odoo ?
Step-1 Go to avalara_salestax module.
Step-2 avalara_salestax->account_tax.py.
Step-3 After that used below code in account_tax.py file.
avalara_obj = AvaTaxService(avatax_config.account_number, avatax_config.license_key,
...
unique records creation with account_number and company_id in avalara-salestax
To use constraints on unique records creation with account_number and company_id in avalara-salestax in OpenERP/Odoo follow below steps-
Step-1 Go to avalara_salestax module.
Step-2 avalara_salestax->avalara_salestax.py.
Step-3 After that...
How to check invoice date in OpenERP/Odoo ?
Step-1 Install the account_invoice_sequential_dates module.
Step-2 Account_invoice_sequential_dates->invoice.py
Step-3 After that custmozie invoice.py(Python file) file: In below example, I have custmozied invoice.py file. You can directly ...
How to make Purchase Usability Extension in OpenERP/Odoo ?
Step-1 Install the purchase_usability_extension module.
Step-2 purchase_usability_extension->Purchases.py
Step-3 After that custmozie purchases.py(Python file) file: In below example, I have custmozied purchases.py file. You can directly cop...
How to search name field in OpenERP
To install account module and searching by name in account module in customers invoice form and get results in particular name use this code in account_invoice file in account module in openerp.
Code given below:-
def name_search(self, cr,...
How to make Long Term Agreement (Framework Agreement) for purchases in OpenERP/Odoo ?
Step-1 Install the Framework_agreement module.
Step-2 Framework_agreement->Model->Purchases.py
Step-3 After that custmozie purchases.py(Python file) file:
In below example, I have custmozied purchases.py file. You can directly copy the b...
How to use classical inheritance in OpenERP/Odoo ?
If you want to use classical inheritance in OpenERP use below code -
class subscription_document(osv.osv):
_name = "subscription.document"
_description = "Subscription Document"
_columns = {
'name': fields.char('Name', ...