========================================== Point of Sale - Custom Bill by Environment ========================================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--incubator-lightgray.png?logo=github :target: https://github.com/grap/grap-odoo-incubator/tree/8.0/pos_environment :alt: grap/grap-odoo-incubator |badge1| |badge2| |badge3| 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...) This module is based on the mechanism introduced by the ``server_environment`` module. **Table of contents** .. contents:: :local: Configuration ============= * Open your module ``server_environment_files`` * In each environment folder, create a new file named ``pos_environment.conf`` (for exemple) * In each file, write a section like this one, depending on your environment :: [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 = =============================== Usage ===== * Open Your Point of Sale * Realize a sale * The printed bill will display the custom message .. figure:: https://raw.githubusercontent.com/grap/grap-odoo-incubator/8.0/pos_environment/static/description/receipt.png Known issues / Roadmap ====================== * make this module working in a multi localization context (many languages), inserting a pattern in the key of each lines. sample: :: [pos_environment_header] line_1 = ================================ line_2_en_US = TICKET EDITED ON A TEST ENV line_2_fr_FR = TICKET EDITE SUR SERVEUR DE TEST line_3 = ================================ Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. 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 `feedback `_. Do not contact contributors directly about support or help with technical issues. Credits ======= Authors ~~~~~~~ * GRAP Contributors ~~~~~~~~~~~~ * Sylvain LE GAL (https://www.twitter.com/legalsylvain) Maintainers ~~~~~~~~~~~ This module is part of the `grap/grap-odoo-incubator `_ project on GitHub. You are welcome to contribute.