[USA] add cancel button

bzr revid: rma@tinyerp.com-20120627141917-bs9bg2j3dasy9n1y
This commit is contained in:
Randhir Mayatra (OpenERP) 2012-06-27 19:49:17 +05:30
parent 942b330cde
commit a4b94dbee6
44 changed files with 143 additions and 49 deletions

View File

@ -8,7 +8,9 @@
<field name="arch" type="xml">
<form string="Import contacts from a google account" version="7.0">
<header>
<button name="import_google" string="_Import Contacts" type="object" icon="terp-personal+" class="oe_highlight_on_dirty" />
<button name="import_google" string="_Import Contacts" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group colspan="4" col="4" width="430">
<field name="group_name" colspan="4"/>
@ -34,7 +36,9 @@
<field name="arch" type="xml">
<form string="Import Google Calendar Events" version="7.0">
<header>
<button name="import_google" string="_Import Events" type="object" icon="terp-calendar" class="oe_highlight_on_dirty" />
<button name="import_google" string="_Import Events" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group colspan="4" col="4" width="320">
<field name="calendar_name" />

View File

@ -10,8 +10,11 @@
<field name="arch" type="xml">
<form string="Import Data From SugarCRM" version="7.0">
<header>
<button name="import_from_scheduler_all" string="_Schedule Recurrent Imports" type="object" icon="gtk-execute" class="oe_highlight_on_dirty" />
<button name="import_all" string="_Import" type="object" icon="terp-camera_test" class="oe_highlight_on_dirty" />
<button name="import_from_scheduler_all" string="_Schedule Recurrent Imports" type="object" class="oe_highlight_on_dirty" />
or
<button name="import_all" string="_Import" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="8" >
<group colspan="2" col="2" width="200">

View File

@ -9,7 +9,9 @@
<form string="Configure Knowledge" version="7.0">
<header>
<button string="Apply" type="object" name="execute" class="oe_highlight_on_dirty"/>
<button string="Cancel" type="object" name="cancel"/>
or
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
</header>
<sheet>
<group>

View File

@ -9,7 +9,9 @@
<field name="arch" type="xml">
<form string="Periodical VAT Declaration" version="7.0">
<header>
<button icon="gtk-execute" name="create_xml" string="Create XML" type="object" default_focus="1" class="oe_highlight_on_dirty" />
<button name="create_xml" string="Create XML" type="object" default_focus="1" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<group string="Declare Periodical VAT">

View File

@ -8,7 +8,9 @@
<field name="arch" type="xml">
<form string="Partner VAT Listing" version="7.0">
<header>
<button name="get_partner" string="View Customers" type="object" icon="terp-partner" class="oe_highlight_on_dirty" />
<button name="get_partner" string="View Customers" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<label string="This wizard will create an XML file for VAT details and total invoiced amounts per partner." colspan="4"/>
@ -66,7 +68,9 @@
<field name="arch" type="xml">
<form string="XML File has been Created." version="7.0">
<header>
<button name="print_vatlist" string="Print" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
<button name="print_vatlist" string="Print" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<separator string="XML File has been Created." colspan="4"/>
<label string="Save the File with '.xml' extension." colspan="4" nolabel="1"/>

View File

@ -9,8 +9,11 @@
<field name="arch" type="xml">
<form string="Partner VAT intra" version="7.0">
<header>
<button name="create_xml" string="Create _XML" type="object" icon="gtk-execute" class="oe_highlight_on_dirty" />
<button name="preview" string="_Preview" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
<button name="create_xml" string="Create _XML" type="object" class="oe_highlight_on_dirty" />
or
<button name="preview" string="_Preview" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<separator string="Intracom VAT Declaration"/>

View File

@ -9,7 +9,9 @@
<field name="arch" type="xml">
<form string="BVR Import" version="7.0">
<header>
<button name="import_bvr" string="Import" type="object" icon="gtk-ok" colspan="2" class="oe_highlight_on_dirty" />
<button name="import_bvr" string="Import" type="object" colspan="2" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<field name="file"/>

View File

@ -9,7 +9,9 @@
<field name="arch" type="xml">
<form string="DTA file creation - Results" version="7.0">
<header>
<button name="create_dta" string="Create DTA" type="object" icon="gtk-execute" colspan="2" class="oe_highlight_on_dirty" />
<button name="create_dta" string="Create DTA" type="object" colspan="2" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<field name="dta_file"/>

View File

@ -9,7 +9,9 @@
<field name="arch" type="xml">
<form string="Bilan Report" version="7.0">
<header>
<button name="print_bilan_report" string="Print" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="print_bilan_report" string="Print" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<field name="fiscalyear_id"/>

View File

@ -9,7 +9,9 @@
<field name="arch" type="xml">
<form string='Compte de resultat' version="7.0">
<header>
<button name="print_cdr_report" string="Print" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="print_cdr_report" string="Print" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<field name="fiscalyear_id"/>

View File

@ -8,7 +8,9 @@
<field name="arch" type="xml">
<form string="Print Tax Statements" version="7.0">
<header>
<button name="print_vat_declaration_report" string="Print Tax Statements" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="print_vat_declaration_report" string="Print Tax Statements" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4">
<field name="tax_code_id" widget="selection"/>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Reset cashbox" version="7.0">
<header>
<button icon="gtk-ok" name="set_to_zero" string="Set to Zero" type="object" class="oe_highlight_on_dirty" />
<button name="set_to_zero" string="Set to Zero" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<label string="Are you sure you want to reset this cashbox ?"/>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Cancel Order" version="7.0">
<header>
<button icon="gtk-ok" name="cancel" string="Yes" type="object" class="oe_highlight_on_dirty" />
<button name="cancel" string="Yes" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4" >
<label string="Are you sure you want to cancel this order ?"/>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Confirm" version="7.0">
<header>
<button icon="gtk-ok" name="confirm" string="Confirm Order" type="object" class="oe_highlight_on_dirty" />
<button name="confirm" string="Confirm Order" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4">
<separator string="Orders Confirmation" colspan="4"/>

View File

@ -8,7 +8,9 @@
<field name="arch" type="xml">
<form string="Compose Email" version="7.0">
<header>
<button icon="gtk-ok" name="send_mail" string="Send" type="object" class="oe_highlight_on_dirty" />
<button name="send_mail" string="Send" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="6" colspan="4">
<field name="model" invisible="1"/>

View File

@ -9,7 +9,9 @@
<form string="Configure Marketing" version="7.0">
<header>
<button string="Apply" type="object" name="execute" class="oe_highlight_on_dirty"/>
<button string="Cancel" type="object" name="cancel"/>
or
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
</header>
<group string="Campaigns">
<field name="module_marketing_campaign"/>

View File

@ -9,7 +9,9 @@
<field name="arch" type="xml">
<form string="Membership Invoice" version="7.0">
<header>
<button icon="gtk-apply" string="Join" name="membership_invoice" type="object" class="oe_highlight_on_dirty" />
<button string="Join" name="membership_invoice" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<field name="product_id" domain="[('membership','=',True)]" widget="selection" on_change="onchange_product(product_id)"/>

View File

@ -9,7 +9,8 @@
<form string="Configure Manufacturing" version="7.0">
<header>
<button string="Apply" type="object" name="execute" class="oe_highlight_on_dirty"/>
<button string="Cancel" type="object" name="cancel"/>
or
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
</header>
<sheet>
<group string="Manufacturing Order">

View File

@ -12,7 +12,9 @@
<form string="Change Product Qty" version="7.0">
<header>
<button name="change_prod_qty" string="Approve"
colspan="1" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
colspan="1" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<separator string="Change Quantity" colspan="4"/>

View File

@ -12,7 +12,9 @@
<form string="Product Cost Structure" version="7.0">
<header>
<button name="print_report" string="Print"
colspan="1" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
colspan="1" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<separator colspan="4" string="Print Cost Structure of Product." />

View File

@ -13,7 +13,9 @@
<form string="Produce" version="7.0">
<header>
<button name="do_produce" string="Confirm"
colspan="1" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
colspan="1" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<separator string="Produce" colspan="4"/>

View File

@ -12,7 +12,9 @@
<form string="Select time unit" version="7.0">
<header>
<button name="print_report" string="Print"
colspan="1" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
colspan="1" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<sheet layout="auto">

View File

@ -71,7 +71,9 @@ class repair_cancel(osv.osv_memory):
if not repair_order.invoiced:
res['arch'] = """ <form string="Cancel Repair" colspan="4">
<header>
<button name="cancel_repair" string="_Yes" type="object" icon="gtk-ok" class="oe_highlight_on_dirty"/>
<button name="cancel_repair" string="_Yes" type="object" class="oe_highlight_on_dirty"/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="2" colspan="2">
<label string="Do you want to continue?" colspan="4"/>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Cancel Repair Order" version="7.0">
<header>
<button name="cancel_repair" string="Yes" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="cancel_repair" string="Yes" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<newline/>
<group>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Create invoices" version="7.0">
<header>
<button name="make_invoices" string="Create Invoice" type="object" icon="terp-gtk-go-back-rtl" class="oe_highlight_on_dirty" />
<button name="make_invoices" string="Create Invoice" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group string="Do you really want to create the invoice(s)?">
<field name="group"/>

View File

@ -10,7 +10,9 @@
<field name="arch" type="xml">
<form string="Put Money" version="7.0">
<header>
<button name="get_in" string="Put Money" type="object" icon="gtk-apply" class="oe_highlight_on_dirty" />
<button name="get_in" string="Put Money" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<separator string="Fill in this form if you put money in the cash register:"/>

View File

@ -10,7 +10,9 @@
<field name="arch" type="xml">
<form string="Output Operation" version="7.0">
<header>
<button name="get_out" string="Take Money" type="object" icon="gtk-apply" class="oe_highlight_on_dirty" />
<button name="get_out" string="Take Money" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4" string="Describe why you take money from the cash register:">
<field name="name"/>

View File

@ -11,9 +11,12 @@
<form string="Close Cash Registers" version="7.0">
<header>
<button name="close_statement" string="Yes"
type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button icon='gtk-stop' type="object" name="cancel_wizard"
type="object" class="oe_highlight_on_dirty" />
or
<button type="object" name="cancel_wizard"
string="No" invisible="not context.get('cancel_action')" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<separator string="Do you want to close your cash registers?"/>
<label string="OpenERP will close all cash registers he can close automatically without validation. He will also open all cash registers for which you have to control the ending balance before closing manually."/>

View File

@ -9,7 +9,9 @@
<field name="arch" type="xml">
<form string="Post All Orders" version="7.0">
<header>
<button name="action_confirm" string="Generate Entries" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="action_confirm" string="Generate Entries" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<separator string="Generate Journal Entries"/>
<label string="Generate all sale journal entries for non invoiced orders linked to a closed cash register or statement."/>

View File

@ -11,7 +11,9 @@
<form string="POS Details" version="7.0">
<header>
<button name="print_report" string="Print Report"
colspan="1" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
colspan="1" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4" string="Dates">
<field name="date_start"/>

View File

@ -10,7 +10,9 @@
<field name="arch" type="xml">
<form string="Apply Discount" version="7.0">
<header>
<button name="apply_discount" string="Apply Discount" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="apply_discount" string="Apply Discount" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<field name="discount"/>

View File

@ -11,7 +11,9 @@
<form string="Open Statements" version="7.0">
<header>
<button name="open_statement" string="Open Registers"
type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<separator string="Do you want to open cash registers?"/>
<label string="The system will open all cash registers, so that you can start recording payments. We suggest you to control the opening balance of each register, using their CashBox tab."/>

View File

@ -9,7 +9,9 @@
<field name="arch" type="xml">
<form string="Add payment :" version="7.0">
<header>
<button name="check" string="Make Payment" colspan="1" type="object" icon="gtk-apply" class="oe_highlight_on_dirty" />
<button name="check" string="Make Payment" colspan="1" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4">
<field name="journal"/>

View File

@ -10,7 +10,9 @@
<field name="arch" type="xml">
<form string="Payment Report" version="7.0">
<header>
<button name="print_report" string="Print Report" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
<button name="print_report" string="Print Report" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
</form>
</field>

View File

@ -10,7 +10,9 @@
<field name="arch" type="xml">
<form string="Pyament Report " version="7.0">
<header>
<button name="print_report" string="Print Report" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
<button name="print_report" string="Print Report" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
</form>
</field>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Receipt :" version="7.0">
<header>
<button name="print_report" string="Print Receipt" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
<button name="print_report" string="Print Receipt" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<label string="Print the Receipt of the Sale"/>

View File

@ -8,7 +8,9 @@
<field name="arch" type="xml">
<form string="Return lines" version="7.0">
<header>
<button icon='gtk-ok' name= "create_returns" string="Return Products" type="object" class="oe_highlight_on_dirty" />
<button name= "create_returns" string="Return Products" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
</form>
</field>

View File

@ -19,7 +19,9 @@
<form string="Add Portal Access" version="7.0">
<header>
<button string="Send Invitations"
name="action_create" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
name="action_create" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4">
<field name="portal_id" widget="selection"/>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Procurement Request" version="7.0">
<header>
<button name="make_procurement" string="Ask New Products" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="make_procurement" string="Ask New Products" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4" string="This wizard will plan the procurement for this product. This procurement may generate task, production orders or purchase orders."/>
<group>

View File

@ -12,7 +12,9 @@
<form string="Parameters" version="7.0">
<header>
<button name="procure_calculation" string="Compute Procurements"
type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<label string="This wizard will schedule procurements."/>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Parameters" version="7.0">
<header>
<button name="procure_calculation" string="Compute Stock" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="procure_calculation" string="Compute Stock" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group>
<label string="Wizard checks all the stock minimum rules and generate procurement order."/>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Scheduler Parameters" version="7.0">
<header>
<button name="procure_calculation" string="Compute Schedulers" type="object" icon="gtk-ok" class="oe_highlight_on_dirty" />
<button name="procure_calculation" string="Compute Schedulers" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group string="This wizard allows you to run all procurement, production and/or purchase orders that should be processed based on their configuration. By default, the scheduler is launched automatically every night by OpenERP. You can use this menu to force it to be launched now. Note that it runs in the background, you may have to wait for a few minutes until it has finished computing.">
<field name="automatic"/>

View File

@ -11,7 +11,9 @@
<field name="arch" type="xml">
<form string="Price List" version="7.0">
<header>
<button name="print_report" string="Print" type="object" icon="gtk-print" class="oe_highlight_on_dirty" />
<button name="print_report" string="Print" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group string="Calculate Product Price per Unit Based on Pricelist Version.">
<field name="price_list" widget="selection"/>

View File

@ -8,7 +8,9 @@
<field name="arch" type="xml">
<form string="Properties categories" version="7.0">
<header>
<button name="action_open_window" string="Open Margins" type="object" icon="gtk-execute" class="oe_highlight_on_dirty" />
<button name="action_open_window" string="Open Margins" type="object" class="oe_highlight_on_dirty" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<group col="4" string="General Information">
<field name="from_date" />