[IMP] Improved wizard for publisher warranty contracts
bzr revid: nicolas.vanhoren@openerp.com-20101126133824-a0m6liazwl3x0z0k
This commit is contained in:
@@ -243,9 +243,10 @@ class publisher_warranty_contract_wizard(osv.osv_memory):
|
||||
A wizard osv to help people entering a publisher warranty contract.
|
||||
"""
|
||||
_name = 'publisher_warranty.contract.wizard'
|
||||
_inherit = "ir.wizard.screen"
|
||||
|
||||
_columns = {
|
||||
'name' : fields.char('Contract Name', size=256, required=True ),
|
||||
'name' : fields.char('Serial Key', size=256, required=True ),
|
||||
'state' : fields.selection([("draft", "Draft"), ("finished", "Finished")])
|
||||
}
|
||||
|
||||
|
||||
@@ -91,24 +91,39 @@
|
||||
<field name="model">publisher_warranty.contract.wizard</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Add Publisher Warranty Contract" col="2">
|
||||
<field name="state" invisible="1"/>
|
||||
<group states="draft">
|
||||
<group col="1">
|
||||
<separator string="Add Publisher Warranty Contract" />
|
||||
<field name="name" width="250" />
|
||||
</group>
|
||||
<group colspan="4">
|
||||
<button type="object" string="Cancel" icon="gtk-cancel" special="cancel"/>
|
||||
<button type="object" string="Validate" icon="gtk-apply" name="action_validate"/>
|
||||
</group>
|
||||
<form string="Register a contract">
|
||||
<group col="8">
|
||||
<group colspan="3" col="1">
|
||||
<field name="config_logo" widget="image" width="220" height="130" nolabel="1" colspan="1"/>
|
||||
<newline/>
|
||||
<label width="220" string="This wizard helps you register a publisher warranty contract in your OpenERP system. After the contract has been registered, you will be able to send issues directly to OpenERP."/>
|
||||
<label width="220"/>
|
||||
<label width="220" string=""/>
|
||||
<field name="state" invisible="1"/>
|
||||
</group>
|
||||
<separator orientation="vertical" rowspan="5"/>
|
||||
<group colspan="4">
|
||||
<separator string="Register a contract" colspan="4"/>
|
||||
<group states="draft" col="4">
|
||||
<label string="Please enter the serial key provided in your contract document:" colspan="4"/>
|
||||
<field name="name" colspan="4"/>
|
||||
</group>
|
||||
<group states="finished" col="4">
|
||||
<label string="Publisher warranty contract successfully registered!" colspan="4"/>
|
||||
</group>
|
||||
</group>
|
||||
<group colspan="8" col="8" states="draft">
|
||||
<separator string="" colspan="8"/>
|
||||
<label colspan="6" width="220"/>
|
||||
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
|
||||
<button name="action_validate" string="Register" type="object" icon="gtk-apply"/>
|
||||
</group>
|
||||
<group colspan="8" col="8" states="finished">
|
||||
<separator string="" colspan="8"/>
|
||||
<label colspan="6" width="220"/>
|
||||
<button special="cancel" string="Close" icon="gtk-ok"/>
|
||||
</group>
|
||||
</group>
|
||||
<group states="finished">
|
||||
<label string="The contract was correctly added." colspan="4" />
|
||||
<group colspan="4">
|
||||
<button type="object" string="Ok" icon="gtk-apply" special="cancel"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user