
Search In
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 journal t
In some situation we need session id. In Laravel 3 and Laravel 4.x we have predefined function by which we can get session id. In laravel 3 we will get session id:
Laravel 3:
$session_id =_COOKIE["laravel_session"];
Laravel 4.x:
$session_id = S
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, cr,
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,[],context=con
While making API you can have different kind of response and you have to handle that for displaying data
public IHttpActionResult GetDetails(string Id)
{
logger.Info("GetDetailsById method called");
// BadRequest det
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-off."))
If you want make sure the invoice due date should contain due date ,entered by user when there is no payment term defined in Odoo you have to customized .py file in account.invoice module.For example you can see below code .
import itertools
from l
If you want to get the country name of the first contact of a partner related to the ID sale order in OpenERP use below code -
country_name = sale.partner_id.address[0].country_id.name
In OpenERP first, create custom module and than override the function in .py file in custom module and pass this file to the __init__.py file. Then get the correct line residual amount and pass this line in account invoice. using thi
I have tables on booking orders for trips.
Bookings (booking_id, booking_time, driver_id, customer_id)
Drivers (driver_id, name)
I need to identify all customers who have had at least 60% of their bookings completed by the same driver within the last
