2010-03-10 09:31:52 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
2010-06-12 18:37:57 +00:00
<record id= "view_sale_advance_payment_inv" model= "ir.ui.view" >
2012-09-12 17:16:36 +00:00
<field name= "name" > Invoice Order</field>
2010-03-10 09:31:52 +00:00
<field name= "model" > sale.advance.payment.inv</field>
<field name= "arch" type= "xml" >
2012-12-21 16:48:08 +00:00
<form string= "Invoice Sales Order" version= "7.0" >
2012-09-12 17:16:36 +00:00
<p class= "oe_grey" >
Select how you want to invoice this order. This
will create a draft invoice that can be modified
before validation.
</p>
2012-07-23 15:28:41 +00:00
<group >
2012-09-12 17:16:36 +00:00
<field name= "advance_payment_method" class= "oe_inline"
2012-07-23 15:28:41 +00:00
on_change="onchange_method(advance_payment_method, product_id)"/>
2012-07-23 16:14:26 +00:00
<field name= "qtty" invisible= "1" />
2012-07-23 15:28:41 +00:00
<field name= "product_id"
on_change="onchange_method(advance_payment_method, product_id)"
context="{'search_default_services': 1}"
attrs="{'invisible': [('advance_payment_method','!=','fixed')]}"/>
<label for= "amount" attrs= "{'invisible': [('advance_payment_method', 'not in', ('fixed','percentage'))]}" />
<div attrs= "{'invisible': [('advance_payment_method', 'not in', ('fixed','percentage'))]}" >
<field name= "amount"
2012-11-23 12:05:53 +00:00
attrs="{'required': [('advance_payment_method', 'in', ('fixed','percentage'))]}" class="oe_inline"/>
2012-07-23 15:28:41 +00:00
<label string= "%%"
2012-11-23 12:05:53 +00:00
attrs="{'invisible': [('advance_payment_method', '!=', 'percentage')]}" class="oe_inline"/>
2012-07-23 15:28:41 +00:00
</div>
2012-05-10 11:02:05 +00:00
</group>
2012-08-23 10:19:17 +00:00
<div >
2012-09-12 17:16:36 +00:00
<b > <label string= "After clicking 'Show Lines to Invoice', select lines to invoice and create the invoice from the 'More' dropdown menu." attrs= "{'invisible': [('advance_payment_method', '!=', 'lines')]}" /> </b>
2012-08-23 10:19:17 +00:00
</div>
2012-07-23 15:28:41 +00:00
<footer >
2012-09-12 17:16:36 +00:00
<button name= "create_invoices" string= "Create and View Invoice" type= "object"
context="{'open_invoices': True}" class="oe_highlight"
attrs="{'invisible': [('advance_payment_method', '=', 'lines')]}"/>
2012-07-23 15:28:41 +00:00
<button name= "create_invoices" string= "Create Invoice" type= "object"
class="oe_highlight"
attrs="{'invisible': [('advance_payment_method', '=', 'lines')]}"/>
<button name= "create_invoices" string= "Show Lines to Invoice" type= "object"
class="oe_highlight"
attrs="{'invisible': [('advance_payment_method', '!=', 'lines')]}"/>
or
<button string= "Cancel" class= "oe_link" special= "cancel" />
</footer>
2010-08-18 06:22:59 +00:00
</form>
2010-03-10 09:31:52 +00:00
</field>
2010-06-12 18:37:57 +00:00
</record>
2010-03-10 09:31:52 +00:00
2010-07-29 10:32:53 +00:00
<record id= "action_view_sale_advance_payment_inv" model= "ir.actions.act_window" >
2012-09-12 17:16:36 +00:00
<field name= "name" > Invoice Order</field>
2010-07-29 10:32:53 +00:00
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.advance.payment.inv</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > form</field>
<field name= "target" > new</field>
</record>
2010-03-10 09:31:52 +00:00
</data>
2010-10-12 10:39:32 +00:00
</openerp>