[FIX]: module installaiton succesfuly
bzr revid: mga@tinyerp.com-20140222173759-8x2k0ubf5i9r81pa
This commit is contained in:
parent
b353f7cf3b
commit
64adae0869
|
@ -11,13 +11,13 @@ Ask questions, get answers, no distractions
|
|||
'author': 'OpenERP SA',
|
||||
'depends': ['website', 'website_mail'],
|
||||
'data': [
|
||||
# 'data/forum_data.xml',
|
||||
# 'views/website_forum.xml',
|
||||
# 'security/ir.model.access.csv',
|
||||
# 'security/website_forum.xml',
|
||||
'data/forum_data.xml',
|
||||
'views/website_forum.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'security/website_forum.xml',
|
||||
],
|
||||
'qweb': [
|
||||
# 'static/src/xml/*.xml'
|
||||
'static/src/xml/*.xml'
|
||||
],
|
||||
'demo': [
|
||||
'data/forum_demo.xml'
|
||||
|
|
|
@ -19,23 +19,24 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
import werkzeug.urls
|
||||
|
||||
from openerp import tools
|
||||
from openerp import SUPERUSER_ID
|
||||
from openerp.addons.web import http
|
||||
from openerp.addons.web.http import request
|
||||
|
||||
from openerp.tools.translate import _
|
||||
from openerp.addons.website.controllers.main import Website as controllers
|
||||
controllers = controllers()
|
||||
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
from openerp.addons.web.http import request
|
||||
|
||||
from dateutil.relativedelta import relativedelta
|
||||
from openerp import tools
|
||||
import werkzeug.urls
|
||||
from openerp.addons.website.controllers.main import Website as controllers
|
||||
|
||||
controllers = controllers()
|
||||
|
||||
class website_forum(http.Controller):
|
||||
@http.route(['/question/', '/question/page/<int:page>'], type='http', auth="public", website=True, multilang=True)
|
||||
def questions(self, page=1, **searches):
|
||||
print "questions----------------",self,page,searches
|
||||
cr, uid, context = request.cr, request.uid, request.context
|
||||
forum_obj = request.registry['website.forum.post']
|
||||
tag_obj = request.registry['website.forum.tag']
|
||||
|
@ -51,8 +52,6 @@ class website_forum(http.Controller):
|
|||
offset=pager['offset'], context=request.context)
|
||||
question_ids = forum_obj.browse(request.cr, request.uid, obj_ids,
|
||||
context=request.context)
|
||||
|
||||
print "question_ids----",question_ids
|
||||
values = {
|
||||
'question_ids': question_ids,
|
||||
'pager': pager,
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
<data noupdate="1">
|
||||
|
||||
<record id="menu_questions" model="website.menu">
|
||||
<field name="name">Questions</field>
|
||||
<field name="name">Support</field>
|
||||
<field name="url">/question</field>
|
||||
<field name="parent_id" ref="website.main_menu"/>
|
||||
<field name="sequence" type="int">40</field>
|
||||
</record>
|
||||
|
||||
<!--record id="action_open_website" model="ir.actions.act_url">
|
||||
<field name="name">Website Home</field>
|
||||
<field name="target">self</field>
|
||||
|
|
|
@ -1,292 +1,381 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<data>
|
||||
|
||||
<template id="editor_head" inherit_id="website.editor_head" name="Event Editor" groups="event.group_event_manager">
|
||||
<xpath expr="//script[@id='website_tour_js']" position="after">
|
||||
<script type="text/javascript" src="/website_forum/static/src/js/website_forum.editor.js"></script>
|
||||
<script type="text/javascript" src="/website_forum/static/src/js/website.tour.forum.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="editor_head" inherit_id="website.editor_head"
|
||||
name="Event Editor">
|
||||
<xpath expr="//script[@id='website_tour_js']" position="after">
|
||||
<script type="text/javascript"
|
||||
src="/website_forum/static/src/js/website_forum.editor.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="/website_forum/static/src/js/website.tour.forum.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Layout add nav and footer -->
|
||||
<template id="header_footer_custom" inherit_id="website.layout" name="Footer Questions Link">
|
||||
<xpath expr="//footer//ul[@name='products']" position="inside">
|
||||
<li><a href="/question">Questions</a></li>
|
||||
</xpath>
|
||||
</template>
|
||||
<!-- Layout add nav and footer -->
|
||||
<template id="header_footer_custom" inherit_id="website.layout"
|
||||
name="Footer Questions Link">
|
||||
<xpath expr="//footer//ul[@name='products']" position="inside">
|
||||
<li>
|
||||
<a href="/question">Questions</a>
|
||||
</li>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Page -->
|
||||
<!-- Page -->
|
||||
|
||||
<template id="question_list">
|
||||
<div class="tab-pane active" id="all">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="row">
|
||||
<div class="col-xs-9">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h4><a t-attf-href="/question/#{ slug(question) }"><span> <t t-esc="question.name"/></span></a></h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<a href="" class="badge">6.1</a>
|
||||
<a href="" class="badge">7.0</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-right">
|
||||
<small>
|
||||
<span><t t-esc="question.write_date"/></span>
|
||||
<a href=""><span><t t-esc="question.create_uid.name"/></span></a>
|
||||
<a href=""><span><t t-esc="question.create_uid.id"/></span></a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<h5>
|
||||
<span itemprop="Votes" class="label label-success"><t t-esc="len(question.up_votes)"/> Votes</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<h5>
|
||||
<span itemprop="Votes" class="label label-success"><t t-esc="len(question.up_votes)"/> Answers</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<h5>
|
||||
<span itemprop="Votes" class="label label-success"><t t-esc="question.views"/> Views</span>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template id="question_list">
|
||||
<div id="wrap">
|
||||
<div class="tab-pane active" id="all">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="row">
|
||||
<div class="col-xs-9">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h4>
|
||||
<a t-attf-href="/question/#{ slug(question) }">
|
||||
<span>
|
||||
<t t-esc="question.name" />
|
||||
</span>
|
||||
</a>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<a href="" class="badge">6.1</a>
|
||||
<a href="" class="badge">7.0</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-right">
|
||||
<small>
|
||||
<span>
|
||||
<t t-esc="question.write_date" />
|
||||
</span>
|
||||
<a href="">
|
||||
<span>
|
||||
<t t-esc="question.create_uid.name" />
|
||||
</span>
|
||||
</a>
|
||||
<a href="">
|
||||
<span>
|
||||
<t t-esc="question.create_uid.id" />
|
||||
</span>
|
||||
</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<h5>
|
||||
<span itemprop="Votes" class="label label-success">
|
||||
<t t-esc="len(question.vote_ids)" />
|
||||
Votes
|
||||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<h5>
|
||||
<span itemprop="Votes" class="label label-success">
|
||||
<t t-esc="len(question.vote_ids)" />
|
||||
Answers
|
||||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<h5>
|
||||
<span itemprop="Votes" class="label label-success">
|
||||
<t t-esc="question.views" />
|
||||
Views
|
||||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="question_search">
|
||||
<form class="navbar-form " role="search">
|
||||
<div class="form-group search-navbar">
|
||||
<input type="text" class="form-control" placeholder="Search Or Ask your Question"/>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default AskButton">Ask Question</button>
|
||||
</form>
|
||||
</template>
|
||||
<template id="question_search">
|
||||
<form class="navbar-form " role="search">
|
||||
<div class="form-group search-navbar">
|
||||
<input type="text" class="form-control" placeholder="Search Or Ask your Question" />
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default AskButton">Ask Question</button>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
|
||||
<template id="index" name="Question">
|
||||
<t t-call="website.layout">
|
||||
<div id="wrap">
|
||||
<t t-call="website_forum.question_search"/>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<span itemprop="name" class="badge"><t t-esc="len(question_ids)"/> Question</span>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<h5>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Short by <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#">By Date</a></li>
|
||||
<li><a href="#">By Activity</a></li>
|
||||
<li><a href="#">By Answer</a></li>
|
||||
<li><a href="#">By Votes</a></li>
|
||||
</ul>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
<ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
|
||||
<li class="active"><a href="#all" data-toggle="tab">ALL</a></li>
|
||||
<li><a href="#unanswerd" data-toggle="tab">Unanswerd</a></li>
|
||||
</ul>
|
||||
|
||||
<ul class="media-list">
|
||||
<li t-foreach="question_ids" t-as="question" class="media">
|
||||
<t t-call="website_forum.question_list"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
<template id="index" name="Question">
|
||||
<t t-call="website.layout">
|
||||
<div id="wrap">
|
||||
<t t-call="website_forum.question_search" />
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<span itemprop="name" class="badge">
|
||||
<t t-esc="len(question_ids)" />
|
||||
Question
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<h5>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
Short by
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">By Date</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">By Activity</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">By Answer</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">By Votes</a>
|
||||
</li>
|
||||
</ul>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
<ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
|
||||
<li class="active">
|
||||
<a href="#all" data-toggle="tab">ALL</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#unanswerd" data-toggle="tab">Unanswerd</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="media-list">
|
||||
<li t-foreach="question_ids" t-as="question" class="media">
|
||||
<t t-call="website_forum.question_list" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
|
||||
<template id="404">
|
||||
<t t-call="website.layout">
|
||||
<div id="wrap">
|
||||
<div class="oe_structure oe_empty">
|
||||
<div class="container">
|
||||
<h1 class="mt32">Question not found!</h1>
|
||||
<p>Sorry, the requested question is not available anymore.</p>
|
||||
<p><a t-attf-href="/question/">Return to the question list.</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
<template id="404">
|
||||
<t t-call="website.layout">
|
||||
<div id="wrap">
|
||||
<div class="oe_structure oe_empty">
|
||||
<div class="container">
|
||||
<h1 class="mt32">Question not found!</h1>
|
||||
<p>Sorry, the requested question is not available anymore.</p>
|
||||
<p>
|
||||
<a t-attf-href="/question/">Return to the question list.</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="user_detail">
|
||||
<div class="col-xs-7 col-xs-offset-5 col-sm-3 col-sm-offset-9 col-md-4 col-md-offset-8 col-lg-4 col-lg-offset-8 text-right">
|
||||
<div class="panel panel-primary ">
|
||||
<p class="text-center -heading">
|
||||
<small>asked Sep 12'13</small>
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<img src="images/profile_picture/png/user_1.png" class="user-profile-image" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="text-left">
|
||||
<a href="">Than N.</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div style="font-size:10px" class="text-left">
|
||||
<b style="color : green">11</b>
|
||||
<span class="glyphicon glyphicon-certificate badge-gold"></span>1
|
||||
<span class="glyphicon glyphicon-certificate badge-silver"></span>10
|
||||
<span class="glyphicon glyphicon-certificate badge-bronze"></span>5
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template id="user_detail">
|
||||
<div
|
||||
class="col-xs-7 col-xs-offset-5 col-sm-3 col-sm-offset-9 col-md-4 col-md-offset-8 col-lg-4 col-lg-offset-8 text-right">
|
||||
<div class="panel panel-primary ">
|
||||
<p class="text-center -heading">
|
||||
<small>asked Sep 12'13</small>
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<img src="images/profile_picture/png/user_1.png" class="user-profile-image"
|
||||
alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="text-left">
|
||||
<a href="">Than N.</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div style="font-size:10px" class="text-left">
|
||||
<b style="color : green">11</b>
|
||||
<span class="glyphicon glyphicon-certificate badge-gold"></span>
|
||||
1
|
||||
<span class="glyphicon glyphicon-certificate badge-silver"></span>
|
||||
10
|
||||
<span class="glyphicon glyphicon-certificate badge-bronze"></span>
|
||||
5
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="question_vote">
|
||||
<div class="col-md-1 col-xs-1">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 custom-arrow-height">
|
||||
<span class="glyphicon glyphicon-chevron-up"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 custom-vote-height">
|
||||
<h4><span>0</span></h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 custom-arrow-height">
|
||||
<span class="glyphicon glyphicon-chevron-down"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template id="question_vote">
|
||||
<div class="col-md-1 col-xs-1">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 custom-arrow-height">
|
||||
<span class="glyphicon glyphicon-chevron-up" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 custom-vote-height">
|
||||
<h4>
|
||||
<span>0</span>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 custom-arrow-height">
|
||||
<span class="glyphicon glyphicon-chevron-down" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="question_links">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-right">
|
||||
<a class="action-links" href="" ><span class="glyphicon glyphicon-pencil"></span></a>
|
||||
<a class="action-links" href=""><span class="glyphicon glyphicon-flag"></span></a>
|
||||
<a class="action-links" href=""><span class="glyphicon glyphicon-trash"></span></a>
|
||||
<a class="action-links" href="" ><span class="glyphicon glyphicon-link"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template id="question_links">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-right">
|
||||
<a class="action-links" href="">
|
||||
<span class="glyphicon glyphicon-pencil"></span>
|
||||
</a>
|
||||
<a class="action-links" href="">
|
||||
<span class="glyphicon glyphicon-flag"></span>
|
||||
</a>
|
||||
<a class="action-links" href="">
|
||||
<span class="glyphicon glyphicon-trash"></span>
|
||||
</a>
|
||||
<a class="action-links" href="">
|
||||
<span class="glyphicon glyphicon-link"></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<template id="question_description_full">
|
||||
<t t-call="website.layout">
|
||||
<t t-call="website_forum.question_search"/>
|
||||
<div class="container MainBody">
|
||||
<div class="row">
|
||||
<t t-call="website_forum.question_vote"/>
|
||||
<template id="question_description_full">
|
||||
<t t-call="website.layout">
|
||||
<t t-call="website_forum.question_search" />
|
||||
<div class="container MainBody">
|
||||
<div class="row">
|
||||
<t t-call="website_forum.question_vote" />
|
||||
|
||||
<div class="col-md-9 col-xs-11">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h4><div itemprop="name" t-field="question.name"></div></h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<span class="badge">openerp-7</span>
|
||||
<span class="badge">pos</span>
|
||||
<span class="badge">receipt</span>
|
||||
<span class="badge">cash</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9 col-xs-11">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h4>
|
||||
<div itemprop="name" t-field="question.name"></div>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<span class="badge">openerp-7</span>
|
||||
<span class="badge">pos</span>
|
||||
<span class="badge">receipt</span>
|
||||
<span class="badge">cash</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<span>
|
||||
<h6>
|
||||
How to send some signal to cash drawer to open it after click print receipt or something similar? I don't know whether this depends on cash drawer's driver or not ?
|
||||
</h6>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<t t-call="website_forum.user_detail"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 page-header">
|
||||
<span class="badge">2 Answers</span>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Short by <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#">Oldest</a></li>
|
||||
<li><a href="#">Newest</a></li>
|
||||
<li><a href="#">Most Viewd</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<t t-call="website_forum.question_vote"/>
|
||||
<div class="col-md-9 col-xs-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<span>
|
||||
<h6>
|
||||
There should be a call to the cash drawers API. Read the technical manual of the hardware you are using. Thanks.
|
||||
</h6>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<t t-call="website_forum.user_detail"/>
|
||||
</div>
|
||||
<t t-call="website_forum.question_links"/>
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<span>
|
||||
<h6>
|
||||
How to send some signal to cash drawer to open it after click
|
||||
print receipt or something similar? I don't know whether this
|
||||
depends on cash drawer's driver or not ?
|
||||
</h6>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<t t-call="website_forum.user_detail" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 page-header">
|
||||
<span class="badge">2 Answers</span>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
Short by
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#">Oldest</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Newest</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Most Viewd</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<t t-call="website_forum.question_vote"/>
|
||||
</div>
|
||||
<div class="row">
|
||||
<t t-call="website_forum.question_vote" />
|
||||
<div class="col-md-9 col-xs-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<span>
|
||||
<h6>
|
||||
There should be a call to the cash drawers API. Read the technical
|
||||
manual of the hardware you are using. Thanks.
|
||||
</h6>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<t t-call="website_forum.user_detail" />
|
||||
</div>
|
||||
<t t-call="website_forum.question_links" />
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
|
||||
<div class="col-md-9 col-xs-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<span>
|
||||
<h6>
|
||||
Usually the cash drawer behaves like a printer in the sense that it has a RS232 or USB port. However the cash drawer is dummy and only uses the port to receive a signal (positive voltage) which causes it to open.
|
||||
So you only need send any signal to the RS232 or USB port (like for insance print the ascii character "a" to the rs232 port) and it will open!. I the old days you could test it from hyperterminal, I guess nowadays you will have to make a javascript app that sends a character to the rs232 port.
|
||||
</h6>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<t t-call="website_forum.user_detail"/>
|
||||
</div>
|
||||
<t t-call="website_forum.question_links"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
<div class="row">
|
||||
<t t-call="website_forum.question_vote" />
|
||||
</div>
|
||||
|
||||
</data>
|
||||
<div class="col-md-9 col-xs-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<span>
|
||||
<h6>
|
||||
Usually the cash drawer behaves like a printer in the sense that it
|
||||
has a RS232 or USB port. However the cash drawer is dummy and
|
||||
only uses the port to receive a signal (positive voltage)
|
||||
which causes it to open.
|
||||
So you only need send any signal to the RS232 or USB port (like
|
||||
for insance print the ascii character "a" to the rs232 port)
|
||||
and it will open!. I the old days you could test it from
|
||||
hyperterminal, I guess nowadays you will have to make a
|
||||
javascript app that sends a character to the rs232 port.
|
||||
</h6>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<t t-call="website_forum.user_detail" />
|
||||
</div>
|
||||
<t t-call="website_forum.question_links" />
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue