This file contains 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
from openerp.osv import fields, osv | |
import openerp.addons.decimal_precision as dp | |
class product_dim_price(osv.osv): | |
_inherit = "product.product" | |
def _get_dim_price(self, cr, uid, ids, field_name=None, arg=False, context=None): | |
res = {} | |
for prod in self.browse(cr, uid, ids, context=context): | |
res[prod.id] = prod.length * prod.width |
This file contains 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
proj_vals = [] | |
for elem in field_ids: | |
if elem[0] == 6: | |
project_ids = elem[2] | |
for project in self.pool.get('project.project').browse(cr, uid, project_ids): | |
proj_vals.append(project.name) | |
elif elem[0] == 0: | |
proj_vals.append(elem[2]['project']) | |
elif elem[0] == 1: | |
if elem[2].get('project', False): |
This file contains 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 | |
class halo_AntPathMatcher implements halo_IPathMatcher { | |
public function match($pattern, $path){ | |
/** | |
** PurSelector is an Utility class from http://www.php-pop.org | |
**/ | |
return PurSelector::match($pattern, $path, true); | |
} | |
} | |
?> |
This file contains 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 | |
require_once('./WebContent/WEB-INF/lib/hc-php/hc-bootstrap.php'); | |
require_once('./WebContent/WEB-INF/lib/halo/halo-bootstrap.php'); | |
require_once('./src/org.archetype/common/web/utils/ClassLoader.php'); | |
if ( defined('HC_HALO_ENGINE_LOADED') ) { | |
throw new Exception("Something has gone horribly wrong. Something has re-imported or re-required the main Halo engine (likely index.php) and that is NOT a good thing!"); | |
} |
This file contains 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 | |
hc_core_ClassLoader::load('halo_AbstractUrlHandlerMapping'); | |
class halo_SimpleUrlHandlerMapping extends halo_AbstractUrlHandlerMapping { | |
protected $mappings; | |
protected $useDefault; | |
private $pathMatcher; | |
public function __construct(array $mappings, $default = null) { | |
$this->mappings = $mappings; | |
$this->default = $default; |
This file contains 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
/* | |
--- | |
name: Jx.DatePicker | |
description: A Jx.DatePicker: Provide a Date Picker component | |
license: MIT-style license. | |
provides: [Jx.DatePicker] |
This file contains 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
/* | |
--- | |
name: Jx.MonthPicker | |
description: A Jx.MonthPicker: Provide a Month Picker component | |
license: MIT-style license. | |
provides: [Jx.MonthPicker] |
This file contains 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
/* | |
--- | |
name: Jx.Field.Date | |
description: A Jx.Field.Date: Provide a field to select a valid date value using a Date Picker | |
license: MIT-style license. | |
provides: [Jx.Field.Date] |
This file contains 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
/*************************************************************************************/ | |
.jxDatePicker { | |
position: absolute; | |
width: 165px; | |
height: 140px; | |
left: 0px; | |
border: 1px solid #000; | |
padding: 2px; | |
background-image: url(images/a_pixel.png); | |
} |
This file contains 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
/* | |
--- | |
name: Jx.Field.ComboBox | |
description: A Jx.Field.ComboBox: is a Combo that show a Jx.ListView | |
items from a supplied store to select for the combo. | |
Supports pagination based on the class Jx.Toolbar.Paging a modified | |
from an example found on googlecode jxlib wiki. |
OlderNewer