
Search In
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)
def teacher(s
If you want to make relations between models in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
<pre>name = fields.Char(string="Title", required=True)
description = fields.Text()
class Session(models.Model)
Api.onchange will trigger the call to the decorated function if any of the fields specified in the decorator is changed in the form:
In below code you can use in your .py file.
@api.onchange('fieldx')
def do_stuff(self):
if self.fieldx == x:
self.fi
If you want to adding a class to their root elements in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard .js file:
local.HomePage = instance.Widget.extend({
className: 'oe_petstore_homepage',
...
});
local.Greetings
If you want to instantiate classes using the new operator in OpenERP(Odoo) follow the below mentioned code and paste it in your .js file.
var MyClass = instance.web.Class.extend({
say_hello: function() {
console.log("hello", this.name);
Hi Friends, Please help me with the Problem, I want to migrate from OpenERP-7 to Odoo-9 and while doing so I got an error.
Error is below .
File "/home/shiva/WORKSPACE9/OPENERP-9/openerp/addons/rent/rent.py", in get_totals
prices = tax_pool.co
Caching is an important feature to improve the performance of Apache server. By creating the caching rules effectively, we can conserve a good amount of resources and the content access by the user is significantly fast. Apache offers several methods
Log4net is an open source library that allows .NET applications to log information in many ways. Here we are going to see an example for logging in a file.
Few steps to follow to log in a file:
1) Add log4Net dll in the application.
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 framework.
Apache web server allows access based upon different conditions. For example we can restrict access to url http://firstexample.com/ (mapped to /var/www/public/images directory) from 192.165.1.0/24 network.
Apache provides access based on different c
