commit 97323a1a4acf4d7b49ff67d33b58a6e4bf3600cb Author: thelie Date: Fri Jul 14 15:24:55 2017 +0200 First commit diff --git a/.idea/geselle-wunsch.iml b/.idea/geselle-wunsch.iml new file mode 100644 index 0000000..6711606 --- /dev/null +++ b/.idea/geselle-wunsch.iml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..12f37ed --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..81ae064 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..39ee68e --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1500036521229 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..511a0ca --- /dev/null +++ b/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import controllers +from . import models \ No newline at end of file diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..0b80570 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +{ + 'name': "Gesellewunsch", + + 'summary': """ + WHAT IS MY PURPOSE?""", + + 'description': """ + I bring butter. + """, + + 'author': "My Company", + 'website': "http://www.yourcompany.com", + + # Categories can be used to filter modules in modules listing + # Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml + # for the full list + 'category': 'Uncategorized', + 'version': '0.1', + + # any module necessary for this one to work correctly + 'depends': ['base'], + + # always loaded + 'data': [ + # 'security/ir.model.access.csv', + 'views/views.xml', + 'views/templates.xml', + 'views/partner.xml', + ], + # only loaded in demonstration mode + 'demo': [ + 'demo/demo.xml', + ], +} \ No newline at end of file diff --git a/controllers/__init__.py b/controllers/__init__.py new file mode 100644 index 0000000..457bae2 --- /dev/null +++ b/controllers/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import controllers \ No newline at end of file diff --git a/controllers/__init__.pyc b/controllers/__init__.pyc new file mode 100644 index 0000000..3fa8efc Binary files /dev/null and b/controllers/__init__.pyc differ diff --git a/controllers/controllers.py b/controllers/controllers.py new file mode 100644 index 0000000..7272686 --- /dev/null +++ b/controllers/controllers.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from odoo import http + +# class Geselle-wunsch(http.Controller): +# @http.route('/geselle-wunsch/geselle-wunsch/', auth='public') +# def index(self, **kw): +# return "Hello, world" + +# @http.route('/geselle-wunsch/geselle-wunsch/objects/', auth='public') +# def list(self, **kw): +# return http.request.render('geselle-wunsch.listing', { +# 'root': '/geselle-wunsch/geselle-wunsch', +# 'objects': http.request.env['geselle-wunsch.geselle-wunsch'].search([]), +# }) + +# @http.route('/geselle-wunsch/geselle-wunsch/objects//', auth='public') +# def object(self, obj, **kw): +# return http.request.render('geselle-wunsch.object', { +# 'object': obj +# }) \ No newline at end of file diff --git a/controllers/controllers.pyc b/controllers/controllers.pyc new file mode 100644 index 0000000..8758def Binary files /dev/null and b/controllers/controllers.pyc differ diff --git a/demo/demo.xml b/demo/demo.xml new file mode 100644 index 0000000..749fca8 --- /dev/null +++ b/demo/demo.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..51ebd2e --- /dev/null +++ b/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import models +from . import partner \ No newline at end of file diff --git a/models/__init__.pyc b/models/__init__.pyc new file mode 100644 index 0000000..59eeb62 Binary files /dev/null and b/models/__init__.pyc differ diff --git a/models/models.py b/models/models.py new file mode 100644 index 0000000..bf981a2 --- /dev/null +++ b/models/models.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- + +from odoo import models, fields, api + +# class geselle-wunsch(models.Model): +# _name = 'geselle-wunsch.geselle-wunsch' + +# name = fields.Char() +# value = fields.Integer() +# value2 = fields.Float(compute="_value_pc", store=True) +# description = fields.Text() +# +# @api.depends('value') +# def _value_pc(self): +# self.value2 = float(self.value) / 100 \ No newline at end of file diff --git a/models/models.pyc b/models/models.pyc new file mode 100644 index 0000000..e028260 Binary files /dev/null and b/models/models.pyc differ diff --git a/models/partner.py b/models/partner.py new file mode 100644 index 0000000..be411ed --- /dev/null +++ b/models/partner.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +from odoo import fields, models + + +class Partner(models.Model): + _inherit = 'res.partner' + + external_reference = fields.Char("External reference", default="No reference") diff --git a/models/partner.pyc b/models/partner.pyc new file mode 100644 index 0000000..bf074db Binary files /dev/null and b/models/partner.pyc differ diff --git a/security/ir.model.access.csv b/security/ir.model.access.csv new file mode 100644 index 0000000..5490335 --- /dev/null +++ b/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_geselle-wunsch_geselle-wunsch,geselle-wunsch.geselle-wunsch,model_geselle-wunsch_geselle-wunsch,,1,0,0,0 \ No newline at end of file diff --git a/views/partner.xml b/views/partner.xml new file mode 100644 index 0000000..10ac3ac --- /dev/null +++ b/views/partner.xml @@ -0,0 +1,18 @@ + + + + partner + res.partner + + + + + + + + + + + + + \ No newline at end of file diff --git a/views/templates.xml b/views/templates.xml new file mode 100644 index 0000000..ba61acd --- /dev/null +++ b/views/templates.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/views/views.xml b/views/views.xml new file mode 100644 index 0000000..5db1847 --- /dev/null +++ b/views/views.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file