Skip to content

[16.0][ADD] pos_product_sequence#997

Open
sandipvyas-osi wants to merge 2 commits into
OCA:16.0from
ursais:16.0-add-pos_product_sequence
Open

[16.0][ADD] pos_product_sequence#997
sandipvyas-osi wants to merge 2 commits into
OCA:16.0from
ursais:16.0-add-pos_product_sequence

Conversation

@sandipvyas-osi

Copy link
Copy Markdown

No description provided.

max_sequence = self._cr.fetchone()[0]
if max_sequence is None:
return 10000
return max_sequence + 5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need these computations? Was that copied from Website logic by chance?
I expected a default fixed sequence number, such as 1000.
Products with the same sequence number would just follow whatever default sort criteria is, if that's not a complication.

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.

I totally agree. A simple default value should be enough here.

@github-actions

Copy link
Copy Markdown

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 Dec 17, 2023
@github-actions github-actions Bot closed this Jan 21, 2024
@dreispt dreispt reopened this Jan 23, 2024
@dreispt dreispt added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Jan 23, 2024
max_sequence = self._cr.fetchone()[0]
if max_sequence is None:
return 10000
return max_sequence + 5

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.

I totally agree. A simple default value should be enough here.

@ivantodorovich ivantodorovich removed the no stale Use this label to prevent the automated stale action from closing this PR/Issue. label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants