|
@@ -66,15 +66,26 @@
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
</record>
|
|
|
|
|
|
|
|
+ <record id="action_open_workshop_invoice" model="ir.actions.act_window">
|
|
|
|
+ <field name="name">Facturas</field>
|
|
|
|
+ <field name="res_model">account.invoice</field>
|
|
|
|
+ <field name="domain">[('work_invoice_id','=',active_id)]</field>
|
|
|
|
+ <field name="search_view_id" ref="account.view_account_invoice_filter" />
|
|
|
|
+ </record>
|
|
|
|
|
|
- <act_window
|
|
|
|
- id="action_open_workshop_invoice"
|
|
|
|
- name="Facturas"
|
|
|
|
- res_model="account.invoice"
|
|
|
|
- view_type="form"
|
|
|
|
- view_mode="tree,form"
|
|
|
|
- domain="[('work_invoice_id', '=', active_id)]"/>
|
|
|
|
|
|
+ <record id="action_workshop_invoice_tree" model="ir.actions.act_window.view">
|
|
|
|
+ <field name="sequence" eval="1"/>
|
|
|
|
+ <field name="view_mode">tree</field>
|
|
|
|
+ <field name="view_id" ref="account.invoice_tree"/>
|
|
|
|
+ <field name="act_window_id" ref="action_open_workshop_invoice"/>
|
|
|
|
+ </record>
|
|
|
|
|
|
|
|
+ <record id="action_workshop_show_invoice_form" model="ir.actions.act_window.view">
|
|
|
|
+ <field name="sequence" eval="2"/>
|
|
|
|
+ <field name="view_mode">form</field>
|
|
|
|
+ <field name="view_id" ref="account.invoice_form"/>
|
|
|
|
+ <field name="act_window_id" ref="action_open_workshop_invoice"/>
|
|
|
|
+ </record>
|
|
|
|
|
|
<record id="view_invoice_workshop_form" model="ir.ui.view">
|
|
<record id="view_invoice_workshop_form" model="ir.ui.view">
|
|
<field name="name">car.brand.form</field>
|
|
<field name="name">car.brand.form</field>
|