diff --git a/fieldservice/__manifest__.py b/fieldservice/__manifest__.py index cf03364090..c064afd129 100644 --- a/fieldservice/__manifest__.py +++ b/fieldservice/__manifest__.py @@ -9,6 +9,7 @@ 'author': 'Open Source Integrators, Odoo Community Association (OCA)', 'website': 'https://github.com/OCA/field-service', 'depends': [ + 'base_geolocalize', 'mail', 'web_timeline', ], diff --git a/fieldservice/models/fsm_location.py b/fieldservice/models/fsm_location.py index b5f0cad13c..7c3f5a8f6d 100644 --- a/fieldservice/models/fsm_location.py +++ b/fieldservice/models/fsm_location.py @@ -13,6 +13,24 @@ class FSMLocation(models.Model): partner_id = fields.Many2one('res.partner', string='Related Partner', required=True, ondelete='restrict', auto_join=True) + owner_id = fields.Many2one('res.partner', string='Related Owner', + required=True, ondelete='restrict', + auto_join=True) + customer_id = fields.Many2one('res.partner', string='Related Customer', + required=True, ondelete='restrict', + auto_join=True) + tag_ids = fields.Many2many('fsm.tag', + string='Tags') + building = fields.Char(string='Building', size=35) + floor = fields.Char(string='Floor', size=35) + unit = fields.Char(string='Unit', size=35) + room = fields.Char(string='Room', size=35) + description = fields.Char(string='Description') + territory = fields.Char(string='Territory', size=35) + branch = fields.Char(string='Branch', size=35) + district = fields.Char(string='District', size=35) + region = fields.Char(string='Region', size=35) + timezone = fields.Char(string='Timezone', size=35) @api.model def create(self, vals): diff --git a/fieldservice/views/fsm_location.xml b/fieldservice/views/fsm_location.xml index 2545459669..949df5a0ab 100644 --- a/fieldservice/views/fsm_location.xml +++ b/fieldservice/views/fsm_location.xml @@ -1,17 +1,26 @@ - + fsm.location.tree fsm.location + + + + + + + + + fsm.location.form fsm.location @@ -21,32 +30,99 @@ + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + fsm.location.search + fsm.location + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Service Locations fsm.location form tree,form +

Create a Service Locations.

-

- Module not yet enabled. -