diff --git a/main/README.rst b/main/README.rst new file mode 100644 index 00000000..4e9bc206 --- /dev/null +++ b/main/README.rst @@ -0,0 +1,7 @@ +Main Module +=========== +This module contains the dependencies to install all others modules + +Contributors +------------ +* Jordi Riera diff --git a/main/__init__.py b/main/__init__.py new file mode 100644 index 00000000..98a1cb66 --- /dev/null +++ b/main/__init__.py @@ -0,0 +1,20 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) Jordi Riera +# +# 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 . +# +############################################################################## diff --git a/main/__init__.pyc b/main/__init__.pyc new file mode 100644 index 00000000..198516e4 Binary files /dev/null and b/main/__init__.pyc differ diff --git a/main/__manifest__.py b/main/__manifest__.py new file mode 100644 index 00000000..4e1ef4b3 --- /dev/null +++ b/main/__manifest__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +{ + 'name': 'Main Module', + 'version': 'beta', + 'author': 'Jordi Riera ', + 'maintainer': 'Jordi Riera ', + 'license': 'AGPL-3', + 'category': 'Main', + 'summary': 'Main Module, that install everything', + # Don't add demo module here as it should not be installed on prod server. + 'depends': [ + # odoo + 'product', + # server-tools + 'auditlog', + # 'disable_openerp_online', + # 'admin_technical_features', + ], + 'data': [], + 'installable': True, + 'application': True, +} diff --git a/main/static/description/icon.png b/main/static/description/icon.png new file mode 100644 index 00000000..4d4a1be0 Binary files /dev/null and b/main/static/description/icon.png differ diff --git a/main/tests/__init__.py b/main/tests/__init__.py new file mode 100644 index 00000000..5b7e94c0 --- /dev/null +++ b/main/tests/__init__.py @@ -0,0 +1 @@ +from . import test_res_partner_create \ No newline at end of file diff --git a/main/tests/__init__.pyc b/main/tests/__init__.pyc new file mode 100644 index 00000000..1137d458 Binary files /dev/null and b/main/tests/__init__.pyc differ diff --git a/main/tests/test_res_partner_create.py b/main/tests/test_res_partner_create.py new file mode 100644 index 00000000..f2f14bf3 --- /dev/null +++ b/main/tests/test_res_partner_create.py @@ -0,0 +1,22 @@ +import logging + +from odoo.tests import common +logger = logging.getLogger(__name__) + + +class TestResPartner(common.TransactionCase): + """Use case of creation of a partner.""" + def setUp(self): + super(TestResPartner, self).setUp() + self.partner_pool = self.env['res.partner'] + self.country_pool = self.env['res.country'] + self.canada = self.country_pool.browse(39) + + def test_create(self): + name = 'tpartner' + partner = self.partner_pool.create({ + 'name': name, + 'state_id': 1, + 'country_id': self.canada.id, + }) + self.assertEqual(name, partner.name) diff --git a/main/tests/test_res_partner_create.pyc b/main/tests/test_res_partner_create.pyc new file mode 100644 index 00000000..c6b73329 Binary files /dev/null and b/main/tests/test_res_partner_create.pyc differ