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
from openerp import models, api | |
from openerp.osv import fields, osv | |
import openerp.addons.decimal_precision as dp | |
class PurchaseOrder(models.Model): | |
_inherit = "purchase.order" | |
def _get_order(self, cr, uid, ids, context=None): | |
result = {} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<odoo> | |
<template id="recommended_products_ext" inherit_id="website_sale.recommended_products"> | |
<xpath expr="." position="replace"> | |
<t name="Product" t-name="website_sale.recommended_products"> | |
<xpath expr="//div[@id='product_small_description']" position="before"> | |
<div class="container mt32" t-if="product.alternative_product_ids"> | |
<h3>Alternative Products:</h3> | |
<div class="row mt16" style=""> |
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
import base64 | |
import logging | |
import werkzeug.utils | |
import werkzeug.wrappers | |
import hashlib | |
import mimetypes | |
import os | |
import re | |
import werkzeug |
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
[backends] | |
[backends.aek] | |
[backends.aek.servers.instance] | |
url = "http://127.0.0.1:8079" | |
[frontends] | |
[frontends.aek-redirect] | |
entrypoints = ["http"] | |
[frontends.aek-redirect.Redirect] | |
Regex = "(http://mio.aek/|http://www.mio.aek/|https://mio.aek/)" |
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
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 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
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 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
class RedisSessionStore(SessionStore): | |
def __init__(self, expire = 1800, key_prefix=''): | |
SessionStore.__init__(self) | |
self.redis = redis.Redis(tools.config.get('redis_host', 'localhost'), | |
int(tools.config.get('redis_port', 6379)), | |
int(tools.config.get('redis_dbindex', 1)), | |
password=tools.config.get('redis_pass', None)) | |
self.path = session_path() | |
self.expire = expire | |
self.key_prefix = key_prefix |
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
/* | |
--- | |
name: Jx.Store.Parser.XML | |
description: Parser for reading and writting XML formatted data. | |
license: MIT-style license. | |
requires: |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | |
<title>ArcheType</title> | |
<!-- include the jx delicious skin --> | |
<link rel="stylesheet" href="../js/mootools/jxlib/themes/delicious/jxtheme.css" type="text/css" media="screen" charset="utf-8"> | |
<!-- IE specific style sheets --> |
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
/* | |
--- | |
name: Locale.Spanish.ES | |
description: Default translations of text strings used in JX for Spanish (Spain) (es-ES) | |
license: MIT-style license. | |
requires: |
NewerOlder