
Search In
If you want to make wizard views in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard views_xml file:
<record id="action_idea_cleanup_wizard" model="ir.actions.act_window">
<field name="name">Cleanup</field>
We have two methods and features to display content.
1-format the widget's data
2-display the widget
The HomePage widget already has a start() method. This method is part of the normal widget lifecycle and it is automatically call
Sometimes we need to display some alert or dive after some period on Web page.
We can do this by using setTimeout method as below:
<html>
<head>
<title>Demo to show div</title>
<script type="text/javascri
If you want to store and get data in and from Shared preferences, here is the code that can help you:-
Step 1:- Create the Preference and store the values in created preferences:-
Context context=getApplicationContext();
SharedPreferences shared
Sometimes we need to add li elements to ul dynamically based on some list. We can do this by using append() method.
Example- In the below example I have a list "users" and I want to display user names dynamically on page.
<html>
<head
To Create procurements based on quantity ordered in openerp-9 If the quantity is increased and
new procurements are created then use this code given below in .py file
def _action_procurement_create(self):
precision = self.env['decimal.prec
QWeb is an XML-based templating language, similar to Genshi, Thymeleaf or Facelets. It has the following characteristics:
It's implemented fully in JavaScript and rendered in the browser
Each template file (XML files) contains multiple templates.
It
To create Account Analytic Line to compute the line and inherit the class account_analytic_line in odoo-9 then write this function in .py file in your module in odoo.
Use this code show in given below
def _compute_accountanalytic(self, domain=N
To Create a transit location with company_id being the given company_id. This is needed in case of resupply routes between warehouses belonging to the same company, because we don't want to create accounting entries at that time. For this use this co
To Add two fields to product for storing a latitude and a longitude, then for this you have to create a new form widget to display the latitude and longitude of a product's origin on a map.
Displaying the two position fields and a map widget using th
