[IMP]GOLEM Member : ensures search and show in number manual too

This commit is contained in:
Fabien BOURGEOIS 2022-08-26 15:28:35 +02:00
parent ab07a57270
commit b00598eaaa
2 changed files with 8 additions and 3 deletions

View File

@ -21,7 +21,7 @@
'name': 'GOLEM non-profit members',
'summary': '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',
'author': 'Fabien Bourgeois, Michel Dessenne',
'license': 'AGPL-3',

View File

@ -217,6 +217,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="city" />
<field name="country_id" />
<field name="number" />
<field name="number_manual" />
<field name="is_number_manual" />
<field name="season_ids" />
<field name="category_id"/>
<templates>
@ -235,7 +237,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div class="oe_kanban_details">
<h4 class="oe_partner_heading">
<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>
<div class="oe_kanban_partner_categories" />
<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">
<field name="season_ids" options="{'no_create': True}" />
<field name="number" />
<field name="number_manual" string="Member number" />
<field name="name" />
<field name="contact_address" />
<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="arch" type="xml">
<search>
<field name="number" />
<field name="number"
filter_domain="['|', ('number', 'ilike', self), ('number_manual', 'ilike', self)]" />
<field name="name" />
<field name="season_ids" widget="many2one" />
<field name="area_id" />