[IMP] small form view improvements
bzr revid: rco@openerp.com-20120629093256-np0ver7xyzam2qzm
This commit is contained in:
parent
76f17eb480
commit
7416e2443f
|
@ -107,7 +107,7 @@ class account_move_journal(osv.osv_memory):
|
|||
view = """<?xml version="1.0" encoding="utf-8"?>
|
||||
<form string="Standard entries" version="7.0">
|
||||
<header>
|
||||
<button string="%s" name="action_open_window" default_focus="1" type="object" class="oe_highlight_on_dirty"/>
|
||||
<button string="%s" name="action_open_window" default_focus="1" type="object" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel"/>
|
||||
</header>
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
<form string="Partner VAT intra" version="7.0">
|
||||
<header>
|
||||
<button name="create_xml" string="Create _XML" type="object" class="oe_highlight"/>
|
||||
or
|
||||
<button name="preview" string="_Preview" type="object" class="oe_highlight" />
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
|
|
|
@ -11,13 +11,11 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Product Cost Structure" version="7.0">
|
||||
<header>
|
||||
<button name="print_report" string="Print"
|
||||
colspan="1" type="object" class="oe_highlight" />
|
||||
<button name="print_report" type="object" string="Print" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</header>
|
||||
<group>
|
||||
<separator colspan="4" string="Print Cost Structure of Product." />
|
||||
<group string="Print Cost Structure of Product.">
|
||||
<field name="number"/>
|
||||
</group>
|
||||
</form>
|
||||
|
|
|
@ -12,13 +12,11 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Produce" version="7.0">
|
||||
<header>
|
||||
<button name="do_produce" string="Confirm"
|
||||
colspan="1" type="object" class="oe_highlight" />
|
||||
<button name="do_produce" type="object" string="Confirm" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</header>
|
||||
<group>
|
||||
<separator string="Produce" colspan="4"/>
|
||||
<group string="Produce">
|
||||
<field name="mode"/>
|
||||
<field name="product_qty" colspan="2"/>
|
||||
</group>
|
||||
|
|
|
@ -11,18 +11,16 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Select time unit" version="7.0">
|
||||
<header>
|
||||
<button name="print_report" string="Print"
|
||||
colspan="1" type="object" class="oe_highlight" />
|
||||
<button name="print_report" type="object" string="Print" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</header>
|
||||
<sheet>
|
||||
<group>
|
||||
<sheet layout="auto">
|
||||
<field name="time_unit"/>
|
||||
<newline/>
|
||||
<field name="measure_unit"/>
|
||||
</sheet>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
@ -69,15 +69,14 @@ class repair_cancel(osv.osv_memory):
|
|||
|
||||
repair_order = self.pool.get('mrp.repair').browse(cr, uid, record_id, context=context)
|
||||
if not repair_order.invoiced:
|
||||
res['arch'] = """ <form string="Cancel Repair" colspan="4">
|
||||
res['arch'] = """
|
||||
<form string="Cancel Repair" version="7.0">
|
||||
<header>
|
||||
<button name="cancel_repair" string="_Yes" type="object" class="oe_highlight_on_dirty"/>
|
||||
<button name="cancel_repair" string="_Yes" type="object" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel"/>
|
||||
</header>
|
||||
<group col="2" colspan="2">
|
||||
<label string="Do you want to continue?" colspan="4"/>
|
||||
</group>
|
||||
<label string="Do you want to continue?"/>
|
||||
</form>
|
||||
"""
|
||||
return res
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</header>
|
||||
<newline/>
|
||||
<group>
|
||||
<label string="This operation will cancel the Repair process, but will not cancel it's Invoice. Do you want to continue?"/>
|
||||
</group>
|
||||
|
|
|
@ -14,11 +14,7 @@
|
|||
<separator string="title" position="before">
|
||||
<label string="This plug-in allows you to create and link outlook emails with openerp objects."/>
|
||||
</separator>
|
||||
<xpath expr="//button[@string='Install Modules']" position="replace">
|
||||
<button icon="gtk-close" special="cancel" string="_Close"/>
|
||||
</xpath>
|
||||
<xpath expr="//button[@string='Cancel']" position="replace">
|
||||
</xpath>
|
||||
<xpath expr="//header" position="replace"/>
|
||||
<xpath expr="//separator[@string='title']" position="after" version="7.0">
|
||||
<group>
|
||||
<field name="plugin32" widget="url"/>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<separator string="title" position="before">
|
||||
<label string="This plug-in allows you to link your email to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one."/>
|
||||
</separator>
|
||||
<xpath expr="//header" position="replace"/>
|
||||
<xpath expr="//separator[@string='title']" position="after">
|
||||
<group>
|
||||
<field name="thunderbird" invisible="1"/>
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="POS Details" version="7.0">
|
||||
<header>
|
||||
<button name="print_report" string="Print Report"
|
||||
colspan="1" type="object" class="oe_highlight" />
|
||||
<button name="print_report" type="object" string="Print Report" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel"/>
|
||||
</header>
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Open Statements" version="7.0">
|
||||
<header>
|
||||
<button name="open_statement" string="Open Registers"
|
||||
type="object" class="oe_highlight" />
|
||||
<button name="open_statement" type="object" string="Open Registers" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel"/>
|
||||
</header>
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
<form string="Sale by User" version="7.0">
|
||||
<header>
|
||||
<button name="print_report" string="Print Report" type="object" icon="gtk-print" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" special="cancel" class="oe_link"/>
|
||||
</header>
|
||||
<group>
|
||||
<field name="user_id"/>
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Sale By User" version="7.0">
|
||||
<header>
|
||||
<button name="print_report" string="Print Report"
|
||||
type="object" icon="gtk-ok" class="oe_highlight" />
|
||||
<button name="print_report" type="object" string="Print Report" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" special="cancel" class="oe_link"/>
|
||||
</header>
|
||||
<group col="4">
|
||||
<field name="date_start"/>
|
||||
|
|
|
@ -328,7 +328,7 @@
|
|||
<button name="%(action_project_task_reevaluate)d" string="Reactivate" type="action"
|
||||
states="cancelled" context="{'button_reactivate':True}"/>
|
||||
<button name="action_close" string="Done" type="object"
|
||||
states="open,draft,pending" />
|
||||
states="draft,open,pending"/>
|
||||
<button name="do_pending" string="Pending" type="object"
|
||||
states="open"/>
|
||||
<button name="%(action_project_task_delegate)d" string="Delegate" type="action"
|
||||
|
|
Loading…
Reference in New Issue