forked from Yaltik/golem
[IMP]GOLEM Member : ensures search and show in number manual too
This commit is contained in:
parent
ab07a57270
commit
b00598eaaa
@ -21,7 +21,7 @@
|
|||||||
'name': 'GOLEM non-profit members',
|
'name': 'GOLEM non-profit members',
|
||||||
'summary': 'Extends Odoo contacts for MJC',
|
'summary': 'Extends Odoo contacts for MJC',
|
||||||
'description': 'Extends Odoo contacts for MJC',
|
'description': 'Extends Odoo contacts for MJC',
|
||||||
'version': '10.0.2.8.3',
|
'version': '10.0.2.8.4',
|
||||||
'category': 'GOLEM',
|
'category': 'GOLEM',
|
||||||
'author': 'Fabien Bourgeois, Michel Dessenne',
|
'author': 'Fabien Bourgeois, Michel Dessenne',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -217,6 +217,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="city" />
|
<field name="city" />
|
||||||
<field name="country_id" />
|
<field name="country_id" />
|
||||||
<field name="number" />
|
<field name="number" />
|
||||||
|
<field name="number_manual" />
|
||||||
|
<field name="is_number_manual" />
|
||||||
<field name="season_ids" />
|
<field name="season_ids" />
|
||||||
<field name="category_id"/>
|
<field name="category_id"/>
|
||||||
<templates>
|
<templates>
|
||||||
@ -235,7 +237,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<div class="oe_kanban_details">
|
<div class="oe_kanban_details">
|
||||||
<h4 class="oe_partner_heading">
|
<h4 class="oe_partner_heading">
|
||||||
<a type="open"><field name="display_name" /></a>
|
<a type="open"><field name="display_name" /></a>
|
||||||
<t t-if="record.number.raw_value != ''">(N° <field name="number" />)</t>
|
<t t-if="record.is_number_manual == False and record.number.raw_value != ''">(N° <field name="number" />)</t>
|
||||||
|
<t t-if="record.is_number_manual and record.number_manual.raw_value != ''">(N° <field name="number_manual" />)</t>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="oe_kanban_partner_categories" />
|
<div class="oe_kanban_partner_categories" />
|
||||||
<div class="oe_kanban_partner_links" />
|
<div class="oe_kanban_partner_links" />
|
||||||
@ -280,6 +283,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<tree string="GOLEM Members">
|
<tree string="GOLEM Members">
|
||||||
<field name="season_ids" options="{'no_create': True}" />
|
<field name="season_ids" options="{'no_create': True}" />
|
||||||
<field name="number" />
|
<field name="number" />
|
||||||
|
<field name="number_manual" string="Member number" />
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="contact_address" />
|
<field name="contact_address" />
|
||||||
<field name="phone" />
|
<field name="phone" />
|
||||||
@ -295,7 +299,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="model">golem.member</field>
|
<field name="model">golem.member</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<search>
|
<search>
|
||||||
<field name="number" />
|
<field name="number"
|
||||||
|
filter_domain="['|', ('number', 'ilike', self), ('number_manual', 'ilike', self)]" />
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="season_ids" widget="many2one" />
|
<field name="season_ids" widget="many2one" />
|
||||||
<field name="area_id" />
|
<field name="area_id" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user