2008-07-01 15:58:58 +00:00
<?xml version="1.0" encoding="utf-8"?>
2008-09-10 17:56:00 +00:00
<openerp >
2008-06-29 08:26:07 +00:00
<data >
2008-07-01 15:58:58 +00:00
<record id= "account_analytic_account_form_form" model= "ir.ui.view" >
<field name= "name" > account.analytic.account.invoice.form</field>
<field name= "model" > account.analytic.account</field>
<field name= "type" > form</field>
<field name= "inherit_id" ref= "account.view_account_analytic_account_form" />
<field name= "arch" type= "xml" >
2011-11-16 14:59:58 +00:00
<group name= "contract" position= "after" >
<group colspan= "2" col= "2" name= "invoice_data" >
<separator colspan= "2" string= "Invoicing Data" />
<field name= "to_invoice" widget= "selection" />
<field name= "pricelist_id" domain= "[('type','=','sale')]" attrs= "{'required':[('to_invoice','!=',False)]}" />
2008-10-27 15:29:13 +00:00
<field name= "amount_max" />
2011-11-16 14:59:58 +00:00
</group>
<group colspan= "2" col= "2" name= "invoice_stats" >
<separator colspan= "4" string= "Invoicing Statistics" />
2008-10-27 15:29:13 +00:00
<field name= "amount_invoiced" />
</group>
2011-11-16 14:59:58 +00:00
<separator colspan= "4" />
<group col= "9" colspan= "8" >
<field name= "state" readonly= "1" widget= "statusbar"
statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>
<button name= "set_cancel" string= "Cancel" type= "object" states= "open,pending" icon= "gtk-cancel" />
<button name= "set_open" string= "Reactivate Account" type= "object" states= "pending,cancelled,close,draft" icon= "gtk-ok" />
<button name= "set_pending" string= "Pending" type= "object" states= "open" icon= "gtk-media-pause" />
<button name= "set_close" string= "Close" type= "object" states= "open,pending" icon= "terp-dialog-close" />
</group>
</group>
2008-06-29 08:26:07 +00:00
</field>
</record>
2010-06-12 17:49:33 +00:00
2008-07-01 15:58:58 +00:00
<record id= "hr_timesheet_line_form" model= "ir.ui.view" >
<field name= "name" > hr.analytic.timesheet.form</field>
<field name= "model" > hr.analytic.timesheet</field>
<field name= "type" > form</field>
<field name= "inherit_id" ref= "hr_timesheet.hr_timesheet_line_form" />
<field name= "arch" type= "xml" >
2010-09-17 13:38:24 +00:00
<xpath expr= '//separator[@string="Invoicing"]' position= 'after' >
2010-04-16 09:16:25 +00:00
<field name= "to_invoice" />
2008-07-01 15:58:58 +00:00
<field name= "invoice_id" />
2010-09-17 13:38:24 +00:00
</xpath>
2008-06-29 08:26:07 +00:00
</field>
</record>
2008-09-03 06:56:35 +00:00
2008-07-01 15:58:58 +00:00
<record id= "hr_timesheet_line_form2" model= "ir.ui.view" >
<field name= "name" > hr.analytic.timesheet.form2</field>
<field name= "model" > hr.analytic.timesheet</field>
<field name= "type" > form</field>
<field name= "inherit_id" ref= "hr_timesheet.hr_timesheet_line_form" />
<field name= "arch" type= "xml" >
<field name= "account_id" position= "replace" >
<field domain= "[('type','=','normal'),('state', '<>', 'close')]" name= "account_id" on_change= "on_change_account_id(account_id)" select= "1" />
2008-06-29 08:26:07 +00:00
</field>
</field>
</record>
2008-09-03 06:56:35 +00:00
2008-07-01 15:58:58 +00:00
<record id= "hr_timesheet_line_tree" model= "ir.ui.view" >
<field name= "name" > hr.analytic.timesheet.tree</field>
<field name= "model" > hr.analytic.timesheet</field>
<field name= "type" > tree</field>
<field name= "inherit_id" ref= "hr_timesheet.hr_timesheet_line_tree" />
<field name= "arch" type= "xml" >
<field name= "amount" position= "after" >
<field name= "to_invoice" />
2008-06-29 08:26:07 +00:00
</field>
</field>
</record>
2008-09-03 06:56:35 +00:00
2008-07-01 15:58:58 +00:00
<record id= "hr_timesheet_line_tree2" model= "ir.ui.view" >
<field name= "name" > hr.analytic.timesheet.tree2</field>
<field name= "model" > hr.analytic.timesheet</field>
<field name= "type" > tree</field>
<field name= "inherit_id" ref= "hr_timesheet.hr_timesheet_line_tree" />
<field name= "arch" type= "xml" >
2008-09-03 06:56:35 +00:00
2008-07-01 15:58:58 +00:00
<field name= "account_id" position= "replace" >
<field domain= "[('type','=','normal'),('state', '<>', 'close')]" name= "account_id" on_change= "on_change_account_id(account_id)" />
2008-06-29 08:26:07 +00:00
</field>
</field>
</record>
2008-09-03 06:56:35 +00:00
2008-07-01 11:15:14 +00:00
<!-- Inherits for account analytic lines -->
2010-10-04 22:56:29 +00:00
<record id= "view_account_analytic_line_search_inherit" model= "ir.ui.view" >
<field name= "name" > account.analytic.line.search.to_invoice</field>
<field name= "model" > account.analytic.line</field>
<field name= "type" > search</field>
<field name= "inherit_id" ref= "account.view_account_analytic_line_filter" />
<field name= "arch" type= "xml" >
2010-12-29 13:18:49 +00:00
<field name= "date" position= "before" >
2010-10-12 13:25:46 +00:00
<filter name= "to_invoice" string= "To Invoice" context= "{'to_invoice': 1}" domain= "[('invoice_id','=',False),('to_invoice','<>',False)]" icon= "terp-dolar" />
2010-12-29 13:18:49 +00:00
<separator orientation= "vertical" />
</field>
2010-10-04 22:56:29 +00:00
</field>
</record>
2008-07-01 15:58:58 +00:00
<record id= "view_account_analytic_line_tree_inherit" model= "ir.ui.view" >
<field name= "name" > account.analytic.line.tree.to_invoice</field>
<field name= "model" > account.analytic.line</field>
<field name= "type" > tree</field>
<field name= "inherit_id" ref= "account.view_account_analytic_line_tree" />
<field name= "arch" type= "xml" >
2010-10-04 22:56:29 +00:00
<field name= "account_id" position= "after" >
2008-07-01 15:58:58 +00:00
<field name= "to_invoice" />
2008-06-29 08:26:07 +00:00
</field>
</field>
</record>
2010-11-19 12:09:31 +00:00
<record id= "view_account_analytic_line_form_inherit" model= "ir.ui.view" >
2008-07-01 15:58:58 +00:00
<field name= "name" > account.analytic.line.form.to_invoice</field>
<field name= "model" > account.analytic.line</field>
<field name= "type" > form</field>
<field name= "inherit_id" ref= "account.view_account_analytic_line_form" />
<field name= "arch" type= "xml" >
<field name= "product_uom_id" position= "after" >
<field name= "to_invoice" />
2010-10-04 22:56:29 +00:00
<field name= "invoice_id" />
2008-06-29 08:26:07 +00:00
</field>
</field>
</record>
2008-09-03 06:56:35 +00:00
2008-07-01 11:15:14 +00:00
<!-- Menus -->
2008-07-01 15:58:58 +00:00
<record id= "action_hr_analytic_timesheet_open_tree" model= "ir.actions.act_window" >
2010-10-11 12:46:07 +00:00
<field name= "name" > Bill Tasks Works</field>
2008-07-01 15:58:58 +00:00
<field name= "res_model" > account.analytic.line</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2010-10-04 22:56:29 +00:00
<field name= "domain" > []</field>
<field name= "context" > {'search_default_to_invoice': 1}</field>
2011-11-16 14:59:58 +00:00
<field name= "search_view_id" ref= "account.view_account_analytic_line_filter" />
2010-12-14 06:22:11 +00:00
<field name= "help" > This list shows you every task you can invoice to the customer. Select the lines and click the Action button to generate the invoices automatically.</field>
2008-07-01 15:58:58 +00:00
</record>
2010-06-12 17:49:33 +00:00
<menuitem
action="action_hr_analytic_timesheet_open_tree"
id="menu_hr_analytic_timesheet_tree"
2010-09-06 11:56:41 +00:00
parent="account.menu_finance_periodical_processing_billing"
sequence="1"/>
2008-09-03 06:56:35 +00:00
2010-10-14 04:39:13 +00:00
<record id= "view_hr_timesheet_invoice_factor_search" model= "ir.ui.view" >
<field name= "name" > hr_timesheet_invoice.factor.search</field>
<field name= "model" > hr_timesheet_invoice.factor</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Type of invoicing" >
<group >
<field name= "name" />
</group>
</search>
</field>
</record>
2008-07-01 15:58:58 +00:00
<record id= "view_hr_timesheet_invoice_factor_form" model= "ir.ui.view" >
<field name= "name" > hr_timesheet_invoice.factor.form</field>
<field name= "model" > hr_timesheet_invoice.factor</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Type of invoicing" >
2010-10-14 04:39:13 +00:00
<field colspan= "1" name= "name" />
2010-04-16 09:16:25 +00:00
<field colspan= "1" name= "customer_name" />
2008-07-01 15:58:58 +00:00
<field colspan= "2" name= "factor" />
2008-06-29 08:26:07 +00:00
</form>
</field>
</record>
2008-07-01 15:58:58 +00:00
<record id= "view_hr_timesheet_invoice_factor_tree" model= "ir.ui.view" >
<field name= "name" > hr_timesheet_invoice.factor.tree</field>
<field name= "model" > hr_timesheet_invoice.factor</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Types of invoicing" >
<field name= "name" />
<field name= "customer_name" />
<field name= "factor" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2008-07-01 15:58:58 +00:00
<record id= "action_hr_timesheet_invoice_factor_form" model= "ir.actions.act_window" >
<field name= "name" > Types of Invoicing</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > hr_timesheet_invoice.factor</field>
<field name= "view_type" > form</field>
<field name= "view_id" ref= "view_hr_timesheet_invoice_factor_tree" />
2010-10-14 04:39:13 +00:00
<field name= "search_view_id" ref= "view_hr_timesheet_invoice_factor_search" />
2010-12-14 06:22:11 +00:00
<field name= "help" > OpenERP allows you to create default invoicing types. You might have to regularly assign discounts because of a specific contract or agreement with a customer. From this menu, you can create additional types of invoicing to speed up your invoicing.</field>
2008-06-29 08:26:07 +00:00
</record>
2010-06-12 17:49:33 +00:00
<menuitem
action="action_hr_timesheet_invoice_factor_form"
id="hr_timesheet_invoice_factor_view"
2010-11-19 06:46:03 +00:00
parent="account.menu_configuration_misc" sequence="25"/>
2008-09-03 06:56:35 +00:00
2008-06-29 08:26:07 +00:00
</data>
2008-09-10 17:56:00 +00:00
</openerp>