Skip to content

[IMP] sequence_regex: Function to match a string to a sequence#3672

Open
AlienAtSystem wants to merge 1 commit into
OCA:18.0from
AlienAtSystem:task_72108
Open

[IMP] sequence_regex: Function to match a string to a sequence#3672
AlienAtSystem wants to merge 1 commit into
OCA:18.0from
AlienAtSystem:task_72108

Conversation

@AlienAtSystem

Copy link
Copy Markdown

This is a new module to provide a function that checks whether a string has been generated by a sequence, or rather, if it is formatted such that it fits the scheme in which the sequence generates numbers.

The main purpose is to provide support for dynamic placeholders in sale_quotation_number, which needs to detect if a sale.order name has been generated by the sale.quotation sequence to replace it with a name from the sale.order sequence - the corresponding Pull Request can be found here. However, as it's not dependent on sale and might be useful in other contexts, it is provided as a separate module in server-tools.

@rousseldenis rousseldenis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants