Tuesday, December 15, 2020
7 changes · master
New functionality added to Odoo
When an HR responsible countersigns an employee contract, the system can now create a related time off allocation that only needs validation. This connects salary package contracts with time off management and adds an Extra Time Off leave type, while keeping the setting disabled by default to avoid multi-company setup issues.
Original PR description
…nature We would like to add a new allocation when a HR responsible countersigns a contract. With this brigde module between the hr_contract_salary and hr_holidays the allocation is created once the employee's contract is signed and only needs a validation. A Extra Time Off leave type is added to data's. To prevent multi-companies issues, the hr_salary_holidays_auto_allocation is not set to True as default, due to the fact that there are no Time Off Type defined at Company creation. Security : If a given user is the HR responsible for a Contract Template and has no rights on hr.leave.allocation an AccessError is raised once the responsible countersigns the contract. Task-2391381
Miscellaneous changes
What are the steps to reproduce your issue ? 1. Install "l10n_be_hr_contract,fleet,hr_recruitment" 2. Create a bike with "Can be requested" set to "False" in fleet 3. Try to use salary configurator in recruitement You can use this runbot (--all) https://5405698-14-0.runbot38.odoo.com/ everything is configured so you can easily reproduce the bug What is currently happening ? When no bike exists, or no bike is available, there is still the dropdown to ch
Original PR description
What are the steps to reproduce your issue ?
1. Install "l10n_be_hr_contract,fleet,hr_recruitment"
2. Create a bike with "Can be requested" set to "False" in fleet
3. Try to use salary configurator in recruitement
You can use this runbot (--all) https://5405698-14-0.runbot38.odoo.com/
everything is configured so you can easily reproduce the bug
What is currently happening ?
When no bike exists, or no bike is available,
there is still the dropdown to choose one in the salary configurator
and an error is raised when trying to choose one.
What are you expecting to happen ?
The system tell us that there is no bike currently without crash
Why is this happening ?
No server side verification
How to fix the bug ?
Check that there is a motorcycle available
Video: https://youtu.be/sMJOaLm1t9M
opw-2409625
Forward-Port-Of: odoo/enterprise#15308Steps to reproduce the bug: - Let's consider three contacts C1, C2, C3 with three different fiscal positions FP1, FP2, FP3 - Create a SO with C1 as customer, C2 as invoice address and C3 as delivery address - Add a subscription product SP to the SO and confirm it - Create a regular invoice I1 from the SO - The fiscal position on I1 is FP3 (the fiscal position of the delivery address) - Create an invoice I2 from the generated subscription SUB Bug: The fiscal position set on I2 was F
Original PR description
Steps to reproduce the bug: - Let's consider three contacts C1, C2, C3 with three different fiscal positions FP1, FP2, FP3 - Create a SO with C1 as customer, C2 as invoice address and C3 as delivery address - Add a subscription product SP to the SO and confirm it - Create a regular invoice I1 from the SO - The fiscal position on I1 is FP3 (the fiscal position of the delivery address) - Create an invoice I2 from the generated subscription SUB Bug: The fiscal position set on I2 was FP1 (the fiscal postion of the customer) instead of FP3 opw:2411813 Forward-Port-Of: odoo/enterprise#15289
I have improved the translation of the module l10n_mx_edi_landing to use the name used in Mexico. "Número de Aduana" is not used the correct term is "Número de Pedimento" Forward-Port-Of: odoo/enterprise#15302
Original PR description
I have improved the translation of the module l10n_mx_edi_landing to use the name used in Mexico. "Número de Aduana" is not used the correct term is "Número de Pedimento" Forward-Port-Of: odoo/enterprise#15302
- Go to Accounting - From the Dashboard, import a statement - The user is redirected to the reconciliation page The user needs to validate the imported bank statement before being able to reconcile it. Therefore, the actual behavior is confusing: the user is redirected to a page on which he is not allowed to perform an action. We redirect to the bank statement list/form view instead. opw-2388624 Forward-Port-Of: odoo/enterprise#15152
Original PR description
- Go to Accounting - From the Dashboard, import a statement - The user is redirected to the reconciliation page The user needs to validate the imported bank statement before being able to reconcile it. Therefore, the actual behavior is confusing: the user is redirected to a page on which he is not allowed to perform an action. We redirect to the bank statement list/form view instead. opw-2388624 Forward-Port-Of: odoo/enterprise#15152
To reproduce: 1/ Set up Google Calendar sync 2/ Go to /calendar 3/ Schedule an appointment 4/ In another tab go to the calendar app to force it to sync to Google Calendar 5/ Click the red "Cancel/Reschedule" button in /calendar: ... File "/home/jvo/odoo/addons/calendar/models/calendar_event.py", line 804, in unlink result = super().unlink() File "/home/jvo/odoo/addons/mail/models/mail_thread.py", line 336, in unlink res = super(MailThread, self).unlink() File "/home/
Original PR description
To reproduce:
1/ Set up Google Calendar sync
2/ Go to /calendar
3/ Schedule an appointment
4/ In another tab go to the calendar app to force it to sync to Google Calendar
5/ Click the red "Cancel/Reschedule" button in /calendar:
...
File "/home/jvo/odoo/addons/calendar/models/calendar_event.py", line 804, in unlink
result = super().unlink()
File "/home/jvo/odoo/addons/mail/models/mail_thread.py", line 336, in unlink
res = super(MailThread, self).unlink()
File "/home/jvo/odoo/addons/google_calendar/models/google_sync.py", line 107, in unlink
raise UserError(_("You cannot delete a record synchronized with Google Calendar, archive it instead."))
odoo.exceptions.UserError: You cannot delete a record synchronized with Google Calendar, archive it instead.
opw-2417084
Forward-Port-Of: odoo/enterprise#15303What are the steps to reproduce your issue ? 1. Install 'timesheet_grid' 2. Try to enter a timesheet with keyboard in the format HH:MM What is currently happening ? With some keyboard layouts shift button must be used to print ":", but in timesheet there is already a shortcut with Shift which prevents to set timesheet properly What are you expecting to happen ? When typing, press shift without selecting the whole cell How to fix the bug ? Don't
Original PR description
What are the steps to reproduce your issue ?
1. Install 'timesheet_grid'
2. Try to enter a timesheet with keyboard in the format HH:MM
What is currently happening ?
With some keyboard layouts shift button must be used to print ":",
but in timesheet there is already a shortcut with Shift which prevents
to set timesheet properly
What are you expecting to happen ?
When typing, press shift without selecting the whole cell
How to fix the bug ?
Don't trigger the Shift event if a cell is selected
opw-2411236
Forward-Port-Of: odoo/enterprise#15282