[FIX] sale_(project,timesheet): remove extra stat button
Purpose of this commit to remove one 'Sale Order' stat button from project update right side panel. So, in this commit we remove tha button defined in sale_timesheet module. task-2722863 Closes: #82068 X-original-commit: 6c3ece94db34de5cdfd23ff5a1f23733aead461e Part-of: odoo/odoo#82551
This commit is contained in:
committed by
Laurent Stukkens (LTU)
parent
ff2ffb9e0d
commit
689822e129
@@ -413,16 +413,6 @@ class Project(models.Model):
|
||||
'show': self.allow_timesheets and bool(self.analytic_account_id),
|
||||
'sequence': 9,
|
||||
})
|
||||
if self.user_has_groups('sales_team.group_sale_salesman_all_leads'):
|
||||
buttons.append({
|
||||
'icon': 'dollar',
|
||||
'text': _('Sales Orders'),
|
||||
'number': self.sale_order_count,
|
||||
'action_type': 'object',
|
||||
'action': 'action_view_sos',
|
||||
'show': self.sale_order_count > 0,
|
||||
'sequence': 18,
|
||||
})
|
||||
return buttons
|
||||
|
||||
class ProjectTask(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user