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

How to Access old API in Odoo ?

If you want to access old api to new api you have to move on migration method and By default, using new API you have to work on a new RecordSet class instance by yourself. But old context and model are still available in old api. means you have t...

YAML in Odoo

In YAML first we have to check all xml file in addons then after get access to the new API in Python YAML tag. . For example you can see below code. !python {model: account.invoice, id: account_invoice_customer0}: | self # is now a new ...

Unittest in Odoo

In unit test first we have to check all module in addons then after access to the new API in unittest inside common.TransactionCase and others function . For example you can see below code. class test_partner_firstname(common.TransactionCase)...

logical expressions in Odoo

In given below table logical expressions are defined . Operator Meaning Example Result == equals 1 + 1 == 2 True != does not equal 3.2 != 2.5 True <  less than 10 < 5 False >  greater than 10 > 5 True ...

Range in Odoo

The range function specifies a range of integers: range(start, stop) - the integers between start (inclusive) and stop (exclusive) The third value can be accepted by specifying the change between the values. range(start, stop, step) -...

Difference between Input and raw_input in python

input : Reads a number from user input.You can assign (store) the result of input into a variable. Example: age = input("How old are you? ") print type(age) print "Your age is", age print "You have", 65 - age, "years until r...

How to create a report for the Session model in Odoo-9

If you want to create report for the session model ,first you have to move on .py file and setup all dependencies module. And For each session, it should display session's name, its start and end, and list the session's time date and unique numbe...

How to Print reports in Odoo-9

If any report have a combination of two elements,like below-> 1-in reporting all session contain an ir.actions.report.xml, for which a <report> shortcut element is provided, for example code is below--> <report id="account_inv...

One2One fields in Odoo-9

There is one field that since v6 and above was deleted and no longer used, ie one2one relations field. If we tried to make it in v6 the error will definitely occurs. OpenERP provides a solution 'combine' to the field many2one but here there is l...

How to create an osv_memory wizard systems in Odoo-9 ?

In osv_memory wizard, just create a normal object, But in place of inheriting from model.model you should it from Inherit from model.model_memory. Methods of wizard are inside the object and if the wizard is complex, You can define workflow on...

How to modify javascript function in point of sale in odoo 9

To modify javascript in Odoo-9 follow the below steps Go to point of sale module ->static file->src->js->screens.js For example you can use the below code in screens.js file. function openerp_pos_screens(instance, module){ //mod...

How to Modifying a report in odoo-9?

To modifying a repor in Odoo-9 follow the below steps one by one: Step-1 First we have to Modify existing reports which will then replace the originals in our OpenERP database, Step-2 create new reports for the selected object. Step-3 sel...

How to make the scheduled call in Odoo-9 ?

To make the scheduled call in Odoo-9 follow the below steps one by one:Step-1 Go to Sales Modules-> Phone Calls->scheduled calls Step-2 Call Summary ->Date->Duration->Responsible ->Administrator Step-3 Sales Team->Sales Dep...

Activate the developer mode and Updates, Update Apps List and Apply Scheduled Upgrades in Odoo-9

Step-1 Go to browser. Step-2 Click on Question Mark which is located under your (?) in the top right corner of Odoo. Step-3 Click on about and Updates,Update Apps List and Apply Scheduled Upgrades. Step-4 Click on acti...

Remove 'provision' from selection list when configuring Cash Flow Codes in OpenERP(Odoo)

In below example, I have written Python script to remove 'provision' from selection list when configuring Cash Flow Codes . see below python code and use it in .py file : def fields_get(self, cr, uid, fields=None, context=None): res = super...

How to Include only parent level class in Odoo-9

In parent level class we have to go in python file and add some function and script. In below example I have written Python script to Include only parent level class. you can use below python code in .py file : def addMaterialsRecursive(comp...

How to Add followers linked to new partner in OpenERP(Odoo)?

To add followers linked to new partner fields first we have to go in .py file (Python file) After that we have to decide where we want followers linked to new partner fields and then write start to end python code in .py file: for field in fi...

How to get oldest cache time in point of sale module in openerp

To achieve the oldest cache time first you have to install point of sale module and inherit the pos_config class in your own module and fetch cache ids in pos_config class and then use this function in your own module. @api.depends('cach...

How to set process in subscription module in openerp?

To set process in subscription module, first you need to install subscription module and set interval number and interval type fields in subscription module is used to set the process. You can use this function as given below def process(self...

How to create different units of measure in Odoo?

To create Unit Of Measure(UOM) in openerp first install sale module and go to sale module menus in openerp and following these step given below Step-1 go to Sales Configuration menu and click it. Step-2 then go to Configuration Settings->...

Assertions in Odoo

Generally we use qunit assertions for web's test .If any module are not working proper then we use qunit assertions in odoo server.Assertions having following list . 1-async() Instruct QUnit to wait for an asynchronous operation. 2- deepEqu...

How to writing a test case in Odoo ?

If you want to writing test case, you have to add javascript code in your Odoo manifest files.For example see below code. { 'name': "Demonstration of web/javascript tests", 'category': 'Hidden', 'depends': ['web'], 'test': ...

RPC calls in Python

In RPC we have to move on .py file and make script api to rpc call in python side after that move to function fetches the return value of the Python methods, converted to rpc call.For example see below code. session.rpc('/web/dataset/resequenc...

Calling Odoo models in call() and query() method

call() and query() method are the odoo methods which are used in def function in .py file, it is used to call the value. To call the Odoo server objects we use two primary methods which are call() and query(), for this see the code example bel...

Upgrade Lab module in GNU Health

Hello Guys, Serpent Consulting Services Pvt. Ltd. has extensive experience in the field of ERP implementation and consulting. We present you the module that allows the user to select the Lab to get the lab test done. GNU Health is a health ...

How to Generate all the objects from the templates in openerp

TO Generate all the objects from the templates in wizard follow below given point in openerp 1-param company: It refers company the wizard is running for. 2-param code_digits: It is a number of digits that accounts code should have in the COA ...

How to Recursively load the template objects and create the real objects in openerp

To Recursively load the template objects and create the real objects in openerp show detail given below. 1-param company: company the wizard is running for 2-param code_digits: number of digits the accounts code should have in the COA 3-par...

Subclassing Widget in Odoo

Subclassing widget is most important for Odoo.With the help of subclassing Widget() we can change the standard manner with the extend() method, and provides a number of abstract properties and concrete methods .Subclassing Widget looks like this...

Scaffolding in Odoo

Scaffolding is the automated creation of a skeleton structure to simplify bootstrapping (of new modules, in the case of Odoo). While not necessary it avoids the tedium of setting up basic structures and looking up what all starting requirements a...

Configuration file in Odoo

Most of the command-line options can be specified with a configuration file. Most of the time, they use similar names with the prefix ( - ) removed and other ( - ) are replaced by _ for e.g. --db-template becomes db_template.ote-. Controllers ...

Controllers in Odoo

Controllers need to provide extensibility, much like Model, but can't use the same mechanism as the pre-requisites and database with loaded modules. Controllers are provide their own extension mechanism, separate from that of models: Controller...

How to declare model attribute in Odoo

In a Model attribute order should follow the series given below. Private attributes (_name, _description, _inherit, ...) 1. Default method and _default_get 2. Field declarations 3. Compute and search methods in the same order as field declara...

How to use Symbols in Odoo ?

Odoo Python Class : use case for code in api v8, underscore lowercase notation for old api. And Variable name use following classes and Api to given below. use camelcase for model variable use underscore lowercase notation for common variable....

How to use Imports file in Odoo

The imports are ordered as 1. External libraries (one per line sorted and split in python stdlib) 2. Imports of openerp 3. Imports from Odoo modules (rarely, and only if necessary) Inside these 3 groups, the imported lines are alphabetically ...

Security,View and Action in Odoo

In security,view and action use the following pattern : 1-For a menu: _menu 2-For a view: _view_, where view_type is kanban, form, tree, search, 3-For an action: the main action respects _action. Others are suffixed with _ , wh...

How to upload database dump in Odoo ?

The upload method https://upgrade.odoo.com/database/v1/upload/ use this link to Upload a database dump Parameters key (str) -- (required) your private key request (str) -- (required) your request id Returns request result Return type jso...

How to create a database using upgrade request in openerp

To upgrade list of each database given information about one particular error. Each dictionary can contain various keys depending on the type of error but you will always get the reason and the message keys as below: reason: the error type mess...

Asking to process your request in Odoo server

This action ask the upgrade platform to process your database dump. The process method is below Use the below link to download the Dump Database https://upgrade.odoo.com/database/v1/process To process a database dump Below are the Para...

How to create request method on odoo server ?

If the create method is successful, the value associated to the request key will be a dictionary containing various information about the created request: 1-id: the request id 2-key: your private key for this request For example code is like b...

How to Sending a signal from a subflow in Odoo/OpenERP

When a workflow is embedded in an activity (as a subflow) of a workflow, the sublow can send a signal from its own activities to the parent workflow by giving a signal name in the attribute signal_send. Odoo processes those activities by sending ...

Triggers in Odoo

Triggers are recorded in database as record IDs (together with the model name) and refer to the workflow instance waiting for those records. The transition definition provides a model name (attribute trigger_model) and a Python expression (attrib...

How to Add the Python function in odoo-9

Here is just one thing to do: create the Python function which is called by the automated action. The Python function process_demo_check_queue will automatically create and update the value called by automated action. So let us create this in t...

Signals in Odoo

In addition to a condition, a transition can specify a signal name. When such a signal name is present, the transition is not taken directly, even if the condition evaluates to True. Instead the transition blocks, waiting to be woken up. In orde...

How to creating the views in odoo-9

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

cron jobs in Odoo

To run cron jobs for an Odoo deployment a WSGI application requires a classical Odoo (run via odoo.py) should connect to the database in which cron jobs have to be run (via odoo.py -d) And it should not be exposed to the network. To ensure cro...

How to Creating the new model and fields in odoo-9

First create a model (if you dont have one yet) then create some fields on this model: class check_demo(models.Model):     _name = 'check.demo'     name = fields.Char(required=True)    ...

How to serving static files in Odoo/OpenERP ?

Odoo directly serves all static files in running modules. This may not be ideal when it comes to performances. And static files should generally be served by a static HTTP server. Odoo static files live in each module's static/ folder, so stat...

How to make "Super-admin" password in Odoo/OpenERP ?

Step-1 Configuring Odoo after that we will provide admin_passwd . Step-2 Then use all database management screens (to create, delete, dump or restore databases). Step-3 If the management screens not accessible, then make it accessible from a se...

How to Override to confirm the sale order, if defined and if the transaction is done in openerp

If define Payment Transaction in sale order in sale module then first override the function and inherit to the view from sale and add fields acquirer_name in sale order model and set default draft method and use this function in your own module....

How to make Paper Format in Odoo?

Paper formats are records of report.paperformat and can contain the following attributes: 1. name (mandatory) : only useful as a mnemonic/description of the report when looking for one in a list of some sort. 2. description : a small descript...
1 5 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: