Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 25 |
Technical Name |
web_nospace_fieldchar |
License | OPL-1 |
Versions | 12.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 25 |
Technical Name |
web_nospace_fieldchar |
License | OPL-1 |
Versions | 12.0 |
CharFilds forbid input space
文本字段禁止输入空格
Some important Char fields, such as product code, customer code and so on, generally prohibit users from entering spaces. For example, product codes'A001' and 'A001 ' are different code. If users make some of these mistake, they will lead to some errors that are hard to find. This module allows you to automatically remove user input spaces and save data correctness without developing them.
一些重要的Char字段,比如产品编码,客户编码之类的字段,一般是禁止用户输入空格的, 比如产品编码 'A001' 和 'A001 ', 是不同的编码,如果用户犯了一些这种的错误,会导致一些很难发现的错误。 这个模块能够让你在不需要开发的基础上,实现自动去除用户输入的空格,保存数据正确性
1 Modify view fieds attributes, add "no_space: 1"
1:修改需要控制的字段视图属性,增加 "no_space: 1"

2 When the user enters the text with spaces, saving will automatically delete the spaces.
2:用户输入带空格的文字,系统会自动去除掉空格


Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module