
Search In
In Magento lets see if we are required to generate invoices of the orders and their pdf consecutively from admin panel.
how we can do it:
1. Create a file config.xml in an etc folder in our module.
2. Then Create a controller folder in which ad
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):
self.ensure_one()
Hi,
I am trying to hit a MVC web API for deleting the record but i am getting the error that no resource found. I am able to hit the API using PostMan and fiddler but i am unable to hit it using Rest Clinet. Here is my code
var request = new RestRe
If you want to make the _sel_ function in OpenERP use below code -
def _sel_func(self, cr, uid, context={}):
obj = self.pool.get(’Test.relation.model’)
ids = obj.search(cr, uid, [])
res = obj.read(cr, uid, ids, [’Demo’, ’id’], context)
res = [(r[’id
Hello Reader's! If you having a set of given url's you need just the title of them, then you can use the PHP code below to extract title
<?php
function TitleURL($YourURL){
$str = file_get_contents($YourURL);
if(strlen($str)>0){
$str
Hello Reader's. If you have given a date and you just need to add or subtract number of days from it then you can use the code below:-
var SubDays = 15;
$.datepicker.formatDate('yy/mm/dd', new Date() - SubDays) ;
Or you can also calculate as follo
If you want to widget parents and Children in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard .js file:
local.HomePage = instance.Widget.extend({
start: function() {
var greeting = new local.GreetingsWidget(thi
In count records retrieve a list of records and count them, search_count() can be used to retrieve only the number of records matching the query. It takes the same domain filter as search() and no other parameter.For example code is like below.
mode
In defaults function first we have to go in .py file (python file)
After that we have to decide where we want defaults function and then give attribute defaults function to that field.
See below python code in .py file for reference : -class hr_empl
I have tried this code:
require_once('php/lib/nusoap.php');
$client = new nusoap_client('http://210.212.23.51/rtpsappeal/service1.asmx?WSDL',true);
$userKey = "Zxo7654IBN";
$applicationId = '040172192101500191';
$result = $client->call(
