[FIX] project: fixes the default company_id issue in timesheets
Steps to reproduce: - install timesheets module - install all related timesheets bridge modules - open timesheets module - click on configuration - click on settings - under the timeoff, create a new project and click on create and edit Issue: - the current company is not set by default on the newly created record Cause: - the project id did not have any default company id attribute Solution: - if we gave a default attribute to the project id field then the issue will be solved task-3607053 closes odoo/odoo#150675 X-original-commit: 61a6ad35280dcca0e03dc0ca7ad3923ae1a12027 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="row mt16">
|
||||
<div class="w-100">
|
||||
<label string="Project" for="internal_project_id" class="col-2 col-lg-3"/>
|
||||
<field name="internal_project_id" context="{'active_test': False}" class="oe_inline ml16"/>
|
||||
<field name="internal_project_id" context="{'active_test': False, 'default_company_id': company_id}" class="oe_inline ml16"/>
|
||||
</div>
|
||||
<div class="w-100">
|
||||
<label string="Task" for="leave_timesheet_task_id" class="col-2 col-lg-3"/>
|
||||
|
||||
Reference in New Issue
Block a user