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

[IMP] project_type module #1235

Open
wants to merge 7 commits into
base: 16.0
Choose a base branch
from
Open

[IMP] project_type module #1235

wants to merge 7 commits into from

Conversation

RemiFr82
Copy link

@RemiFr82 RemiFr82 commented Feb 9, 2024

Add an integer sequence field and handle order management in tree view.

@RemiFr82
Copy link
Author

RemiFr82 commented Feb 9, 2024

Can anyone tell me what is the problem ?
I don't understand what I'm reading, or I read the wrong stuff...

Copy link

@CRogos CRogos left a comment

Choose a reason for hiding this comment

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

Here are the OCA Guidelines: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst

Have a look at the pre-commit installation.
https://github.com/OCA/maintainer-tools/wiki/Install-pre-commit

pre-commit should format your code before committing it.
And you need to squash all your commits.

@@ -21,6 +22,7 @@ class ProjectType(models.Model):
project_ok = fields.Boolean(string="Can be applied for projects", default=True)
task_ok = fields.Boolean(string="Can be applied for tasks")
code = fields.Char(copy=False)
sequence = fields.Integer(string="Order")
Copy link

Choose a reason for hiding this comment

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

You should not change the display name. Order is not optimal because of Sales Order / Purchase Order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants