Skip to content
Permalink
Browse files

fixup sale_project_Ts

  • Loading branch information...
jem-odoo committed Apr 12, 2019
1 parent 61bbca3 commit f344ddd7dbbe216cfcca357a8432e7687ec5c8a5
@@ -10,7 +10,7 @@ class ProductTemplate(models.Model):

service_tracking = fields.Selection(selection_add=[
('task_global_project', 'Create a task in an existing project'),
('task_in_project', 'Create a task in a new project'),
('task_in_project', 'Create a task in sale order\'s project'),
('project_only', 'Create a new project but no task'),
])
project_id = fields.Many2one(
@@ -335,7 +335,7 @@ def _plan_prepare_actions(self, values):
actions.append({
'label': _("Create a Sales Order"),
'type': 'action',
'action_id': 'sale_timesheet.project_project_action_multi_create_sale_order',
'action_id': 'sale_project_timesheet.project_project_action_multi_create_sale_order',
'context': json.dumps({'active_id': self.id, 'active_model': 'project.project'}),
})
if self.env.user.has_group('sales_team.group_sale_salesman_all_leads'):
@@ -353,7 +353,7 @@ def _plan_prepare_actions(self, values):
actions.append({
'label': _("Create Invoice"),
'type': 'action',
'action_id': 'sale_timesheet.project_project_action_multi_create_invoice',
'action_id': 'sale_project_timesheet.project_project_action_multi_create_invoice',
'context': json.dumps({'active_id': self.id, 'active_model': 'project.project'}),
})
return actions

0 comments on commit f344ddd

Please sign in to comment.
You can’t perform that action at this time.