-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
[MIG] 10.0 Porting hr_employee_id #272
Conversation
Rebased in order to re-launch runbot after #274 |
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.
@astirpe @OCA/human-resources-maintainers Andrea, is it too much to ask you to make a method on Apply button to generate Identification Number for existing employees, if they don't have it generated?
@@ -25,5 +25,5 @@ class ResCompany(models.Model): | |||
employee_id_sequence = fields.Many2one( | |||
comodel_name='ir.sequence', | |||
string='Sequence', | |||
help="Pattern to be used for used for ID Generation", | |||
help="Pattern to be used for used for ID Generation" |
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.
@astirpe Hi Andrea, can you please fix the help message with better description: Pattern to be used for employee ID Generation".
@@ -25,5 +25,5 @@ class ResCompany(models.Model): | |||
employee_id_sequence = fields.Many2one( | |||
comodel_name='ir.sequence', | |||
string='Sequence', |
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.
@astirpe Can you update the strign as well: Employee ID Sequence.
default=5, | ||
help="Number of digits making up the ID" | ||
related='company_id.employee_id_random_digits', | ||
default=_default_id_random_digits | ||
) | ||
employee_id_sequence = fields.Many2one( |
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.
@astirpe Can you add the model in the field definition...will be more clear...
@astirpe Thanks for your quick reaction. 👍 |
@feketemihai it's possible and easy to add a method on the Apply button. On the other hand, in the past I had a similar experience with a customer: that didn't want to generate the number for existing employees by button; instead they asked to make the field editable in case no value is set already. That solution was better suitable for them, as they were able to fill the field for existing employees with values already defined. Maybe we could leave this point out of scope for this PR? I could add this point in the readme for the time being, and track the discussion on a separate PR. What do you think? Thank you! |
@astirpe For me it's ok to have this in readme, to know that it will not generate for existing ones... |
👍 |
Rebased branch in order to re-launch runbot |
Hi, testing v10, especially the new kiosk mode which adds a new field called "barcode". This field has the same meaning as the field ID added by this module. Have you considered using "barcode" field instead of adding a new field? |
[BSSFL-108] Initial Inventory
[BSIBSO-1117] have a customer dependent chrono for analytic accounts
Please notice that I considerably changed the configuration part in order to be compatible with Odoo V10.