mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 00:52:02 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,40 @@
|
|||
# Copyright 2023 ACSONE SA/NV
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class GeoModelTest(models.Model):
|
||||
"""GeoModel for testing"""
|
||||
|
||||
_name = "geo.model.test"
|
||||
name = fields.Char("GeoModelTest")
|
||||
geo_multi_polygon = fields.GeoMultiPolygon()
|
||||
geo_polygon = fields.GeoPolygon()
|
||||
geo_line = fields.GeoLine()
|
||||
geo_point = fields.GeoPoint()
|
||||
geo_multi_line = fields.GeoMultiLine()
|
||||
geo_multi_point = fields.GeoMultiPoint()
|
||||
|
||||
|
||||
class DummyZip(models.Model):
|
||||
"""DummyZip model for testing"""
|
||||
|
||||
_name = "dummy.zip"
|
||||
_description = "Geoengine demo ZIP"
|
||||
|
||||
name = fields.Char("ZIP", index=True, required=True)
|
||||
city = fields.Char(index=True, required=True)
|
||||
the_geom = fields.GeoMultiPolygon("NPA Shape")
|
||||
the_poly = fields.GeoPolygon()
|
||||
|
||||
|
||||
class RetailMachine(models.Model):
|
||||
"""RetailMachine model for testing"""
|
||||
|
||||
_name = "retail.machine"
|
||||
_description = "Geoengine demo retailing machine"
|
||||
|
||||
the_point = fields.GeoPoint("Coordinate")
|
||||
total_sales = fields.Float("Total sale", index=True)
|
||||
money_level = fields.Char(index=True)
|
||||
state = fields.Selection([("hs", "HS"), ("ok", "OK")], index=True)
|
||||
name = fields.Char("Serial number", required=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue