
Search In
If you want to make print a report in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
def _get_invoice_id(self, uid, datas):
...
return {’ids’: [...]}
...
’actions’: [_get_invoice_id],
’result’: {’type’:’print’,
If you want to use greetingswidget in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard .js file:
local.HomePage = instance.Widget.extend({
start: function() {
this.$el.append("Hello dear Odoo user!");
va
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
First we have to look customized module, according to there requirement fields
class, model and then we have to decide to inherit existing module. As in below .py (Python file):-
class Demo(osv.osv):
_inherit='sale.order.line' // sale.order.l
Below is a code of Python script for counterpart. Below python code is written in .py file :
insert_data('counter_part', {
'name': _("Trade Receivables"), #order.name,
'account_id': order_account,
'cr
In below example, I have written Python script to find available user in live chat . If you are stuck in such case then directly copy below python code in your .py file:
users = self.get_available_users(cr, uid, channel_id, context=context)
This blog will help you to understand how to add files to your git repository:
Step 1: Move the files into local directory which you want to upload to Github that was created when you cloned the repository.
Step 2: Open and change the current worki
if anyone configure's virtual hosts on WAMP server helps to run as many separate sites as you want.This includes following quick steps
1.Go to "C:/Windows/System32/drivers/etc" and open the "hosts" file in Notepad. At the bottom of the hosts file, b
Hello Reader's If you need to read a given file line by line then PHP will offer you to use Fgets to do.
Lets see it's example as below:-
$handle = fopen("yourfile.txt", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
Offline OST file is a medium, which allows to access the Exchange mailbox folders on a local machine. It can also be accessed by another account that was only created. Even if users want to access the OST file on different location via Outlook client