Skip to content

Conversation

@grindtildeath
Copy link
Contributor

The compute function does not allow any customization on how the trigram had to be generated, and there a multiple ways to define how trigram must be generated.

Moreover, the compute did generate duplicates and there was no way to fix manually since the field was not stored. Also, making it stored but still computed did risk unwanted updates in case name was updated.

Having a basic stored field allows each company to customize how trigram can be generated using a server action. The logic previously provided is then moved to a cron that can be customized to suit trigram generation for each company.

@grindtildeath grindtildeath changed the title pos_receipt_replace_user_by_trigram: Drop compute function [16.0] pos_receipt_replace_user_by_trigram: Drop compute function Dec 10, 2024
The compute function does not allow any customization on how the
trigram had to be generated, and there a multiple ways to define
how trigram must be generated.

Moreover, the compute did generate duplicates and there was no way
to fix manually since the field was not stored. Also, making it
stored but still computed did risk unwanted updates in case name
was updated.

Having a basic stored field allows each company to customize how
trigram can be generated using a server action. The logic previously
provided is then moved to a cron that can be customized to suit
trigram generation for each company.
@grindtildeath grindtildeath force-pushed the 16.0-imp-remove_trigram_compute branch from a2aee40 to a1740b2 Compare December 10, 2024 18:14
@grindtildeath
Copy link
Contributor Author

Copy link
Contributor

@trisdoan trisdoan left a comment

Choose a reason for hiding this comment

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

Sounds like a great idea to me! Thanks

Could you squash the fixup?

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 13, 2025
@github-actions github-actions bot closed this May 18, 2025
@grindtildeath
Copy link
Contributor Author

@OCA/pos-maintainers anyone to reopen please 🙏

@ivantodorovich
Copy link

Github's not letting me :/ :

image

Could you re-create the PR, I'll review & merge asap, given that this one already had one approval

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

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants