Skip to content

[18.0][ADD] pos_sequence: sort POS products by pos_sequence, default_code and name#1548

Open
MiguelMachadoM wants to merge 4 commits into
OCA:18.0from
MiguelMachadoM:18.0-add-pos-sequence
Open

[18.0][ADD] pos_sequence: sort POS products by pos_sequence, default_code and name#1548
MiguelMachadoM wants to merge 4 commits into
OCA:18.0from
MiguelMachadoM:18.0-add-pos-sequence

Conversation

@MiguelMachadoM
Copy link
Copy Markdown

This PR adds a new module pos_sequence to control product ordering in POS.

Features

  • Adds pos_sequence field on product template and product variant.
  • Applies POS product ordering by:
    1. pos_sequence
    2. default_code
    3. name
  • Adds corresponding product form fields and POS frontend sorting patch.

Why

Default POS ordering is not always suitable for operational workflows.
This module provides deterministic ordering that is easier to maintain for catalog-heavy POS setups.

Notes

  • This PR keeps scope focused on fixed ordering logic.

Future features (out of scope for this PR)

  • Optional "favorites first" behavior.
  • Configurable sort fields and direction from POS settings.

MiguelMachadoM and others added 3 commits May 6, 2026 11:08
Add a new addon that introduces a POS product sequence and enforces deterministic ordering in ProductScreen and search results by pos_sequence, default_code and name.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Cover pos_sequence defaults, variant related field behavior and inclusion in product POS data fields to satisfy Codecov thresholds.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants