Open
Conversation
10bc92a to
b9f0288
Compare
imlopes
approved these changes
Apr 8, 2026
c960e20 to
d936145
Compare
cyrilmanuel
approved these changes
Apr 9, 2026
|
hi @pedrobaeza could you merge this pr please :) |
Ricardoalso
reviewed
Apr 9, 2026
Member
|
More than a migration script, it should be a pre-init hook for avoiding a big delay installing the module in a populated DB with lots of |
d936145 to
a4f04ae
Compare
Contributor
Author
|
@Ricardoalso @pedrobaeza pre-init hook added to create column and populate stored field values via sql |
Ricardoalso
reviewed
Apr 9, 2026
| _logger = logging.getLogger(__name__) | ||
|
|
||
|
|
||
| def _column_exists(cr, table_name, column_name): |
There was a problem hiding this comment.
You can use from odoo.tools.sql import column_exists
Contributor
Author
There was a problem hiding this comment.
you're right. I updated the code to use odoo.tools.sql
a4f04ae to
eb6942b
Compare
Ricardoalso
approved these changes
Apr 9, 2026
Contributor
|
This PR has the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This module allows organizing and managing sale order lines by section.
It computes a Section field on each sale order line so that non-section
lines are linked to the nearest previous section line in the order
sequence.
This makes it easier to group, filter, and analyze sale order lines by
section.