Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
quite simple migration of
pos_environment
introduced here #27 in V12.Description
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...)
The displayed and printed bill will display the custom message
This module is based on the mechanism introduced by the
server_environment
module.Note
This module provides a feature that is legally required in some countries (such as France, under the law on accounting certification) where test receipts must be distinguishable.
Configure
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
Internationalisation
If you deploy Odoo in a multi languages context, you can add a suffix
__xx_xx
in the name of each line, wherexx_xx
is the language.The text will be displayed on the bill, depending of the language of the current user. Sample :
Note
To be sure that your server is correctly configured, you can check the settings
in the Point of Sale configuration.