|
@ -2,13 +2,12 @@ |
|
|
<openerp> |
|
|
<openerp> |
|
|
<data> |
|
|
<data> |
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------- |
|
|
|
|
|
# Hours block search form |
|
|
|
|
|
#--------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
Hours block search form |
|
|
|
|
|
--> |
|
|
<record id="view_account_invoice_filter" model="ir.ui.view"> |
|
|
<record id="view_account_invoice_filter" model="ir.ui.view"> |
|
|
<field name="name">account.hours.block.select</field> |
|
|
<field name="name">account.hours.block.select</field> |
|
|
<field name="model">account.hours.block</field> |
|
|
<field name="model">account.hours.block</field> |
|
|
<field name="type">search</field> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<search string="Search Invoice"> |
|
|
<search string="Search Invoice"> |
|
|
<group col="7" colspan="4"> |
|
|
<group col="7" colspan="4"> |
|
@ -34,13 +33,12 @@ |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------ |
|
|
|
|
|
# Hours Block View |
|
|
|
|
|
#------------------------------------------------------------------------ |
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
Hours Block View |
|
|
|
|
|
--> |
|
|
<record id="hours_block_invoice_form" model="ir.ui.view"> |
|
|
<record id="hours_block_invoice_form" model="ir.ui.view"> |
|
|
<field name="name">account.hours.block.form</field> |
|
|
<field name="name">account.hours.block.form</field> |
|
|
<field name="model">account.hours.block</field> |
|
|
<field name="model">account.hours.block</field> |
|
|
<field name="type">form</field> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<form string="Invoice"> |
|
|
<form string="Invoice"> |
|
|
<field name="type" /> |
|
|
<field name="type" /> |
|
@ -76,7 +74,6 @@ |
|
|
<record model="ir.ui.view" id="invoice_tree_hour_block"> |
|
|
<record model="ir.ui.view" id="invoice_tree_hour_block"> |
|
|
<field name="name">account.hours.block.tree</field> |
|
|
<field name="name">account.hours.block.tree</field> |
|
|
<field name="model">account.hours.block</field> |
|
|
<field name="model">account.hours.block</field> |
|
|
<field name="type">tree</field> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<tree colors="blue:state in ('draft');black:state in ('proforma','proforma2','open');gray:state in ('cancel')" string="Invoice"> |
|
|
<tree colors="blue:state in ('draft');black:state in ('proforma','proforma2','open');gray:state in ('cancel')" string="Invoice"> |
|
|
<field name="date_invoice"/> |
|
|
<field name="date_invoice"/> |
|
@ -102,19 +99,18 @@ |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
# Add related act_window from partner and Hours Block |
|
|
|
|
|
#--------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
Add related act_window from partner and Hours Block |
|
|
|
|
|
--> |
|
|
<act_window name="All blocks hours" |
|
|
<act_window name="All blocks hours" |
|
|
domain="[('partner_id', '=', active_id)]" |
|
|
domain="[('partner_id', '=', active_id)]" |
|
|
res_model="account.hours.block" |
|
|
res_model="account.hours.block" |
|
|
src_model="res.partner" |
|
|
src_model="res.partner" |
|
|
id="act_block_hour_from_partner"/> |
|
|
id="act_block_hour_from_partner"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
# Link to invoice on hours block view |
|
|
|
|
|
#--------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
Link to invoice on hours block view |
|
|
|
|
|
--> |
|
|
<act_window |
|
|
<act_window |
|
|
domain="[('account_hours_block_ids', '=', active_id)]" |
|
|
domain="[('account_hours_block_ids', '=', active_id)]" |
|
|
id="act_invoice_from_hours_block" |
|
|
id="act_invoice_from_hours_block" |
|
@ -124,9 +120,9 @@ |
|
|
view_mode="tree,form" |
|
|
view_mode="tree,form" |
|
|
view_type="form"/> |
|
|
view_type="form"/> |
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
# Link to analytic lines on hours block view |
|
|
|
|
|
#--------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
Link to analytic lines on hours block view |
|
|
|
|
|
--> |
|
|
<act_window |
|
|
<act_window |
|
|
domain="[('invoice_id.account_hours_block_ids', '=', active_id)]" |
|
|
domain="[('invoice_id.account_hours_block_ids', '=', active_id)]" |
|
|
id="act_analytic_lines_from_hours_block" |
|
|
id="act_analytic_lines_from_hours_block" |
|
@ -136,9 +132,9 @@ |
|
|
view_mode="tree,form" |
|
|
view_mode="tree,form" |
|
|
view_type="form"/> |
|
|
view_type="form"/> |
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
# Link to hours block on invoice view |
|
|
|
|
|
#--------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
Link to hours block on invoice view |
|
|
|
|
|
--> |
|
|
<act_window |
|
|
<act_window |
|
|
domain="[('invoice_id', '=', active_id)]" |
|
|
domain="[('invoice_id', '=', active_id)]" |
|
|
id="act_hours_block_from_invoice" |
|
|
id="act_hours_block_from_invoice" |
|
@ -148,6 +144,5 @@ |
|
|
view_mode="tree,form,calendar,graph" |
|
|
view_mode="tree,form,calendar,graph" |
|
|
view_type="form"/> |
|
|
view_type="form"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</data> |
|
|
</data> |
|
|
</openerp> |
|
|
</openerp> |