Commit 39bb7bb0 authored by Luca Cristaldi's avatar Luca Cristaldi

Fix __all__ and change name to some xml files/tag

parent cbb6a156
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
from . import account
from . import member
......
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelView, ModelSQL, ModelSingleton, fields
from trytond.pyson import Eval
from trytond.modules.company.model import (CompanyMultiValueMixin,
......
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model.exceptions import ValidationError
......
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import PoolMeta
......
......@@ -14,7 +14,7 @@ from .exceptions import (PeriodDateOverlapError, AmountLessThanZeroError,
PartyAccountPayableRequiredError)
__all__ = [
'Membership', 'Period', 'Fee', 'Line', 'PostFee', 'GenerateFee',
'Membership', 'Period', 'Fee', 'MembershipType', 'PostFee', 'GenerateFee',
'GenerateFeeStart'
]
......
......@@ -14,16 +14,16 @@ this repository contains the full copyright notices and license terms. -->
<field name="type">form</field>
<field name="name">membership_type_form</field>
</record>
<record model="ir.action.act_window" id="act_membership_form">
<record model="ir.action.act_window" id="act_membership_type_form">
<field name="name">Membership Types</field>
<field name="res_model">association.membership.type</field>
</record>
<record model="ir.action.act_window.view" id="act_membership_form1">
<record model="ir.action.act_window.view" id="act_membership_type_form1">
<field name="sequence">10</field>
<field name="view" ref="view_membership_type_tree" />
<field name="act_window" ref="view_membership_type_form" />
</record>
<record model="ir.action.act_window.view" id="act_membership_form2">
<record model="ir.action.act_window.view" id="act_membership_type_form2">
<field name="sequence">20</field>
<field name="view" ref="view_membership_type_form" />
<field name="act_window" ref="view_membership_type_tree" />
......@@ -34,14 +34,14 @@ this repository contains the full copyright notices and license terms. -->
<field name="priority" eval="20" />
<field name="name">membership_period_tree_editable</field>
</record>
<record model="ir.model.access" id="access_membership">
<record model="ir.model.access" id="access_membership_type">
<field name="model" search="[('model', '=', 'association.membership.type')]" />
<field name="perm_read" eval="True" />
<field name="perm_write" eval="False" />
<field name="perm_create" eval="False" />
<field name="perm_delete" eval="False" />
</record>
<record model="ir.model.access" id="access_membership_member_approval">
<record model="ir.model.access" id="access_membership_type_member_approval">
<field name="model" search="[('model', '=', 'association.membership.type')]" />
<field name="group" ref="group_member_approval" />
<field name="perm_read" eval="True" />
......@@ -49,7 +49,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_create" eval="True" />
<field name="perm_delete" eval="True" />
</record>
<record model="ir.model.access" id="access_membership_admin">
<record model="ir.model.access" id="access_membership_type_admin">
<field name="model" search="[('model', '=', 'association.membership.type')]" />
<field name="group" ref="group_association_admin" />
<field name="perm_read" eval="True" />
......@@ -57,7 +57,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_create" eval="True" />
<field name="perm_delete" eval="True" />
</record>
<record model="ir.model.access" id="access_membership_group_association">
<record model="ir.model.access" id="access_membership_type_group_association">
<field name="model" search="[('model', '=', 'association.membership.type')]" />
<field name="group" ref="group_association" />
<field name="perm_read" eval="True" />
......@@ -65,7 +65,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_create" eval="True" />
<field name="perm_delete" eval="True" />
</record>
<menuitem name="Membership Types" sequence="20" parent="menu_configuration" id="menu_membership" action="act_membership_form" icon="tryton-list" />
<menuitem name="Membership Types" sequence="20" parent="menu_configuration" id="menu_membership" action="act_membership_type_form" icon="tryton-list" />
<record model="ir.ui.menu-res.group" id="menu_membership_group_association_admin">
<field name="menu" ref="menu_membership" />
<field name="group" ref="group_association_admin" />
......@@ -160,20 +160,20 @@ this repository contains the full copyright notices and license terms. -->
<field name="group" ref="group_association_admin" />
</record>
<!-- membership line -->
<record model="ir.ui.view" id="membership_line_view_tree_editable">
<record model="ir.ui.view" id="membership_view_tree_editable">
<field name="model">association.membership</field>
<field name="type">tree</field>
<field name="priority" eval="30" />
<field name="name">membership_line_tree_editable</field>
<field name="name">membership_tree_editable</field>
</record>
<record model="ir.model.access" id="access_membership_line">
<record model="ir.model.access" id="access_membership">
<field name="model" search="[('model', '=', 'association.membership')]" />
<field name="perm_read" eval="True" />
<field name="perm_write" eval="False" />
<field name="perm_create" eval="False" />
<field name="perm_delete" eval="False" />
</record>
<record model="ir.model.access" id="access_membership_line_admin">
<record model="ir.model.access" id="access_membership_admin">
<field name="model" search="[('model', '=', 'association.membership')]" />
<field name="group" ref="group_association_admin" />
<field name="perm_read" eval="True" />
......@@ -181,7 +181,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_create" eval="True" />
<field name="perm_delete" eval="True" />
</record>
<record model="ir.model.access" id="access_membership_line_group_association">
<record model="ir.model.access" id="access_membership_group_association">
<field name="model" search="[('model', '=', 'association.membership')]" />
<field name="group" ref="group_association" />
<field name="perm_read" eval="True" />
......
#!/usr/bin/env python3
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import io
import os
import re
......
......@@ -14,7 +14,7 @@ this repository contains the full copyright notices and license terms. -->
<newline />
<notebook colspan="6">
<page string="Memberships" id="membership_lines">
<field name="memberships" colspan="6" view_ids="association.membership_line_view_tree_editable" />
<field name="memberships" colspan="6" view_ids="association.membership_view_tree_editable" />
</page>
<page string="Other" id="other">
<label name="company" />
......
......@@ -4,7 +4,6 @@ this repository contains the full copyright notices and license terms. -->
<form col="4">
<label name="name" />
<field name="name" />
<newline />
<notebook colspan="4">
<page string="Periods" id="membership_periods">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment