[IMP] sale_timesheet : change default values of projects
If sale_timesheet is installed, the timer is activated by default. Task-2125111 closes odoo/odoo#44468 Related: odoo/enterprise#8109 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
committed by
Yannick Tivisse
parent
634dd65471
commit
62baa8a214
@@ -336,6 +336,7 @@ class TestAccountMove(AccountTestInvoicingCommon):
|
||||
def test_add_followers_on_post(self):
|
||||
# Add some existing partners, some from another company
|
||||
company = self.env['res.company'].create({'name': 'Oopo'})
|
||||
company.flush()
|
||||
existing_partners = self.env['res.partner'].create([{
|
||||
'name': 'Jean',
|
||||
'company_id': company.id,
|
||||
|
||||
@@ -108,7 +108,7 @@ class SaleOrderLine(models.Model):
|
||||
|
||||
def _timesheet_create_project(self):
|
||||
project = super()._timesheet_create_project()
|
||||
project.write({'allow_timesheets': True})
|
||||
project.write({'allow_timesheets': True, 'allow_timesheet_timer': True})
|
||||
return project
|
||||
|
||||
def _recompute_qty_to_invoice(self, date):
|
||||
|
||||
Reference in New Issue
Block a user