Browse Source

[IMP] remove national register number from views and template

pull/1/head
houssine 7 years ago
parent
commit
29e9627d78
  1. 4
      easy_my_coop_ch/__openerp__.py
  2. 13
      easy_my_coop_ch/views/subscription_request_view.xml
  3. 6
      easy_my_coop_ch/views/subscription_template.xml

4
easy_my_coop_ch/__openerp__.py

@ -31,8 +31,8 @@
This is the swiss localization for the easy my coop module
""",
'data': [
#'views/subscription_template.xml',
#'views/certificate_template.xml'
'views/subscription_template.xml',
'views/subscription_request_view.xml'
],
'installable': True,
}

13
easy_my_coop_ch/views/subscription_request_view.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="subscription_request_form" model="ir.ui.view">
<field name="name">subscription.request.form</field>
<field name="model">subscription.request</field>
<field name="inherit_id" ref="easy_my_coop.subscription_request_form"/>
<field name="arch" type="xml">
<field name="no_registre" position="replace"/>
</field>
</record>
</data>
</odoo>

6
easy_my_coop_ch/views/subscription_template.xml

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="subscription_i18n" inherit_id="easy_my_coop.becomecooperator" name="Removing fields">
<!-- <xpath expr="//label[@for='no_registre']/.." position="replace">
</xpath> -->
<template id="subscription_i18n_ch" inherit_id="easy_my_coop.becomecooperator" name="Removing fields">
<xpath expr="//label[@for='no_registre']/.." position="replace">
</xpath>
<xpath expr="//label[@for='iban']/.." position="replace">
</xpath>
</template>

Loading…
Cancel
Save