
Search In
Access control has a model to which it grants permissions, the permissions it grants and optionally a group.
Access controls are additive, for a given model a user has access all permissions granted to any of its groups:
if the user belongs to one g
In openerp you make a request to read the assets while the transaction creating is not done and As the assets are generated during the same transaction and the rendering of the templates will call them. There is a scenario where the assets are unreac
In this example,we will have a layout in which there are two fragments in an activity.
In our mobile phone,we will show only one fragment but in tablets,we will show both fragments simuntanously.
activity_main.xml (for mobile phone)
<?
Below is the code that will show the full size image in a dialog box popup without defining layout xml file .
In the code below I have taken two imageview named profile_pic and pro, to get the OnTouchListener action of particular image I hav
Thread pool basically manages the pool of worker thread or it manages the collection of runnable and worker threads execute Runnable from queue.
Here is an example of creating threads 20 times and calling its runnable methods like this :
public cl
To pass data from one fragment to another in android we simply make use of Bundle .
In this example I am sending three String from MainActivityFragment(Fragment) to SecondFragment(Fragment) with the help of Bundle.
Below is the co
Model View Controller is abbreviated as MVC. MVC is the popular web design architecture because it separates the business logic from its view or presentation.
It has three components:-
Model- an object carrying data.
View- visualization of data t
Below code will gives us a table on which when we first time click the headers of column, it display data in ascending order. if we click the header second time than it display values in descending order.
<?php
//
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, context=contex
While working with AngularJS, sometimes when we are receving data from the server and that data contains a string which has line-seperations in it in the form of \n, the angularJS is not able to parse \n and thus we see the entire string in one line
