[WIP][CHG]GOLEM migration to v10

This commit is contained in:
Fabien Bourgeois 2017-04-29 09:16:41 +02:00
parent 1b1609687f
commit d21083f808
57 changed files with 102 additions and 102 deletions

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM activities',
'summary': 'Extends Odoo products for multi-activity',
'version': '8.0.2.0.0',
'version': '10.0.2.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': True,
'installable': True,
'installable': False,
'depends': ['product', 'golem_base', 'golem_season'],
'data': ['security/ir.model.access.csv',
'data/golem_activity_data.xml',

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data noupdate="1">
<!-- Good default for product categories -->
<record id="property_account_expense_categ" model="ir.property">
@ -69,4 +69,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
search="[('code', '=', '604000')]" />
</record>
</data>
</openerp>
</odoo>

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class GolemActivity(models.Model):

View File

@ -15,8 +15,8 @@
# 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/>.
from openerp.tests.common import TransactionCase
from openerp.models import ValidationError
from odoo.tests.common import TransactionCase
from odoo.models import ValidationError
class GolemActivityTestCase(TransactionCase):

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM Activity Places',
'summary': 'GOLEM Activity avdanced places management',
'version': '8.0.2.0.0',
'version': '10.0.2.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'auto_install': False,
'depends': ['golem_activity_registration'],
'data': ['views/golem_activity_view.xml']

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class GolemActivity(models.Model):

View File

@ -15,8 +15,8 @@
# 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/>.
from openerp.tests.common import TransactionCase
from openerp.models import ValidationError
from odoo.tests.common import TransactionCase
from odoo.models import ValidationError
class GolemActivitySessionTestCase(TransactionCase):

View File

@ -15,7 +15,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
@ -52,4 +52,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM Activity Member Registrations',
'summary': 'GOLEM Activities Member Registrations management',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_activity', 'golem_member'],
'data': ['views/golem_activity_registration_view.xml',
'views/golem_member_view.xml', 'views/golem_activity_view.xml',

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class GolemMember(models.Model):

View File

@ -15,7 +15,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
<record id="registration_form" model="ir.ui.view">
@ -77,4 +77,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
groups="golem_base.group_golem_user"
sequence="20" />
</data>
</openerp>
</odoo>

View File

@ -15,7 +15,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
@ -76,4 +76,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -15,7 +15,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
@ -46,4 +46,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM Activity Member Registrations CSV exports',
'summary': 'GOLEM Activities Member Registration CSV exports',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_activity_registration'],
'data': ['views/golem_activity_view.xml']
}

View File

@ -16,9 +16,9 @@
# along with this program. if not, see <http://www.gnu.org/licenses/>.
import json
import openerp.http as http
from openerp.http import request
from openerp.addons.web.controllers.main import CSVExport
import odoo.http as http
from odoo.http import request
from odoo.addons.web.controllers.main import CSVExport
class ExportGolemActivityMembers(CSVExport):

View File

@ -16,7 +16,7 @@
# along with this program. if not, see <http://www.gnu.org/licenses/>.
from json import dumps
from openerp import models, api
from odoo import models, api
class GolemActivity(models.Model):

View File

@ -15,7 +15,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
@ -35,4 +35,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM Activity Session Member Registrations States',
'summary': 'GOLEM Activities Session Member Registration states',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_activity_registration'],
'data': ['views/golem_activity_registration_view.xml',
'views/golem_member_view.xml', 'views/golem_activity_view.xml']

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields, api
from odoo import models, fields, api
class GolemMember(models.Model):

View File

@ -15,7 +15,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Tree -->
@ -52,4 +52,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -15,7 +15,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
@ -40,4 +40,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -15,7 +15,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
@ -53,4 +53,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM base module for global dependencies',
'summary': 'GOLEM base installs base and shared dependencies for GOLEM',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['membership', 'contacts', 'mail', 'account_voucher',
'partner_firstname', 'partner_contact_birthdate',
'partner_contact_gender', 'partner_contact_nationality',

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data noupdate="0">
<!-- Groups -->
<record id="group_golem_user" model="res.groups">
@ -50,4 +50,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
eval="[(6, 0, [ref('golem_base.group_golem_manager')])]" />
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM families',
'summary': 'GOLEM Members Families',
'version': '8.0.2.0.0',
'version': '10.0.2.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_member'],
'data': ['security/ir.model.access.csv', 'views/golem_family_view.xml',
'views/golem_member_view.xml', 'views/res_partner_view.xml']

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class ResPartner(models.Model):

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Forms -->
<record id="view_form" model="ir.ui.view">
@ -207,4 +207,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
groups="golem_base.group_golem_manager" />
</data>
</openerp>
</odoo>

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
<record model="ir.ui.view" id="golem_member_family_smartbtn_add">
@ -41,4 +41,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
<record model="ir.ui.view" id="res_partner_family_smartbtn_add">
@ -52,4 +52,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM members minor and family',
'summary': 'GOLEM non-profit members family + minor management',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'auto_install': True,
'depends': ['golem_family', 'golem_member_minor'],
'data': []

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields
from odoo import models, fields
LEGAL_DMN = "['&', ('family_id', '=', family_id), ('id', '!=', partner_id)]"

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM non-profit members',
'summary': 'Extends Odoo contacts for MJC',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': True,
'installable': True,
'installable': False,
'depends': ['golem_base', 'golem_activity', 'golem_season'],
'data': ['views/golem_member_view.xml', 'views/members_menu.xml',
'views/res_partner_view.xml', 'views/number_config.xml',

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data noupdate="1">
<function model="ir.config_parameter" name="set_param"
eval="('golem_numberconfig_isautomatic', '1')" />
@ -28,4 +28,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<function model="ir.config_parameter" name="set_param"
eval="('golem_number_counter', '0')" />
</data>
</openerp>
</odoo>

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class ResPartner(models.Model):

View File

@ -15,8 +15,8 @@
# 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/>.
from openerp import exceptions
from openerp.tests.common import TransactionCase
from odoo import exceptions
from odoo.tests.common import TransactionCase
# from psycopg2 import IntegrityError

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Forms -->
<record id="view_form" model="ir.ui.view">
@ -185,4 +185,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
parent="base.menu_marketing_config_association" sequence="10"
action="tags_action_list" groups="golem_base.group_golem_manager" />
</data>
</openerp>
</odoo>

View File

@ -17,8 +17,8 @@ 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/>.
-->
<openerp>
<odoo>
<data noupdate="1">
<delete id="membership.menu_members" model="ir.ui.menu" />
</data>
</openerp>
</odoo>

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Forms -->
@ -59,4 +59,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
parent="base.menu_marketing_config_association" sequence="3"
groups="golem_base.group_golem_manager" />
</data>
</openerp>
</odoo>

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Forms -->
<record model="ir.ui.view" id="member_add">
@ -135,4 +135,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM Member Family Quotient',
'summary': 'GOLEM Members Family Quotients',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_member'],
'data': ['golem_member_view.xml']
}

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields
from odoo import models, fields
class GolemMember(models.Model):

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
<record model="ir.ui.view" id="qf_form">
@ -45,4 +45,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM members minor',
'summary': 'GOLEM non-profit members minor management',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_member'],
'data': ['golem_member_view.xml']
}

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import datetime, timedelta
from openerp import models, fields, api
from odoo import models, fields, api
class GolemMember(models.Model):

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
@ -67,4 +67,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase
class GolemMemberMinorTestCase(TransactionCase):

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM members skills',
'summary': 'GOLEM non-profit members skills management',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_member'],
'data': ['views/golem_member_view.xml', 'views/res_partner_view.xml',
'security/ir.model.access.csv']

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields
from odoo import models, fields
class ResPartner(models.Model):

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
<record model="ir.ui.view" id="golem_member_skills_form">
@ -64,4 +64,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
sequence="5" groups="golem_base.group_golem_manager" />
</data>
</openerp>
</odoo>

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Form -->
<record model="ir.ui.view" id="res_partner_skills_form">
@ -50,4 +50,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</field>
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM non-profit membership handling',
'summary': 'Extends Odoo membership',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_member', 'account', 'decimal_precision'],
'data': ['views/golem_membership_invoice.xml',
'views/golem_member_view.xml']

View File

@ -15,8 +15,8 @@
# 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/>.
from openerp import models, fields, api
from openerp.addons import decimal_precision as dp
from odoo import models, fields, api
from odoo.addons import decimal_precision as dp
class GolemMembershipInvoice(models.TransientModel):

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Forms -->
<record model="ir.ui.view" id="membership_add">
@ -73,4 +73,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Forms -->
<record id="membership_invoice_view" model="ir.ui.view">
@ -53,4 +53,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record>
</data>
</openerp>
</odoo>

View File

@ -18,12 +18,12 @@
{
'name': 'GOLEM seasons',
'summary': 'GOLEM non-profit seasons management',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': False,
'installable': True,
'installable': False,
'depends': ['golem_base'],
'data': ['security/ir.model.access.csv', 'views/golem_season_view.xml']
}

View File

@ -15,7 +15,7 @@
# 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/>.
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class GolemSeason(models.Model):

View File

@ -17,7 +17,7 @@ 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/>.
-->
<openerp>
<odoo>
<data>
<!-- Forms -->
@ -80,4 +80,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
action="action_list" groups="golem_base.group_golem_manager" />
</data>
</openerp>
</odoo>