
Search In
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) {
To add a separator line separator string is used, below us the way to do this.
Go to .xml file and use the below code .
<separator string="Session" colspan="4"/>
<field name="session" nolabel="1">
<tree>
<field name="name"/>
If you want to get access right in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: →
class test_partner_firstname(common.TransactionCase):
def setUp(self):
super(test_partner_firstname, self).setUp()
self.user_mode
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)
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
