feat: separate fusion field service and LTC into standalone modules, update core modules
- fusion_claims: separated field service logic, updated controllers/views - fusion_tasks: updated task views and map integration - fusion_authorizer_portal: added page 11 signing, schedule booking, migrations - fusion_shipping: new standalone shipping module (Canada Post, FedEx, DHL, Purolator) - fusion_ltc_management: new standalone LTC management module
This commit is contained in:
@@ -160,7 +160,7 @@ class ResPartner(models.Model):
|
||||
|
||||
if self.is_technician_portal:
|
||||
# Add Field Technician group
|
||||
g = self.env.ref('fusion_claims.group_field_technician', raise_if_not_found=False)
|
||||
g = self.env.ref('fusion_tasks.group_field_technician', raise_if_not_found=False)
|
||||
if g and g not in internal_user.group_ids:
|
||||
internal_user.sudo().write({'group_ids': [(4, g.id)]})
|
||||
added.append('Field Technician')
|
||||
@@ -596,6 +596,7 @@ class ResPartner(models.Model):
|
||||
'name': _('Assigned Cases'),
|
||||
'res_model': 'sale.order',
|
||||
'view_mode': 'list,form',
|
||||
'views': [(False, 'list'), (False, 'form')],
|
||||
'domain': [('x_fc_authorizer_id', '=', self.id)],
|
||||
'context': {'default_x_fc_authorizer_id': self.id},
|
||||
}
|
||||
@@ -614,6 +615,7 @@ class ResPartner(models.Model):
|
||||
'name': _('Assessments'),
|
||||
'res_model': 'fusion.assessment',
|
||||
'view_mode': 'list,form',
|
||||
'views': [(False, 'list'), (False, 'form')],
|
||||
'domain': domain,
|
||||
}
|
||||
|
||||
@@ -697,6 +699,7 @@ class ResPartner(models.Model):
|
||||
'name': _('Assigned Deliveries'),
|
||||
'res_model': 'sale.order',
|
||||
'view_mode': 'list,form',
|
||||
'views': [(False, 'list'), (False, 'form')],
|
||||
'domain': [('x_fc_delivery_technician_ids', 'in', [self.authorizer_portal_user_id.id])],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user