[IMP]GOLEM Membership : default account for subscription
This commit is contained in:
parent
410ef7c0eb
commit
1829c62879
@ -18,7 +18,7 @@
|
||||
{
|
||||
'name': 'GOLEM non-profit membership handling',
|
||||
'summary': 'Extends Odoo membership',
|
||||
'version': '10.0.2.1.0',
|
||||
'version': '10.0.2.2.0',
|
||||
'category': 'GOLEM',
|
||||
'author': 'Fabien Bourgeois, Michel Dessenne',
|
||||
'license': 'AGPL-3',
|
||||
|
@ -20,6 +20,27 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<!-- Actions -->
|
||||
<record model="ir.actions.act_window" id="action_membership_products">
|
||||
<field name="name">Subscriptions</field>
|
||||
<field name="res_model">product.template</field>
|
||||
<field name="domain">[('membership','=',True), ('type', '=', 'service')]</field>
|
||||
<field name="context" eval="{'membership':True, 'type':'service', 'default_membership': True, 'default_type': 'service', 'default_property_account_income_id': ref('golem_membership.account_756200')}" />
|
||||
<field name="search_view_id" ref="membership.membership_product_search_form_view" />
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="action_membership_product_view_tree">
|
||||
<field name="sequence" eval="1"/>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_id" ref="membership.membership_products_tree"/>
|
||||
<field name="act_window_id" ref="action_membership_products"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window.view" id="action_membership_product_view_form">
|
||||
<field name="sequence" eval="2"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="membership.membership_products_form"/>
|
||||
<field name="act_window_id" ref="action_membership_products"/>
|
||||
</record>
|
||||
<!-- Menus reorganization -->
|
||||
<!-- Deactivate classic membership list -->
|
||||
<record id="membership.menu_membership" model="ir.ui.menu">
|
||||
@ -38,7 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
parent="menu_association" sequence="100" />
|
||||
<menuitem name="Subscriptions" id="subscription_product_menu"
|
||||
parent="menu_config_association" sequence="5"
|
||||
action="membership.action_membership_products"/>
|
||||
action="action_membership_products" />
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
Loading…
x
Reference in New Issue
Block a user