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

How to catch SQL constraints violations in OpenERP/Odoo controllers?

If you want to catch SQL constraints violations in OpenERP/Odoo controllers this tutorial will help you, So, You can add an SQL constraint to Odoo model without facing any difficulty, to do this we have to use the _sql_constraints list. O...

Database Auto Backup System in OpenERP/Odoo

Step-1 Go to menu settings->Configuration-> Configuration backup   Step-2 In OpenERP/Odoo Database to enable Auto-Backup system you have to first enable the user to make configurations for the automatic backup of the database...

How to add CSS file and image file in Django?

In Django framework first we create the project and follow these step shown below: Step1- First we create a project in your Django. If you are not able to create a project then use this link. This link helps to create a project in Django frame...

How to set default Unit of Measure Categories(UOM) in odoo-9

In odoo-9 we create functional fields and validate to function and set also set to default value of Unit of Measure Categories(UOM) in selected form. Use this step show in given below Step1- First create fields in your own module in .p...

How to create web service in Odoo-9?

In Odoo-9 you have to create module and xmlrpc folder in server and install the apache2 in your system. After this follow the step given below: Step1- First create apache2 for our system using the command show below sudo apt-get instal...

How to add value in text box using click of button in odoo-9

In odoo-9 first we have to create the three fields in .py file and then add two fields and store it in third fields to click the button to help the get_total function. Then pass get_total function in button. Use this point show in below: 1-...

How to perform all checks on lines in Odoo?

If you want to perform all checks on lines in Odoo follow the following code: if 'account_id' not in vals or 'journal_id' not in vals: raise UserError(_("It is mandatory to specify an account and a journal to create a write-of...

How to check and complete value of journal entry method in Odoo

If you want to check and complete value of journal entry method in Odoo follow the following code:   if 'account_id' not in vals or 'journal_id' not in vals: raise UserError(_("It is mandatory to specify an account and a...

How to set the expected payment date in Odoo?

If you want to set the expected payment data in Odoo follow the following code : if vals.get('expected_pay_date') and self.invoice_id: msg = _('New expected payment date: ') + vals['expected_pay_date'] + '.\n' + vals.get('intern...

How to create and exchange rate difference journal entry in Odoo?

If you want to create and exchange rate difference journal entry in Odoo follow the following code: rate_diff = rec.debit_move_id.debit / rec.debit_move_id.amount_currency - rec.credit_move_id.credit / -rec.credit_move_id.amount_currency ...

How to return the writeoff move.line which is to be reconciled in Odoo?

If you want to return the writeoff move.line which is to be reconciled follow the following code .   return writeoff_move.line_ids.filtered(lambda r: r.account_id == self[0].account_id) @api.multi def remove_move_reconci...

How to get right debit / credit in accounting module?

If you want to get right debit / credit in accounting module follow the following code . target_currency = target_currency or company_currency line_currency = line.currency_id or company_currency amount_currency_st...

How to apply ir_rules by filtering out in Odoo?

If you want to apply ir_rules by filtering out follow the following code . rows = self.env.cr.dictfetchall() ids = [x['account_id'] for x in rows] allowed_ids = set(self.env['account.account'].browse(ids).ids) row...

How to put the invoice link and partner_id on the account_move ?

If you want to put the invoice link and partner_id on the account_move follow the following code : invoice_id = fields.Many2one('account.invoice', oldname="invoice") partner_id = fields.Many2one('res.partner', string='Partner', index=T...

How to check amounts in the partial reconcile table aren't signed or not ?

If you want to check amounts in the partial reconcile table aren't signed or not then follow the following code . amount = abs(line.debit - line.credit) amount_residual_currency = abs(line.amount_currency) or 0.0 ...

How to apply the domain of the user's selection in OpenERP?

In OpenERP first we create the user's in user form. Then the user clicks the selection's icon in the web client, compose a default action for the model in the user's selection and  Return the action that contains all of this and ...

How to manage the point of sale payment method in Odoo?

If you want to manage the point of sale payment method then follow the following code in your .py file.   import time import pos_box_entries from openerp import netsvc from openerp.osv import osv, fields from openerp.tools.tr...

How to return models and ids of the user's in OpenERP?

In OpenERP first we create user's in user's form. Then the access of user's models res_users and pass the ids of the user's. After passing ids of the user's then user's selection will active and Return a tuple. Use this...

How to call custom create method if method is not defined in Odoo?

If you want to call custom create method if method is not defined then follow the following code in your .py file. if values.get('acquirer_id'): acquirer = self.pool['payment.acquirer'].browse(cr, uid, values.get('acquirer_id')...

How to use a unique cron job for all subscriptions system ?

If you want to use a unique cron job for all subscriptions system then follow the following code in your subscription module in .py file. def set_process(self, cr, uid, ids, context=None): for row in self.read(cr, uid, ids, conte...

How to create Membership State for Given Partner in OpenERP

In OpenERP first create partner and then validate the partner form. After this compare it with the membership of the other partner. Then standard dictionary for contextual values and the dictionary of Membership state Value. Use this function ...

How to perform a super with count as False, to have the ids, not a counter in Odoo?

If you want to perform a super with count as False, to have the ids, not a counter in Odoo then follow the following code in your .py file. ids = super(mail_message, self)._search(cr, uid, args, offset=offset, limit=limit, order=order, ...

How to get currency in param in Odoo?

If you want to get currency in param in Odoo then follow the following code in your .py file. incl_tax = prod_taxes.filtered(lambda tax: tax not in line_taxes and tax.price_include) if incl_tax: return incl_tax.compute_...

How to get the outstanding residual value in invoice currency in Odoo?

If you want to get the outstanding residual value in invoice currency in Odoo then follow the following code in your .py file. # -*- coding: utf-8 -*- import json from lxml import etree from datetime import datetime from dateutil.relat...

How to show all transaction state for the payment in Odoo-9

If you want show all transaction state for the payment.Then you have to follow the following code in your .js file.   odoo.define('pos_mercury.pos_mercury', function (require) { "use strict"; var Class = require('web.Class'...

How to get multiple statement_lines in Odoo-9

If you want get multiple statement_lines.Then you have to follow the following code in your .py file. import logging import sets from openerp import models, fields, api _logger = logging.getLogger(__name__) class barc...

How to move an override of the ir.actions.report_xml.create() method in Odoo-9?

If you want to move an override of the ir.actions.report_xml.create() method. Then you have to follow the following code in your .py file. # -*- coding: utf-8 -*- import time import math from openerp.osv import expression from opener...

How to transfer stock in product module in Odoo-9

If you want transfer stock in Product module you have to follow the following code in your .py file. class stock_immediate_transfer(models.TransientModel): _inherit = 'stock.immediate.transfer' @api.multi def process(self): s...

How to check the auto validation kanban state is activated in OpenERP

In OpenERP first we inherit to the rating.rating object and then we create the kanban. if the auto_validation_kanban_state is activated then apply the modification of the kanban state according to the given rating. And then return the action to s...

How to function called by the js in OpenERP

In OpenERP first we will create the function and then create js file.  After this the no Google doc were associated with a record, with the aim to create one then no config is associated with the res_model, and hence it will result a blank t...

How to check model level groups in OpenERP

In OpenERP first we create groups in res.partner object. Then the ` parameter effectively restricts access to that field for users who do not belong to one of the explicitly allowed groups. Field decimal_places must be found in view definition be...

How to create a new partner tag in OpenERP

In OpenERP first we install human resources module and then create a new partner in partner form. Manage partner tags to better classify them for tracking and analysis purposes.  A partner may have several categories and categories have a hi...

How to add a contact in your address book in OpenERP?

In OpenERP first we create the view in .view file. then install to the human resource module and configure it and then we can easily track all activities related to a customer: discussions, history of business opportunities, documents. Use thi...

How to create membership IDs in OpenERP

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

How to return Membership State For Given Partner in OpenERP

In OpenERP first current row of the database cursor finds the current user’s ID for security checks. Then This Function return Membership State For Given Partner and return dictionary of membership state Value. Use this function show bel...

How to given presence of the current user in OpenERP

In OpenERP first we create users and then validate to the trigger. Users register then status will not be sent if not necessary. In usres form type is user_presence. Use this function show in given below def updates(self, user_presence=T...

How to notifychannel API and logging module instead in OpenERP

In OpenERP notifyChannel API shouldn't be used anymore because API is used to connect to other framework. OpenERP provide the logging module instead and it is used for any one in OpenERP server. Use this funtion given below def notify...

How to handle a rpc call in OpenERP

In OpenERP rpc help to change the post, like user want to excute two server in same systems then use rpc and change port number of other server. Basically rpc is used to run server in local systems. Use this function given below def rpc(s...

How to calculates quantity and Confirms production order in OpenERP

In OpenERP first we create the product and then calculates the quantity of product. In product form picking Id is generated and picking id will return to the value of this product and then product will calculated automatically in stock. U...

How to retrun partner delivery address in OpenERP

In OpenERP first create delivery address in delivery form and then we need to define a partner for the brand of the product and also dedicated_delivery_address stand for the case a new type of address. In stock form move all the delivery address ...

How to create users in login form in OpenERp

In OpenERP first create the users and then users is retrieve an active resource of model res_users with the specified login. When users login in web page then verify all the rights and authentication. If users rights and authentication both is fi...

Customize one2many relational field in Odoo

If you want to customize one2many relational filed in Odoo. Then you have to go in .py file of that module then go to .xml file. For example see below code. In xml you would have wrote code like this :   <field name="test" widg...

Create multiple work-flows in a single module in Odoo.

If you want to create multiple work-flows in single module in Odoo for that you have to follow below code- <!-- Activity --> <record id="act_draft" model="workflow.activity"> <field name="wkf_id" ref="De...

How to Share filter created by user in OpenERP?

In OpenERP first we create users and configure users access rights, then user will create a new filter, use filter group and also add a new ir.rule entry for model_id and domain on the target group_id. If restrict is True then instead of adding a...

how to add access rights and group_id in object models in OpenERP

In OpenERP to add access rights and group_id in object models first we have to create users and users have many type of access rights and those access rights were provided by admin. object models reference in fields_relations intersects with acce...

How does tuples represent recursive relationships type in OpenERP

In OpenERP, Tuple represents recursive relationship of type and the tuple models is a browsable model which start loading relationships type from and use it param ttypes which is a list of relationship types and follow 'one2many' and '...

How to Create a new res.users record for each email address in OpenERP?

A new res.users for email address is created for wizard_data. If users already exist then a new res.users will be ignored. New res.users also have a value for the password field, so that they can receive it by email and Returns the ids of the cre...

How to create function to returns value of product name, unit price based on event in OpenERP?

In OpenERP first you have to create the product and price of the product and then relate both price and product to the event form and return the value of the product and validate it to database like as in param self and param cr. Param self ...

How to create function of open event registration and send email to user in OpenERP

In OpenERP, first we create registration in event form and then pass the param ids like as list of event registration's IDs and also mapp to the standard dictionary for contextual values than we create email for users and validate to the even...

How user clicks the selection's icon in the web client in OpenERP

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 selecti...
prev 1 2 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: