feat(workorders): move address to contact and auto-compute zone
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ContactAddress(models.Model):
|
||||
_name = "dsrpt.contact.address"
|
||||
_description = "Contact Address"
|
||||
_order = "id desc"
|
||||
_rec_name = "description"
|
||||
|
||||
contact_id = fields.Many2one("dsrpt.contact", required=True, ondelete="cascade", index=True)
|
||||
description = fields.Char(required=True)
|
||||
latitude = fields.Float(digits=(10, 6))
|
||||
longitude = fields.Float(digits=(10, 6))
|
||||
Reference in New Issue
Block a user