Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Conversation

hbrunn
Copy link
Member

@hbrunn hbrunn commented Nov 2, 2016

small fixes

@hbrunn hbrunn added this to the 8.0 milestone Nov 2, 2016
@@ -9,5 +9,5 @@ class RunbotRepo(models.Model):

_order = 'sequence asc'

sequence = fields.Integer()
sequence = fields.Integer(default=0)
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

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

Copy link
Member

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?

Copy link
Member Author

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

@hbrunn
Copy link
Member Author

hbrunn commented May 31, 2018

sequence already is in upstream, and we don't need the publishing option any more, so I close this

@hbrunn hbrunn closed this May 31, 2018
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.

None yet

2 participants