Skip to content

Commit

Permalink
Dockerfile (#1)
Browse files Browse the repository at this point in the history
* setup Dockerfile and docker-compose for odoo11
* skip some peaky dependencies
* test in TravisCI
* test in CircleCI
  • Loading branch information
foutoucour authored and majouda committed Jul 29, 2024
1 parent 30fdd11 commit 1c94801
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Main Module
===========
This module contains the dependencies to install all others modules

Contributors
------------
* Jordi Riera <[email protected]>
20 changes: 20 additions & 0 deletions main/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) Jordi Riera <[email protected]>
#
# 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/>.
#
##############################################################################
Binary file added main/__init__.pyc
Binary file not shown.
22 changes: 22 additions & 0 deletions main/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- encoding: utf-8 -*-
{
'name': 'Main Module',
'version': 'beta',
'author': 'Jordi Riera <[email protected]>',
'maintainer': 'Jordi Riera <[email protected]>',
'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,
}
Binary file added main/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions main/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import test_res_partner_create
Binary file added main/tests/__init__.pyc
Binary file not shown.
22 changes: 22 additions & 0 deletions main/tests/test_res_partner_create.py
Original file line number Diff line number Diff line change
@@ -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)
Binary file added main/tests/test_res_partner_create.pyc
Binary file not shown.

0 comments on commit 1c94801

Please sign in to comment.