-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* setup Dockerfile and docker-compose for odoo11 * skip some peaky dependencies * test in TravisCI * test in CircleCI
- Loading branch information
1 parent
30fdd11
commit 1c94801
Showing
9 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import test_res_partner_create |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.