Browse Source

Dirty hack to make the wizard views displayed OK in Windows Gtk Client.

5.0
Alexis de Lattre 11 years ago
parent
commit
ba3f4dca03
  1. 5
      asterisk_click2dial/wizard/open_calling_partner_view.xml
  2. 3
      asterisk_click2dial_crm/wizard/create_crm_phonecall_view.xml
  3. 2
      asterisk_click2dial_crm/wizard/open_calling_partner_view.xml

5
asterisk_click2dial/wizard/open_calling_partner_view.xml

@ -15,6 +15,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Open calling partner">
<group col="5" name="fix-width-gtk-client-v50-windows">
<field name="calling_number" colspan="4" />
<group attrs="{'invisible':[('partner_id','=',False)]}" colspan="4">
<field name="partner_address_id" />
@ -27,6 +28,7 @@
<button name="open_invoices" icon="gtk-go-forward" string="Related invoices" type="object" />
<button special="cancel" icon="gtk-cancel" string="Cancel" name="cancel1"/>
<newline />
<label string=" " /> <!-- Hack to have the full view of the Cancel button on GTK Client v50 for Windows -->
<!-- TODO : try to reimplement the scenario where the partner_address exist but not the partner ; cf the 6.1 branch -->
</group>
@ -46,6 +48,9 @@
<newline />
<button special="cancel" icon="gtk-cancel" string="Cancel" colspan="8" />
<newline />
<label string=" " /> <!-- Hack to have the full view of the Cancel button on GTK Client v50 for Windows -->
</group>
</group>
<!-- I repeat the cancel button for layout reasons -->
</form>

3
asterisk_click2dial_crm/wizard/create_crm_phonecall_view.xml

@ -15,11 +15,14 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="CRM phone call">
<group name="fix-width-gtk-v50-windows" col="2">
<field name="name" invisible="True" />
<newline />
<label string="Create a phone call in the CRM ?" colspan="2" />
<newline />
<button name="button_create_outgoing_phonecall" icon="gtk-new" string="Yes" type="object"/>
<button special="cancel" icon="gtk-cancel" string="No"/>
</group>
</form>
</field>
</record>

2
asterisk_click2dial_crm/wizard/open_calling_partner_view.xml

@ -19,7 +19,7 @@
<button name="open_invoices" position="after">
<button name="create_incoming_phonecall" icon="gtk-new" string="Create call in CRM" type="object" />
<newline/>
<button special="cancel" icon="gtk-cancel" string="Cancel" name="cancel2" colspan="4"/>
<button special="cancel" icon="gtk-cancel" string="Cancel" colspan="4"/>
</button>
<button name="cancel1" position="replace">
</button>

Loading…
Cancel
Save