From 97323a1a4acf4d7b49ff67d33b58a6e4bf3600cb Mon Sep 17 00:00:00 2001 From: thelie Date: Fri, 14 Jul 2017 15:24:55 +0200 Subject: [PATCH] First commit --- .idea/geselle-wunsch.iml | 11 ++ .idea/misc.xml | 4 + .idea/modules.xml | 8 + .idea/workspace.xml | 334 +++++++++++++++++++++++++++++++++++ __init__.py | 4 + __manifest__.py | 35 ++++ controllers/__init__.py | 3 + controllers/__init__.pyc | Bin 0 -> 209 bytes controllers/controllers.py | 20 +++ controllers/controllers.pyc | Bin 0 -> 209 bytes demo/demo.xml | 30 ++++ models/__init__.py | 4 + models/__init__.pyc | Bin 0 -> 239 bytes models/models.py | 15 ++ models/models.pyc | Bin 0 -> 242 bytes models/partner.py | 8 + models/partner.pyc | Bin 0 -> 593 bytes security/ir.model.access.csv | 2 + views/partner.xml | 18 ++ views/templates.xml | 22 +++ views/views.xml | 59 +++++++ 21 files changed, 577 insertions(+) create mode 100644 .idea/geselle-wunsch.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/workspace.xml create mode 100644 __init__.py create mode 100644 __manifest__.py create mode 100644 controllers/__init__.py create mode 100644 controllers/__init__.pyc create mode 100644 controllers/controllers.py create mode 100644 controllers/controllers.pyc create mode 100644 demo/demo.xml create mode 100644 models/__init__.py create mode 100644 models/__init__.pyc create mode 100644 models/models.py create mode 100644 models/models.pyc create mode 100644 models/partner.py create mode 100644 models/partner.pyc create mode 100644 security/ir.model.access.csv create mode 100644 views/partner.xml create mode 100644 views/templates.xml create mode 100644 views/views.xml 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 0000000000000000000000000000000000000000..3fa8efc489d3d6ebff93d22328d943ced047526e GIT binary patch literal 209 zcmY+8y$S*`41m+SMHDyR!7dtb7I6?q2c2{&$2EAx{>Y_=_-?+HFJKA|8j>%Bz?anT z>3II?&MkbSlD?JVnZQaa@Bl%xli6x&j(!$SqhE?`X9WP z83S3@VD88}!ky#W3X@F<8*5W!yb_bh7LOrv+u@HLjd9UsW0v=49*Jrlk{vv4%2QlU FeE=/', 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 0000000000000000000000000000000000000000..8758def4dea43c58b4ddb54a0607fea7744570b4 GIT binary patch literal 209 zcmY*SF%H5o40I?1LSo|&WPwP`2r;m*Fu(*`Ra+z?t*bf};&1$l2Y`bZz_QOiTjwjD zlkx1~PZfM)pnanyQw7vC5CLifX9ETYaI}RU!b`&%ozhUjr_}CkmVPKB^FayNe~_JW zR}+TPB~LMs+XlHVT^6_!ksEOr5{i-Lx4x0eyNa9Cu`W9Kofqvrjr7~9X6z%av$tfo EH&LH4qyPW_ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..59eeb622c29c21f26a3745f4ae3fa751e86397fc GIT binary patch literal 239 zcmX|+!3x4K3_#OPR0P3~@X(7EJc}rJ^58*F?o!4YT(N7%+97_P-{cRNZenR(^FrFt z>@%O8-qo#y-{N%cDZ-MVX)~|@HG`Z1OU`@ekaO}3u3|)uh7m+U9207<(T2e%JOBUy literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..e028260945d3bc445e08b94aabfcf543d46cf6ce GIT binary patch literal 242 zcmYLD%?iRW3{F=O5qt-4?xF?Hq8>bZm?w7|Cc0v~4$>jMn{VX)D#XyRxe=3dw0v|8UuyHa VJkY9r#)<6MNVRjcO`l*%_yX9=H0%HX literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..bf074db99f66eb7a3c75bd57a3771cb287048eee GIT binary patch literal 593 zcmb_Y%TB{E5L`QLK?N=xI3sb%g<66uLKTlA6-rOdC5q||NpX@Y>j*f*m+?z{0PMO| z`vX|<*z0}FWTKywasOQ|mattBpHtp+&0zUc-~eg`se)QVszF%|s9_aBp}vP`u2D=^efZy(T(**;95Hdd#VgxH5 z&Y>2*Po>f!B=cAr=!l_1nyfd|=#=BfcaL3@yYmhU?66s4AhcNIz4LU;C9`&)j76hA zWXQ56uQAK~I0P)VcM^tN)s)y(KH(I2;l3}KQ}}Spm+kmsDcS=~IW#reDmT7FSD|^R z==I99wrx#rZQGD}K|<&7@~v-ZS(=SgX8T{0^+zIpin}D_BQ?^qV0O?VgMzX|aneiK alUN;^_Cmt#U(^IoZZ;0xiZT*7i~a!lbcopi literal 0 HcmV?d00001 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