|
@@ -24,14 +24,41 @@
|
|
|
<field name="target">current</field>
|
|
|
<field name="domain">[("customer", "=", True)]</field>
|
|
|
</record>
|
|
|
-
|
|
|
+ <!-- Prodcut Product Type Product-->
|
|
|
<record id="eiru_dashboard_products_action" model="ir.actions.act_window">
|
|
|
<field name="name">Mis Productos</field>
|
|
|
- <field name="res_model">product.template</field>
|
|
|
+ <field name="res_model">product.product</field>
|
|
|
+ <field name="view_type">form</field>
|
|
|
+ <field name="view_mode">tree,form</field>
|
|
|
+ <field name="target">current</field>
|
|
|
+ <field name="domain">[("sale_ok", "=", True), ("active", "=", True),("type", "=", "product")]</field>
|
|
|
+ </record>
|
|
|
+ <!-- Prodcut Product Servicio servicio-->
|
|
|
+ <record id="eiru_dashboard_products_service_action" model="ir.actions.act_window">
|
|
|
+ <field name="name">Mis Productos</field>
|
|
|
+ <field name="res_model">product.product</field>
|
|
|
+ <field name="view_type">form</field>
|
|
|
+ <field name="view_mode">tree,form</field>
|
|
|
+ <field name="target">current</field>
|
|
|
+ <field name="domain">[("sale_ok", "=", True), ("active", "=", True),("type", "=", "service")]</field>
|
|
|
+ </record>
|
|
|
+ <!-- Pagos de cliente fijados-->
|
|
|
+ <record id="eiru_dashboard_voucher_posted_action" model="ir.actions.act_window">
|
|
|
+ <field name="name">Pagos de cliente</field>
|
|
|
+ <field name="res_model">account.voucher</field>
|
|
|
+ <field name="view_type">form</field>
|
|
|
+ <field name="view_mode">tree,form</field>
|
|
|
+ <field name="target">current</field>
|
|
|
+ <field name="domain">[('type','=','receipt'),('state', '=', 'posted')]</field>
|
|
|
+ </record>
|
|
|
+ <!-- Pagos de cliente Borrador -->
|
|
|
+ <record id="eiru_dashboard_voucher_draft_action" model="ir.actions.act_window">
|
|
|
+ <field name="name">Pagos de cliente</field>
|
|
|
+ <field name="res_model">account.voucher</field>
|
|
|
<field name="view_type">form</field>
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
<field name="target">current</field>
|
|
|
- <field name="domain">[("sale_ok", "=", True), ("active", "=", True)]</field>
|
|
|
+ <field name="domain">[('type','=','receipt'),('state', '=', 'draft')]</field>
|
|
|
</record>
|
|
|
|
|
|
<record id="action_dashboard_configuration" model="ir.actions.client">
|