-
-
Notifications
You must be signed in to change notification settings - Fork 360
[16.0][IMP] hr_timesheet_time_type: add the active field to be able t… #751
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
base: 16.0
Are you sure you want to change the base?
Conversation
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.
LGTM, tested in runboat
@@ -11,3 +11,4 @@ class ProjectTimeType(models.Model): | |||
name = fields.Char(required=True) | |||
code = fields.Char() | |||
description = fields.Text() | |||
active = fields.Boolean(default=True) |
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.
Please put it in views to change value
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.
Hi @peluko00 ,
The idea is to modify this field in the record action:
Action > Archive or Action > Unarchive
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.
Since we have enabled archiving, I think it would be useful to add an "Archived" filter:
<filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
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.
LGTM!
This PR has the |
…o archive records
3b93c7e
to
fdb43ce
Compare
Done! Thanks @ppyczko ! |
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.
LGTM!
@Chandresh-SerpentCS , could you check this improvement for me? |
Hi @pedrobaeza , can this improvement be merged? |
domain="[('active','=',False)]" | ||
/> | ||
<separator /> | ||
<field name="name" filter_domain="[('name', 'ilike', self)]" /> |
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.
These 2 lines are unrelated and shouldn't be here.
Add the active field to be able to archive records
cc https://helpdesk.apsl.net/ HT01785
@miquelalzanillas @peluko00 @mpascuall @ppyczko @javierobcn @BernatObrador please review