New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.0 runbot website display #101
Conversation
@@ -9,5 +9,5 @@ class RunbotRepo(models.Model): | |||
|
|||
_order = 'sequence asc' | |||
|
|||
sequence = fields.Integer() | |||
sequence = fields.Integer(default=0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 is already the default, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not for existing records it seems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aha, here we go: https://github.com/OCA/OCB/blob/8.0/openerp/models.py#L2394, https://github.com/OCA/OCB/blob/8.0/openerp/fields.py#L425, and there's no "default default" set in the Integer
class: https://github.com/OCA/OCB/blob/8.0/openerp/fields.py#L1037
Interesting, so we should always set defaults for integer fields it seems, otherwise we get NULLs in the database on installation, which messes up sorting in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm, that seems something to be patched upstream, don't you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, but I'm in the middle of something else right now. If you've some time to spare, go ahead
sequence already is in upstream, and we don't need the publishing option any more, so I close this |
small fixes