Base Sequence
Project description
This module refactor the ir.sequence allowing more legends to be added with minimal code duplication and adding preview fields on both ir.sequence and ir.sequence.date_range models. the preview field is a computed fields that only visible in edit-mode of the form view works with range_ and range_end_. It helps users to check and validate the prefix, suffix, and padding configuration easily without a need to actually generate an actual document.
Adding more legends to ir.sequence requires an extension of an inner method _interpolation_dict() of the _get_prefix_suffix() method. An extension of an inner method is impractical, therefore this module override the _get_prefix_suffix() method by moving the inner private method _interpolation_dict() to a private method. Therefore, this allows another module to add more legends to the ir.sequence.
This modules works as a base module to other modules to add more legends to ir.sequence.
Table of contents
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 to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Sansiri Tanachutiwat <sansiri.t@tggs.kmutnb.ac.th>
-
Saran Lim. <saranl@ecosoft.co.th>
Maintainers
This module is maintained by the OCA.
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.
This module is part of the OCA/l10n-thailand project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo_addon_l10n_th_sequence_refactored-15.0.1.0.0.4-py3-none-any.whl
.
File metadata
- Download URL: odoo_addon_l10n_th_sequence_refactored-15.0.1.0.0.4-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 645732d1167bd98a8eab8f5c9a4f596e7c236b5600baf93fe79e9bb413c0eb57 |
|
MD5 | 4a86a52ba65bb79d633c282f2fec9dcf |
|
BLAKE2b-256 | d5ea58b8dcbc4048f36fd6b63b6bc33fe97a88b57897c765701b00bc943ae283 |