[IMP] crm deduplicate contacts view
Move buttons to the footer. Closes: #562
This commit is contained in:
committed by
Antony Lesuisse
parent
9ed13353c0
commit
8f7ff79c14
@@ -23,39 +23,6 @@
|
|||||||
<field name='model'>base.partner.merge.automatic.wizard</field>
|
<field name='model'>base.partner.merge.automatic.wizard</field>
|
||||||
<field name='arch' type='xml'>
|
<field name='arch' type='xml'>
|
||||||
<form string='Automatic Merge Wizard'>
|
<form string='Automatic Merge Wizard'>
|
||||||
<header>
|
|
||||||
<button name='merge_cb' string='Merge Selection'
|
|
||||||
class='oe_highlight'
|
|
||||||
type='object'
|
|
||||||
attrs="{'invisible': [('state', 'in', ('option', 'finished' ))]}"
|
|
||||||
/>
|
|
||||||
<button name='next_cb' string='Skip these contacts'
|
|
||||||
type='object' class='oe_link'
|
|
||||||
attrs="{'invisible': [('state', '!=', 'selection')]}" />
|
|
||||||
<button name='start_process_cb'
|
|
||||||
string='Merge with Manual Check'
|
|
||||||
type='object' class='oe_highlight'
|
|
||||||
attrs="{'invisible': [('state', '!=', 'option')]}" />
|
|
||||||
<button name='automatic_process_cb'
|
|
||||||
string='Merge Automatically'
|
|
||||||
type='object' class='oe_highlight'
|
|
||||||
confirm="Are you sure to execute the automatic merge of your contacts ?"
|
|
||||||
attrs="{'invisible': [('state', '!=', 'option')]}" />
|
|
||||||
<button name='update_all_process_cb'
|
|
||||||
string='Merge Automatically all process'
|
|
||||||
type='object'
|
|
||||||
confirm="Are you sure to execute the list of automatic merges of your contacts ?"
|
|
||||||
attrs="{'invisible': [('state', '!=', 'option')]}" />
|
|
||||||
<span class="or_cancel" attrs="{'invisible': [('state', '=', 'finished')]} ">or
|
|
||||||
<button name="close_cb" special="nosave" string="Cancel" type="object" class="oe_link oe_inline"/>
|
|
||||||
</span>
|
|
||||||
<span class="or_cancel" attrs="{'invisible': [('state', '!=', 'finished')]} ">
|
|
||||||
<button name="close_cb" special="nosave"
|
|
||||||
string="Close"
|
|
||||||
type="object"
|
|
||||||
class="oe_link oe_inline"/>
|
|
||||||
</span>
|
|
||||||
</header>
|
|
||||||
<sheet>
|
<sheet>
|
||||||
<group attrs="{'invisible': [('state', '!=', 'finished')]}" col="1">
|
<group attrs="{'invisible': [('state', '!=', 'finished')]}" col="1">
|
||||||
<h2>There is no more contacts to merge for this request...</h2>
|
<h2>There is no more contacts to merge for this request...</h2>
|
||||||
@@ -93,12 +60,14 @@
|
|||||||
attrs="{'invisible': [('state', 'in', ('option', 'finished'))]}"/>
|
attrs="{'invisible': [('state', 'in', ('option', 'finished'))]}"/>
|
||||||
<group attrs="{'invisible': [('state', 'in', ('option', 'finished'))]}" col="1">
|
<group attrs="{'invisible': [('state', 'in', ('option', 'finished'))]}" col="1">
|
||||||
<p class="oe_grey">
|
<p class="oe_grey">
|
||||||
The selected contacts will be merged together. All
|
Selected contacts will be merged together.
|
||||||
documents linking to one of these contacts will be
|
All documents linked to one of these contacts
|
||||||
redirected to the aggregated contact. You can remove
|
will be redirected to the destination contact.
|
||||||
contacts from this list to avoid merging them.
|
You can remove contacts from this list to avoid merging them.
|
||||||
</p>
|
</p>
|
||||||
<field name="dst_partner_id" domain="[('id', 'in', partner_ids and partner_ids[0] and partner_ids[0][2] or False)]" attrs="{'required': [('state', '=', 'selection')]}"/>
|
<group col="2">
|
||||||
|
<field name="dst_partner_id" domain="[('id', 'in', partner_ids and partner_ids[0] and partner_ids[0][2] or False)]" attrs="{'required': [('state', '=', 'selection')]}"/>
|
||||||
|
</group>
|
||||||
<field name="partner_ids" nolabel="1">
|
<field name="partner_ids" nolabel="1">
|
||||||
<tree string="Partners">
|
<tree string="Partners">
|
||||||
<field name="id" />
|
<field name="id" />
|
||||||
@@ -111,6 +80,36 @@
|
|||||||
</field>
|
</field>
|
||||||
</group>
|
</group>
|
||||||
</sheet>
|
</sheet>
|
||||||
|
<footer>
|
||||||
|
<button name='merge_cb' string='Merge Contacts'
|
||||||
|
class='oe_highlight'
|
||||||
|
type='object'
|
||||||
|
attrs="{'invisible': [('state', 'in', ('option', 'finished' ))]}"
|
||||||
|
/>
|
||||||
|
<button name='start_process_cb'
|
||||||
|
string='Merge with Manual Check'
|
||||||
|
type='object' class='oe_highlight'
|
||||||
|
attrs="{'invisible': [('state', '!=', 'option')]}" />
|
||||||
|
<button name='automatic_process_cb'
|
||||||
|
string='Merge Automatically'
|
||||||
|
type='object' class='oe_highlight'
|
||||||
|
confirm="Are you sure to execute the automatic merge of your contacts ?"
|
||||||
|
attrs="{'invisible': [('state', '!=', 'option')]}" />
|
||||||
|
<button name='update_all_process_cb'
|
||||||
|
string='Merge Automatically all process'
|
||||||
|
type='object'
|
||||||
|
confirm="Are you sure to execute the list of automatic merges of your contacts ?"
|
||||||
|
attrs="{'invisible': [('state', '!=', 'option')]}" />
|
||||||
|
<span class="or_cancel" attrs="{'invisible': [('state', '=', 'finished')]} ">or
|
||||||
|
<button name="close_cb" special="nosave" string="Cancel" type="object" class="oe_link oe_inline"/>
|
||||||
|
</span>
|
||||||
|
<span class="or_cancel" attrs="{'invisible': [('state', '!=', 'finished')]} ">
|
||||||
|
<button name="close_cb" special="nosave"
|
||||||
|
string="Close"
|
||||||
|
type="object"
|
||||||
|
class="oe_link oe_inline"/>
|
||||||
|
</span>
|
||||||
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user