|
6 | 6 | <field name="model">spp.batch.scoring.wizard</field> |
7 | 7 | <field name="arch" type="xml"> |
8 | 8 | <form string="Batch Scoring"> |
| 9 | + <!-- Banner: explicit selection takes precedence over domain filter. --> |
| 10 | + <div |
| 11 | + class="alert alert-info text-center" |
| 12 | + role="alert" |
| 13 | + invisible="state != 'draft' or registrant_count == 0" |
| 14 | + > |
| 15 | + <strong> |
| 16 | + <field name="registrant_count" readonly="1" /> |
| 17 | + </strong> |
| 18 | + registrant(s) pre-selected. The domain filter below is |
| 19 | + ignored while specific registrants are listed. |
| 20 | + </div> |
| 21 | + |
9 | 22 | <group invisible="state != 'draft'"> |
10 | 23 | <group string="Scoring Configuration"> |
11 | 24 | <field name="model_id" /> |
12 | 25 | <field name="is_fail_fast" /> |
13 | 26 | <field name="max_records" /> |
14 | 27 | </group> |
15 | | - <group string="Registrant Selection"> |
| 28 | + <group string="Domain Filter" invisible="registrant_count != 0"> |
16 | 29 | <field name="registrant_domain" /> |
17 | | - <field name="registrant_ids" widget="many2many_tags" /> |
18 | 30 | </group> |
19 | 31 | </group> |
20 | 32 |
|
| 33 | + <!-- Selected registrants — embedded list keeps the wizard |
| 34 | + scannable when 80+ partners were pre-selected from a |
| 35 | + bulk list-view action. --> |
| 36 | + <notebook invisible="state != 'draft' or registrant_count == 0"> |
| 37 | + <page name="selected_registrants" string="Selected Registrants"> |
| 38 | + <field |
| 39 | + name="registrant_ids" |
| 40 | + options="{'no_create': True, 'no_open': True}" |
| 41 | + > |
| 42 | + <list create="false" delete="true"> |
| 43 | + <field name="name" /> |
| 44 | + </list> |
| 45 | + </field> |
| 46 | + </page> |
| 47 | + </notebook> |
| 48 | + |
21 | 49 | <group invisible="state != 'done'"> |
22 | 50 | <group string="Results"> |
23 | 51 | <field name="result_count" /> |
|
0 commit comments