Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to inherit and add new fields in account module in openerp

In openerp first install account module and inherit the views of account module and pass the id of account module views form xml file then give reference in your own module and add your new fields in xml file. Use this code in your own module in...

Useful Remarks in Odo

If you want to add some extra features in your report you can like below feature Twitter Bootstrap and FontAwesome classes can be used in your report template Local CSS can be put directly in the template You can insert a Global CSS in th...

How to show the Barcode in Odoo-9

Barcodes use in Point of sale module which indicates the product sequence number to stocks and warehouse management and Barcodes are images returned by a controller and can easily be embedded in reports thanks to the QWeb syntax: For example code...

Translatable Templates in Odoo-9

If you want to translate reports then you need to define two templates: 1-The main report template 2-The translatable document And follow the follow the following step in given below-> you can go to Settings Reports Report Search...

Field edition in Odoo-9

Field edition in odoo which is specific to a record should be saved on that record, soFor record fields, templates can use a special t-field directive which allows editing the field content from the website using field-specific interfac...

Accessing data in Odoo-9

With the help of accessing data fetch the records from the database instead of having a static list and after that we can search() returns a set of records matching the filter.for example you can see below code and use in .controller.py file...

Demonstration data in Odoo-9

Demonstration data is the most important data in odoo-9 so it's possible to test it easily. This is done by adding a demodata file, which must be linked from the manifest. For example you can see below code . <openerp> <dat...

how to create filter in openerp?

To create a filters in OpenErp, First install product module and inherit view of product module and use filtering for particular fields and create filter in your own module. For example use this below code in .xml file <record id="rent_p...

Kanban view in Odoo-9

Kanban view defined as A kanban view shows a set of cards possibly grouped in columns it is important for odoo module to describe xml functionality. For example you can see below code which is use in .xml file. <record model="ir.ui.vi...

Waht is a functional field and how to calculate it's value

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,...

Cool widgets in Odoo-9

In Odoo9 Widgets are the GUI elements that can perform some controlling tasks. In Odoo9, 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 da...

Access rights in Odoo-9

In odoo-9 every admin having many types of right to give permission of all users and manager. And Access rights are defined as records of the model ir.model.access. For example you can see below code-> id,name,model_id/id,group_id/id,perm...

How to get image in product module in openerp

To get small image in product module first inherit the product.product object in product module and add one fields like image_small and write the fucntion _get_image in your own module in openerp. for example you can use the below fucntion in .p...

How to check your description is valid or invalid in openerp

First install the description module and check weather the description in valid or invalid you can do this on basis of the partner name and company name and user signature and also date in description module in openerp. using below fucntion in ....

How to check company unique or not in openerp

To configure and check weather the company is single or double in openerp you have to write this function in your own module in .py file, def check&_companyuniq(self, cr, uid, ids, context=None): sr_id = self.search(cr,uid,[],cont...

Create a dynamic view on Odoo-9

If you want to create dynamic view in Odoo-9 me have to move on .xml file and In dynamic view we can manage view from xml.file in Odoo module, for example you can see below code . <record model="ir.ui.view" id="session_tree"> ...

How to use javascript function in Odoo-9

In javacsript function first we have to move on src file and open the .js file and go one step further by creating a javascript file, name it tutorial_editor.js and place it into the static folder. For example you can see be...

Dropping snippet onto the page in odoo-9

For drooping the snippet onto the page first we have to open the src file, add some class and css feature in css file and jas file after that clicks on an option, the system will add the class specified in the data-select_class attribute. By rep...

Default option methods in odoo-9

In odoo-9 Options apply standard CSS classes to the snippet. Depending on the method that you choose, the UI will behave differently. For example you can see below. <template id="snippet_testimonial_opt" name="Snippet Testimonial Options" ...

theme folder in odoo-9

In odoo-9 first we have to install odoo theme module then after We just created a template specifying our less file. As in below code you can see that, the template has a special attribute named inherit_id. This attribute tells Odoo that our...

How to Add Styles in odoo-9

In odoo-9 first we have to install odoo website builder module after this, lets first create an empty file and named it style.less and place it in a folder called less in static folder. The following rules will style our ...

How to create a specific page layout in odoo-9

To create a specific page layout in odoo-9 you have to first install odoo website builder module and after then at the top you need to ass a whole list of services and provide the possibility of settings to the user interface for the rest of the ...

Styles in odoo-9

In odoo-9 use Style and Css to make for dynamic website. Styles are defined using standard CSS files. You can define a style as default or optional. The default styles are always active in your theme, the optional styles can be ena...

Odoo default theme structure

Odoo default theme structure have many feature to given below. 1- Website builder 2- make odoo structure 3- build website within hour 4- Basic layouts for pages, blog and eCommerce 5- Website Builder integration 6- Basic Snippets 7- Autom...

CMS in Odoo

CMS is the most important part of the Odoo/OpenERP. Its help to use in Odoo dynamic website. CMS helps to make structure acts as a design foundation that you have to update over time to ensure compatibility within your CMS. For example see ...

How to Extend the default Header in odoo-9

If you want to extend the default header in odoo-9 , use the below code. <Customize header> <template id="custom_header" inherit_id="website.layout" name="Custom Header"> // this is a header template. <Assign an id> &l...

How to Edit__openerp__.py in theme module in odoo-9 ?

If you want to edit __openerp_.py in odoo-9 ,for example you can use below code. { 'name':'Tutorial theme', 'description': 'A description for your theme.', 'version':'1.0', 'author':'Your name', 'data': [ ], 'category': ...

How to Create a theme module in odoo-9

If you want to create a theme module first you have to check _init.py file and __openERP.py file. After that you need to inherit the package theme to an Odoo module. main folder- Create a folder and name it like this: theme followe...

XMLtheme in odoo-9

All the Odoo XML file starts with encoding specifications. After that, you have to write your code inside a <data> tag, placed into tag. For example you can see below code.. <xml version="1.0" encoding="utf-8"> <openerp> &...

How to update your theme in odoo-9

Theme is most important part of odoo website and its is also use to make odoo website. When the themes have been installed only after then XML files loaded, and whenever you make changes on an xml file then each and ever time you will have to fo...

How to override field_view_get field in orm model in openerp

In openerp first override the orm model and add fields field_view_get in orm model then return the Dictionary of Fields, arch and toolbar in orm model. you can use this function as given below. def fields_view_get(self, cr, user, view_id=Non...

How to create a new record in board.board object in opererp

In openerp first install board module and inherit object and views in board module and check the current users id values and dictionary values for every fields and then create new record in board module in openerp. you can use this function as...

How to create view in board.board object in openerp

In openerp first install board module and inherit object in your own module and write this function name createview and this function will check the user id and list of the board id in board.board object in openerp. You can use this as given bel...

How to generate the barcode for product in Odoo-9?

If you want generate the barcode for product in odoo You will need the following kind of python code declaration in your .py file: from openerp.osv import fields, orm from openerp.tools.translate import _ def isodd(x): return bool...

Different position values used in xpath

In Odoo/OpenERP many times we need to inherit views in order to add/remove/replace few elements of the original view. Simple use of `` can make that easier. With this tag we have to provide an attribute called "position". This attribute contains ...

Inheriting from mulitple class inOpenERP

If you want to Inheriting from mulitple class in OpenERP/Odoo use below mentioned example. class sale_order(osv.osv):   _name='sale.order'   _inherit=['sale.order','order.status']  class purchase_order(osv.osv...

Setup New Chart of Accounts in an Existing OpenERPConfiguration

If you want to Setup New Chart of Accounts in an Existing OpenERP Configuration in Odoo-9 follow below mentioned steps. 1. Change Deferral method to None of all Account Types 2. Rename code of existing Account Types. 3. Import your new A...

Creating Views Dynamically inOdoo-9

The views in Odoo is done using .xml file. But there are many cases or situation where we are not aware about the exact layout of the form or the total number of fields to be displayed. It varies with users choice. The fields_view_get() function...

How to override method that generated the link to access the document in openerp

In Openerp first Override the method of function and then write the function in your own module and link the documents at of the classic form view and redirect the documents to the online quote if exists using this get_access function as show in ...

Initial Setup & AvaTax Configuration in Odoo-9

If you want Initial Setup & AvaTax Configuration in Odoo-9 follow the below steps-> Step-1 Install Ava Tax Modules Step-2 Setup > Installed Modules > Search for AvaTax Click Install button Step-3 Accounting > Configuratio...

How to override the function and confirm the sale order when transaction is done in openerp

To override the function first install the sale module and override the class sale.order and set draft and use feedback function as show in given below code def feedback(self, cr, uid, data, acquirer_name, context=None): tx = None ...

How to Return the 1st UoM present into the Duration category in openerp

First create fields rent_duration_unity in your own module then create class and use this rent_duration_unity fields which you created first in .py file, as shown in code given below. 'rent_duration_unity' : fields.many2one('product.uom', s...

How to Onchange of product and sets some values in openerp

In product module use onchange function and sets some value and return dictionary of value in on_client_changed function to first inherit the product module class like as product.template class and then use this function in .py file in openerp u...

Mercury Configuration in Odoo-9

Step-1 Go to Apps and install the Mercury Payment Services application module. Step-2 Go to Pint Of Sale Menu and click it . Step-3 Go to the Point of Sale application, click on Configuration ->Mercury Configurations and th...

Supported Operations in Odoo

RecordSet also support set operations you can add, union and intersect, ... recordset. For example you can see below code. record in recset1 # include record not in recset1 # not include recset1 + recset2 # extend recset1 | recs...

How to modifing Environment in Odoo?

If you need to modifiy your current context you may use the with_context() function. self.env['res.partner'].with_context(tz=x).create(vals) Be careful not to modify current RecordSet using this functionality: self = self.env['res.partner']....

How to use Cursor in Odoo ?

When we use cursor first we have to move on Record Recordset and environment share the same cursor.And you can access cursor using like below code. def my_fun(self): cursor = self._cr # or self.env.cr Note- if you need to use...

How to use thread in Odoo ?

In thread we have to move on .py file and after this using thread you have to create you own cursor and initiate a new environment for each thread. committing is done by committing the cursor,For example you can see below code. Environment.ma...

How to use New ids in Odoo ?

In new ids context all work is done in the cache. And after that check all function and ids in python file, and creating a record in a model with computed fields, the records of the recordset will be in memory only. At that time the id&...

How to use api.onchange in Odoo ?

All the work and tasks are done in the cache in on_change context. Therefore so you dont need to be worried for altering database as the recordSet will be able to altred inside your function. Thats the main difference with @api.depends. ...
1 2 4 13
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: