Search 1.9 billion lines of Odoo code on GitHub

pos_environment

Author: GRAP,Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0
Repository: acsone/server-env
Dependencies: point_of_sale, and server_environment
Languages: HTML (389, 60.2%), JavaScript (16, 2.5%), PO File (21, 3.3%), Python (54, 8.4%), XML (89, 13.8%), and reStructuredText (77, 11.9%)
Other repositories: Change2improve/server-env, Darknroses/server-env, ERPLibre/server-env, Gabinete-Digital/server-env, KonosCL/server-env, MathBenTech/server-env, OCA-MUK/server-env, OCA/server-env, SanteLibre/server-env, SequarSrl/server-env, SeuMarco/server-env, TheCloneMaster/grap-odoo-incubator, ajaniszewska-dev/server-env, akretion/grap-odoo-incubator, akretion/server-env, anhvu-sg/server-env, aurestic/grap-odoo-incubator, brain-tec/server-env, brainbeanapps/server-env, camptocamp/server-env, camptocamp/server-tools, cedvict/grap-odoo-incubator, cedvict/server-env, coopiteasy/grap-odoo-incubator, coopiteasy/server-env, erick-alvino/grap-odoo-incubator, francislouie/grap-odoo-incubator, grap/grap-odoo-incubator, guewen/server-env, hinfo506/server-env, initOS/grap-odoo-incubator, it-projects-llc/server-env, legalsylvain/grap-odoo-incubator, legalsylvain/server-env, lideritjnma/server-env, multidadosti-erp/server-tools, nabima/grap-odoo-incubator, p-tombez/server-env, quentinDupont/grap-odoo-incubator, sanube/server-env, sendalpegat/server-env, simahawk/server-env, ursais/server-env, and vidtsin/grap-odoo-incubator

<h1 class="title">Point of Sale - Custom Bill by Environment</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-env/tree/12.0/pos_environment"><img alt="OCA/server-env" src="https://img.shields.io/badge/github-OCA%2Fserver--env-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-env-12-0/server-env-12-0-pos_environment"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/254/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module extends the Odoo point of sale module to allow administrator to customize the bill printed by the point of sale, with a text depending on your environment. (Development, , Pre Production, Production, etc...)</p> <p>This module is based on the mechanism introduced by the <code>server_environment</code> module.</p> <p><strong>Note</strong></p> <p>This module works with or without IoT Box.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> <li><a class="reference internal" href="#usage" id="id2">Usage</a></li> <li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <ul class="simple"> <li>Open your module <code>server_environment_files</code></li> <li>In each environment folder, create a new file named <code>pos_environment.conf</code> (for exemple)</li> <li>In each file, write a section like this one, depending on your environment</li> </ul> <pre class="code"> <code class="code">[pos_environment_header] line_1 = =============================== line_2 = TICKET EDITED ON A TEST line_3 = ENVIRONMENT line_4 = =============================== [pos_environment_footer] line_1 = =============================== line_2 = THIS TICKET HAS BEEN EDITED line_3 = ON A TEST ENVIRONMENT line_4 = ------------------------------- line_5 = IT CAN NOT BE CONSIDERED line_6 = AS A PROOF OF PURCHASE line_7 = ===============================</code> </pre> <p><strong>Internationalisation</strong></p> <p>If you deploy Odoo in a multi languages context, you can add a suffix <code>__xx_xx</code> in the name of each line, where <code>xx_xx</code> is the language. The text will be displayed on the bill, depending of the language of the current user. Sample :</p> <pre class="code"> <code class="code">line_1 = =============================== line_2__en_US = TICKET EDITED ON A TEST SERVER line_2__fr_FR = TICKET EDITE SUR SERVEUR DE TEST line_3 = -------------------------------</code> </pre> <p><strong>Note</strong></p> <p>To be sure that your server is correctly configured, you can check the settings in the Point of Sale configuration.</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/server-env/12.0/pos_environment/static/description/pos_config_form.png" src="https://raw.githubusercontent.com/OCA/server-env/12.0/pos_environment/static/description/pos_config_form.png" /> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <ul class="simple"> <li>Open Your Point of Sale</li> <li>Realize a sale</li> <li>The printed bill will display the custom message</li> </ul> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/server-env/12.0/pos_environment/static/description/receipt.png" src="https://raw.githubusercontent.com/OCA/server-env/12.0/pos_environment/static/description/receipt.png" /> </div> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-env/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/server-env/issues/new?body=module:%20pos_environment%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>GRAP</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li>Sylvain LE GAL (<a class="reference external" href="https://www.twitter.com/legalsylvain">https://www.twitter.com/legalsylvain</a>)</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-env/tree/12.0/pos_environment">OCA/server-env</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>