-
-
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] Migrate hr_contract_reference. #94
Conversation
return cid | ||
@api.model | ||
def create(self, vals): | ||
contract = super(hr_contract, self).create(vals) |
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.
Put before and inject in vals the sequence to avoid 2 operations. Check also if the value is /, and then get the sequence. Any other value, leave it as is. This is for make it easy to work with methods that writes directly a contract number.
1 similar comment
:alt: License: AGPL-3 | ||
|
||
HR Contract Reference | ||
=========== |
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.
This needs to be of the same length of the title
👍 |
============= | ||
|
||
If you want to modify the format of the sequence, go to | ||
Seetings -> Technical -> Sequences & Identifiers -> Sequences |
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.
Settings
Tested on runbot. Once typo are fixed |
[MIG] Migrate hr_contract_reference.
…costs_amend [BSSFL-11] Add missing README to module
BSIBSO-1014 : employee form and kanban changes
No description provided.