- Change
__openerp__.py
addon name field - Change
README.rst
file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# based on this code | |
# http://code.activestate.com/recipes/577423-convert-csv-to-xml/ | |
# convert Odoo csv files in xml files | |
# csv is easy to maintain but xml data have noupdate feature | |
# Limitations: | |
# - relation field One2many is NOT supported | |
# - csv should have 'id' as first column |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$postform = Array( | |
'entryPoint' => 'WebToLeadCapture', | |
'first_name' => 'Daniel', | |
'last_name' => 'Daniel', | |
'campaign_id' => 'a53d5255-049c-fa69-4c92-5567aac6ffe2', | |
'assigned_user_id' => '1', | |
'webtolead_email1' => '[email protected]', | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Check does system use upstart | |
echo '' && whereis upstart | grep -q 'upstart: /' && echo 'You can use UPSTART' || echo 'There is no upstart in your system. Use SUPERVISORCTL instead' | |
#### CHECK AND UPDATE LANGUAGE | |
env | grep LANG | |
export LANG=en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 | |
dpkg-reconfigure locales |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def componer(value): | |
x = int(value) | |
unidad = ['','uno','dos','tres','cuatro','cinco','seis','siete','ocho','nueve'] | |
decena = ['diez','once','doce','trece','catorce','quince','dieciseis','dicisiete','dieciocho','diecinueve'] | |
decadas = { | |
2:['veinte','veinti'], | |
3:['treinta','treinta y '], | |
4:['cuarenta','cuarenta y '], | |
5:['cincuenta','cincuenta y '], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# porción del base_geolocalize/models/res_partner.py cambiada: | |
#try: | |
result1 = requests.get(url) | |
_logger.critical("respuesta raw %s" % result1) | |
result = json.loads(result1.text) | |
_logger.critical(("respuesta json: %s.") % result) | |
#except Exception, e: | |
# raise osv.except_osv(_('Network error.'),..... | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// get the webhook response | |
$body = @file_get_contents('php://input'); | |
// decode the json data into a php object | |
$response = json_decode($body); | |
// the webhook property tells us exactly which webhook event was fired | |
// so let's create a case for a few webhooks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getProducts(){ | |
static $products = null; | |
if(!$products){ | |
$app_mod = BeanFactory::getBean('Products'); | |
$list = $app_mod->get_full_list("", "1"); | |
foreach($list as $item){ | |
$products[$item->id] = $item->name; | |
} | |
return $products; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: openerp-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |