@@ -1,7 +1,7 @@
function expired_account_counters_now (widget) {
"use strict";
- var model= openerp;
+ var model = openerp;
widget.ExpiredAccountCountersNowWidget = widget.Base.extend({
template: 'ExpiredAccountCountersNow',
@@ -71,10 +71,11 @@ function invoice_today_counters (widget) {
name:"Facturas realizadas hoy",
type: 'ir.actions.act_window',
res_model: "account.invoice",
- views: [[false, 'list']],
+ views: [[false, 'list'],[false,'form']],
target: 'new',
domain: [['type', '=', 'out_invoice'], ['state', 'in', ['open','paid']], ['date_invoice', '=', hoy]],
context: {},
+ flags: {'form': {'action_buttons': false, 'options': {'mode': 'view'}}},
});
}
@@ -74,10 +74,11 @@ function missing_product (widget) {
name:"Listado de productos faltan-tes",
res_model: "product.product",
domain: [['type', '=', 'product'],['qty_available','<=',0]],
@@ -194,10 +194,11 @@ function monthly_expenses(widget) {
name:"Listado de gastos del mes",
res_model: "account.voucher",
domain: [['type', '=', 'payment'],['state', '=', 'posted'],['date', '>=',desde],['date','<',hasta],['reference','in',number]],
@@ -191,10 +191,11 @@ function monthly_purchases(widget) {
name:"Listado de compras del mes",
@@ -166,10 +166,11 @@ function payments_today_counters (widget) {
name:"Listado de pagos realizados hoy",
+ views: [[false, 'list'],[false, 'form']],
domain: [['state', '=', 'posted'], ['type', '=', 'payment'], ['date', '=', hoy]],
@@ -178,7 +178,7 @@ function ranking_sales_partner (widget) {
// }
// });
},
-
+ // llamar a la lista
showCustomers: function (e) {
var self = this;
var hoy =moment().format('YYYY-MM-DD');
@@ -189,10 +189,11 @@ function ranking_sales_partner (widget) {
name:"Listado de clinete con más compras",
res_model: "res.partner",
+ views: [[false,'list'],[false,'form']],
domain: [['id', 'in', partner_id]],
@@ -194,10 +194,11 @@ function ranking_sales_product (widget) {
name:"Listado de productos más vendidos",
domain: [['id', 'in', product_id],['type','=', 'product']],
@@ -166,10 +166,11 @@ function voucher_today_counters (widget) {
name:"Listado de cobros realizado en el día",
domain: [['state', '=', 'posted'], ['type', '=', 'receipt'], ['date', '=', hoy]],
@@ -3,10 +3,10 @@
<data>
<menuitem id="eiru_dashboard_menu" name="Inicio" sequence="0"/>
<!-- Principal -->
- <menuitem id="eiru_dashboard_main" name="Principal" parent="eiru_dashboard_menu" />
- <menuitem id="eiru_dashboard_dashboard" name="Mi tablero" parent="eiru_dashboard_main" action="eiru_dashboard_action" sequence="1"/>
- <menuitem id="eiru_dashboard_sale" name="Nueva Venta" parent="eiru_dashboard_main" action="eiru_dashboard_sale_action" sequence="2"/>
- <menuitem id="eiru_dashboard_reports" name="Reportes" parent="eiru_dashboard_main" action="eiru_dashboard_report_action" sequence="3"/>
+ <menuitem id="eiru_dashboard_main" name="Principal" parent="eiru_dashboard_menu" sequence="1"/>
+ <menuitem id="eiru_dashboard_dashboard" name="Mi tablero" parent="eiru_dashboard_main" action="eiru_dashboard_action" sequence="2"/>
+ <menuitem id="eiru_dashboard_sale" name="Nueva Venta" parent="eiru_dashboard_main" action="eiru_dashboard_sale_action" sequence="3"/>
+ <menuitem id="eiru_dashboard_reports" name="Reportes" parent="eiru_dashboard_main" action="eiru_dashboard_report_action" sequence="4"/>
<!-- Pgaos de Cliente -->
<menuitem id="eiru_dashboard_pagos_cliente" name="Pagos" parent="eiru_dashboard_menu" sequence="10"/>
<menuitem id="eiru_dashboard_voucher_posted" name="Pagos de Clientes" parent="eiru_dashboard_pagos_cliente" action="eiru_dashboard_voucher_posted_action" sequence="11"/>
@@ -7,11 +7,11 @@
<field name="arch" type="xml">
<tree string="Productos">
<field name="name"/>
- <field name="attribute_value_ids" widget="many2many_tags"/>
+ <!-- <field name="attribute_value_ids" widget="many2many_tags"/>
<field name="lst_price"/>
<field name="qty_available"/>
<field name="categ_id"/>
- <field name="ean13"/>
+ <field name="ean13"/> -->
<!-- <field name="list_price"/> -->
<!-- <field name="type"/> -->
<!-- <field name="state"/> -->