Skip to content
Snippets Groups Projects
Commit 954a0213 authored by Jose Luis Zanotti's avatar Jose Luis Zanotti
Browse files

added lat-lon fields to model and test view

parent dfcffa95
No related branches found
No related tags found
1 merge request!1Resolve CIT-2 "12.0 create lat long"
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
__init__.py 0 → 100644
# -*- coding: utf-8 -*-
# from . import controllers
from . import models
__manifest__.py 0 → 100644
###############################################################################
#
# Copyright (c) 2020 Eynes/E-MIPS (www.eynes.com.ar)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
{
'name': "Citrux Stock",
"version": "12.0.1.0.0",
"author": "Eynes/E-MIPS",
"license": "AGPL-3",
"description": "Stock and Location Management.",
'category': 'Uncategorized',
'depends': [
'stock',
],
'data': [
'views/stock_warehouse.xml',
],
"installable": True,
"application": True
}
\ No newline at end of file
# -*- coding: utf-8 -*-
from . import stock_warehouse
\ No newline at end of file
# -*- coding: utf-8 -*-
from odoo import models, fields
class CitrixWarehousePosition(models.Model):
_name='stock.warehouse'
_inherit = 'stock.warehouse'
latitude = fields.Float('Latitude', digits=(10,6))
longitude = fields.Float('Langitude', digits=(10,6))
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_citrix_stock_citrix_stock,citrix_stock.citrix_stock,model_citrix_stock_citrix_stock,,1,0,0,0
\ No newline at end of file
<odoo>
<data>
<record model="ir.ui.view" id="view_stock_warehouse_locations">
<field name="name">Stock Warehouse Location</field>
<field name="model">stock.warehouse</field>
<field name="inherit_id" ref="stock.view_warehouse"/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/notebook" position="before">
<group string="Location">
<field name="latitude"/>
<field name="longitude"/>
</group>
</xpath>
</field>
</record>
</data>
</odoo>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment