Skip to main content

Thai Localization - Base Sequence

Project description

Odoo Community Association

Thai Localization - Base Sequence

Beta License: AGPL-3 OCA/l10n-thailand Translate me on Weblate Try me on Runboat

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. and extends the ir.sequence allowing range_end_ , range_period_ and qoy legends. It adds the following legends:

  • The end of date_range year with century: %(range_end_year)s

  • The end of date_range year without century: %(range_end_y)s

  • The end of date_range month: %(range_end_month)s

  • The end of date_range day: %(range_end_day)s

  • The end of date_range day of the year: %(range_end_doy)s

  • The end of date_range week of the year: %(range_end_woy)s

  • The end of date_range weekday: %(range_end_weekday)s

  • The end of date_range hour in 24-hour: %(range_end_h24)s

  • The end of date_range hour in 12-hour: %(range_end_h12)s

  • The end of date_range minute: %(range_end_min)s

  • The end of date_range second: %(range_end_sec)s

  • The period of date_range month: %(range_period_month)s

  • Quarter of the Year: %(qoy)s

  • The begin of date_range quarter of the Year: %(range_qoy)s

  • The end of date_range quarter of the Year: %(range_end_qoy)s

  • Current Buddhist Era (BE) year with century: %(year_be)s

  • Current Buddhist Era (BE) year without century: %(y_be)s

  • The begin of date_range Buddhist Era (BE) year with century: %(range_year_be)s

  • The begin of date_range Buddhist Era (BE) year without century: %(range_y_be)s

  • The end of date_range Buddhist Era (BE) year with century: %(range_end_year_be)s

  • The end of date_range Buddhist Era (BE) year without century: %(range_end_y_be)s

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

Authors

  • Sansiri Tanachutiwat

  • Ecosoft

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

Current maintainers:

sansirit Saran440

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_l10n_th_base_sequence-19.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_l10n_th_base_sequence-19.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5feb1bb091e12c6a6558f47d565a42b903a3e1760aad628145cbdcb1eefe8eb7
MD5 dc32af63b11b346b2735d9d2e8e3b718
BLAKE2b-256 d34af6a8e2eb7be3a90a19195a179dc0dc58a9991579a7493f9c1d87a4d7499b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page