Select the period and the journal you want to fill.
diff --git a/addons/account/static/src/css/account_move_line_quickadd.css b/addons/account/static/src/css/account_move_line_quickadd.css
new file mode 100644
index 00000000000..6d7690c4490
--- /dev/null
+++ b/addons/account/static/src/css/account_move_line_quickadd.css
@@ -0,0 +1,4 @@
+.openerp .oe_vm_switch_tree_account_move_line_quickadd:after {
+ padding: 2px;
+ content: "i";
+}
diff --git a/addons/anonymization/anonymization.py b/addons/anonymization/anonymization.py
index a455bc835ce..c7f9ab016c4 100644
--- a/addons/anonymization/anonymization.py
+++ b/addons/anonymization/anonymization.py
@@ -543,7 +543,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
fixes = group(fixes, ('model_name', 'field_name'))
for line in data:
- table_name = self.pool.get(line['model_id'])._table
+ table_name = self.pool.get(line['model_id'])._table if self.pool.get(line['model_id']) else None
# check if custom sql exists:
key = (line['model_id'], line['field_id'])
diff --git a/addons/l10n_ar/static/src/img/icon.png b/addons/l10n_ar/static/src/img/icon.png
new file mode 100644
index 00000000000..e7a5bd66b5a
Binary files /dev/null and b/addons/l10n_ar/static/src/img/icon.png differ
diff --git a/addons/l10n_cl/static/src/img/icon.png b/addons/l10n_cl/static/src/img/icon.png
new file mode 100644
index 00000000000..4e28250cc7e
Binary files /dev/null and b/addons/l10n_cl/static/src/img/icon.png differ
diff --git a/addons/l10n_it/data/account.tax.template.csv b/addons/l10n_it/data/account.tax.template.csv
index 4295ff92b26..e003afd1a23 100644
--- a/addons/l10n_it/data/account.tax.template.csv
+++ b/addons/l10n_it/data/account.tax.template.csv
@@ -68,3 +68,4 @@ id,description,chart_template_id:id,name,sequence,amount,parent_id:id,child_depe
21I5,21I5,l10n_it_chart_template_generic,IVA al 21% detraibile al 50%,,0.21,,True,percent,,,purchase,template_impcode_pagata_21det50,,template_impcode_pagata_21det50,,,,False,-1,-1
21I5b,21I5b,l10n_it_chart_template_generic,IVA al 21% detraibile al 50% (I),1,0.5,21I5,False,percent,,,purchase,,,,,,,False,,
21I5a,21I5a,l10n_it_chart_template_generic,IVA al 21% detraibile al 50% (D),2,0,21I5,False,balance,1601,1601,purchase,,template_ivacode_pagata_21det50,,template_ivacode_pagata_21det50,,,False,,
+
diff --git a/addons/l10n_pa/__init__.py b/addons/l10n_pa/__init__.py
new file mode 100644
index 00000000000..92da5dbf966
--- /dev/null
+++ b/addons/l10n_pa/__init__.py
@@ -0,0 +1,32 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (c) 2011 Cubic ERP - Teradata SAC. (http://cubicerp.com).
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+##############################################################################
+
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_pa/__openerp__.py b/addons/l10n_pa/__openerp__.py
new file mode 100644
index 00000000000..e63296f89e6
--- /dev/null
+++ b/addons/l10n_pa/__openerp__.py
@@ -0,0 +1,54 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2011 Cubic ERP - Teradata SAC ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+{
+ "name": "Panama Localization Chart Account",
+ "version": "1.0",
+ "description": """
+Panamenian accounting chart and tax localization.
+
+Plan contable panameño e impuestos de acuerdo a disposiciones vigentes
+
+Con la Colaboración de
+- AHMNET CORP http://www.ahmnet.com
+
+ """,
+ "author": "Cubic ERP",
+ "website": "http://cubicERP.com",
+ "category": "Localization/Account Charts",
+ "depends": [
+ "account_chart",
+ ],
+ "data":[
+ "account_tax_code.xml",
+ "l10n_pa_chart.xml",
+ "account_tax.xml",
+ "l10n_pa_wizard.xml",
+ ],
+ "demo_xml": [
+ ],
+ "update_xml": [
+ ],
+ "active": False,
+ "installable": True,
+ "certificate" : "",
+ 'images': ['images/config_chart_l10n_cl.jpeg','images/l10n_cl_chart.jpeg'],
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_pa/account_tax.xml b/addons/l10n_pa/account_tax.xml
new file mode 100644
index 00000000000..914ea54a348
--- /dev/null
+++ b/addons/l10n_pa/account_tax.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+ ITBMS 7% Venta
+ 0.070000
+ percent
+ sale
+
+
+
+
+
+
+
+
+
+
+ ITBMS 7% Compra
+ 0.070000
+ percent
+ purchase
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/l10n_pa/account_tax_code.xml b/addons/l10n_pa/account_tax_code.xml
new file mode 100644
index 00000000000..05bf4cf14bf
--- /dev/null
+++ b/addons/l10n_pa/account_tax_code.xml
@@ -0,0 +1,94 @@
+
+
+
+
+
+ Panamá Impuestos
+
+
+ Base Imponible
+
+
+
+ Base Imponible - Ventas
+
+
+
+ Ventas Gravadas con ITBMS
+
+
+
+ Ventas NO Gravadas (Exoneradas)
+
+
+
+ Ventas Gravadas Fuera de Ámbito
+
+
+
+ Base Imponible - Compras
+
+
+
+ Compras Gravadas con ITBMS
+
+
+
+ Compras NO Gravadas (Exoneradas)
+
+
+
+ Compras Gravadas Fuera de Ámbito
+
+
+
+
+ Impuesto General a las Ventas (ITBMS) Total a Pagar
+
+
+
+ Impuesto Pagado
+
+
+
+ Impuesto Pagado ITBMS
+
+ -1
+
+
+ Impuesto Pagado de Exonerados al ITBMS
+
+ -1
+
+
+ Impuesto Pagado Fuera de Ámbito
+
+ -1
+
+
+ Impuesto Cobrado
+
+
+
+ Impuesto Cobrado ITBMS
+
+
+
+ Impuesto Cobrado de Exonerados al ITBMS
+
+
+
+ Impuesto Cobrado Fuera de Ámbito
+
+
+
+
+ Impuestos Directos a Pagar
+
+
+
+ Impuesto sobre la Renta a Pagar
+
+
+
+
diff --git a/addons/l10n_pa/l10n_pa_chart.xml b/addons/l10n_pa/l10n_pa_chart.xml
new file mode 100644
index 00000000000..3f9c1b316ca
--- /dev/null
+++ b/addons/l10n_pa/l10n_pa_chart.xml
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+ detailBG_ACC_20Inversionesasset
+
+ unreconciledBG_ACC_50Otras Cuentas por Cobrarasset
+ balanceBG_ACC_60Inventariosasset
+
+
+
+ detailBG_ACN_60Otros Activos No Corrientesasset
+
+ unreconciledBG_PAC_10Obligaciones Bancariasliability
+
+ unreconciledBG_PAC_35Salarios por Pagarliability
+ unreconciledBG_PAC_40Gastos e impuestos acumulados por pagarliability
+ unreconciledBG_PAC_45Otras Cuentas por Pagarliability
+
+ unreconciledBG_PAN_10Prestamos por Pagarliability
+ unreconciledBG_PAN_20Otros Cuentas por Pagar No Corrientesliability
+ unreconciledBG_PAN_40Otras Provisiones No Corrientesliability
+
+ balanceBG_PTN_10Patrimonio Netoliability
+
+
+ noneEGP_FU_030Costo de Ventasexpense
+ noneEGP_FU_040Gastos de Administraciónexpense
+ unreconciledEGP_FU_060Ingresos Financierosincome
+ noneEGP_FU_070Gastos Financierosexpense
+ noneEGP_FU_080Otros Ingresosincome
+ noneEGP_FU_090Otros Gastosexpense
+ noneEGP_FU_160Ganancia (Pérdida)income
+
+ noneEGP_NA_010Comprasnone
+
+ noneORDCuentas de Ordennone
+
+ noneNCLASIFICADOCuentas No Clasificadasnone
+
+
+
+
+ Panamá
+ pcge
+
+ view
+
+
+ Balance General
+ .1.BG
+
+
+ view
+
+
+ ACTIVOS1view
+ Caja y Bancos11view
+ Caja y Bancos - Caja111view
+ Caja y Bancos - Caja / efectivo PAB111.001liquidity
+ Caja y Bancos - Moneda Extranjera112view
+ Caja y Bancos - Caja / efectivo USD112.001liquidity
+ Caja y Bancos - Fondos fijos113view
+ Caja y Bancos - Fondos fijos / caja menuda 01 PAB113.001liquidity
+ Caja y Bancos - Bancos114view
+ Caja y Bancos.../ BCO. CTA CTE PAB114.001liquidity
+ Caja y Bancos - Valores a Depositar 115other
+ Caja y Bancos - Recaudaciones a Depositar 116other
+ Cuentas por Cobrar12view
+ Cuentas por Cobrar / Deudores por Ventas121receivable1
+ Cuentas por Cobrar / Deudores Morosos122receivable1
+ Cuentas por Cobrar / Deudores en Gestión Judicial123receivable
+ Cuentas por Cobrar / Deudores Varios124receivable
+ Cuentas por Cobrar / (-) Previsión para Incobrables125receivable1
+ Otras Cuentas por Cobrar13view
+ Otras Cuentas por Cobrar / Préstamos otorgados131receivable
+ Otras Cuentas por Cobrar / Anticipos a Proveedores132receivable
+ Otras Cuentas por Cobrar / Anticipo de Impuestos133receivable
+ Otras Cuentas por Cobrar / Anticipo al Personal134receivable
+ Otras Cuentas por Cobrar / Alquileres Pagados por Adelantado135receivable
+ Otras Cuentas por Cobrar / Intereses Pagados por Adelantado136receivable
+ Otras Cuentas por Cobrar / Accionistas137receivable
+ Otras Cuentas por Cobrar / (-) Previsión para Descuentos138receivable
+ Otras Cuentas por Cobrar / (-) Intereses (+) a Devengar139receivable
+ Inversiones Financieras14view
+ Inversiones / Acciones Transitorias141other
+ Inversiones / Acciones Permanentes142other
+ Inversiones / Títulos Públicos143other
+ Inversiones / (-) Previsión para Devalorización de Acciones144other
+ Inventarios15view
+ Inventarios - Mercancias151view
+ Inventarios - Mercancias / Categoria de productos 01151.01other
+ Inventarios - Mercancias en Tránsito152other
+ Materias primas153other
+ Productos en Curso de Elaboración154other
+ Productos Elaborados155other
+ Materiales Varios 156other
+ (-) Previsión para Desvalorización de Inventarios157other
+ Activo Fijo16view
+ Activo Fijo / Inmuebles161other
+ Activo Fijo / Maquinaria162other
+ Activo Fijo / Equipos163other
+ Activo Fijo / Material Rodante Motorizado164other
+ Activo Fijo / (-) Depreciación Acumulada165other
+ Activo Intangible17view
+ Activo Intangible / Derecho de Llaves171other
+ Activo Intangible / Concesiones y Franquicias172other
+ Activo Intangible / Marcas y Patentes de Invención173other
+ Activo Intangible / (-) Amortización Acumulada174other
+ PASIVOS2view
+ Cuentas por Pagar21view
+ Cuentas por Pagar / Proveedores211payable1
+ Cuentas por Pagar / Anticipos de Clientes212payable1
+ Cuentas por Pagar / (-) Intereses a Devengar por Compras al Crédito213payable1
+ Pasivo Circulante22view
+ Pasivo Circulante / Adelantos en Cuenta Corriente221payable
+ Pasivo Circulante / Prestamos222payable
+ Pasivo Circulante / Obligaciones a Pagar223payable
+ Pasivo Circulante / Intereses a Pagar224payable
+ Pasivo Circulante / Debentures Emitidos225payable
+ Impuestos por Pagar23view
+ Impuestos por Pagar / ITBMS a Pagar231other
+ Impuestos por Pagar / Impuesto sobre la Renta a Pagar232other
+ Salarios por Pagar24view
+ Salarios por Pagar / Sueldos a Pagar241payable
+ Salarios por Pagar / Cargas Sociales a Pagar242payable
+ Salarios por Pagar / Provisión para Sueldo Anual Complementario243payable
+ Salarios por Pagar / Retenciones a Depositar244payable
+ Otras Cuentas por Pagar25view
+ Otras Cuentas por Pagar / Acreedores Varios251payable
+ Otras Cuentas por Pagar / Dividendos a Pagar252payable
+ Otras Cuentas por Pagar / Cobros por Adelantado253payable
+ Otras Cuentas por Pagar / Honorarios Directores y Síndicos a Pagar254payable
+ Provisiones26view
+ Provisiones / Previsión Indemnización por Despidos261payable
+ Provisiones / Previsión para juicios Pendientes262payable
+ Provisiones / Previsión para Garantías por Service263payable
+ PATRIMONIO3view
+ Capital31view
+ Capital / Capital Propio311other
+ Capital / Acciones en Circulación312other
+ Capital / Dividendos a Distribuir en Acciones313other
+ Capital / (-) Descuento de Emisión de Acciones314other
+ Aportes No Capitalizados32view
+ Aportes No Capitalizados / Primas de Emsión321other
+ Aportes No Capitalizados / Aportes Irrevocables Futura Suscripción de Acciones322other
+ Ajustes al Patrimonio33view
+ Ajustes al Patrimonio / Revaluo Técnico de Activo Fijo331other
+ Futuras Eventualidades34view
+ Reserva Legal341other
+ Reserva Estatutaria342other
+ Reserva Facultativa343other
+ Reserva para Renovación de Activo Fijo344other
+ Resultados No Asignados35view
+ Resultados Acumulados351other
+ Resultados Acumulados del Ejercicio Anterior352other
+ Utilidades y Pérdidas del Ejercicio353other
+ Resultado del Ejercicio354other
+
+
+ Estado de Resultado
+ .2.GP
+
+
+ view
+
+
+ INGRESOS4view
+ Ingresos Operativos41view
+ Ventas411view
+ Ventas - Categoria de productos 01411.01other
+ Intereses gananados, obtenidos, percibidos412other
+ Alquileres gananados, obtenidos, percibidos413other
+ Comisiones gananados, obtenidos, percibidos414other
+ Descuentos gananados, obtenidos, percibidos415other
+ Interese sobre Inversiones416other
+ Honorarios gananados, obtenidos, percibidos417other
+ Ganancia Venta de Acciones418other
+ Ingresos No Operativos42view
+ Recupero de Rezagos421other
+ Recupero de Deudores Incobrables422other
+ Ganancia Venta de Activo Fijo423other
+ Donaciones obtenidas, ganandas, percibidas424other
+ Ganancia Venta Inversiones Permanentes425other
+ GASTOS5view
+ Gastos Operativos51view
+ Gastos en Depreciación de Activo Fijo512other
+ Gastos en Amortización513other
+ Gastos en Salarios514other
+ Gastos en Cargas Sociales515other
+ Gastos en Impuestos516other
+ Gastos Bancarios517other
+ Gastos en Servicios Públicos518other
+ Gastos de Publicidad y Propaganda519other
+ Gastos No Operativos52view
+ Gastos en Siniestros521other
+ Donaciones Cedidas, Otorgadas522other
+ Pérdida Venta Activo Fijo523other
+
+
+ COSTOS6view
+
+ Costo de Venta61view
+ Costo de Venta - Categoria de productos 0161.01other
+
+ Compras62view
+ Compras - Categoria de productos 0162.01other
+ Costos de Producción63other
+ Gastos de Administración64other
+ Gastos de Comercialización65other
+
+
+ Cuentas de Orden
+ .4.CO
+
+
+ view
+
+
+ CUENTAS DE ORDEN DEUDORAS71view
+ Mercaderias Recibidas en Consignación711other
+ Depósito de Valores Recibos en Garantía712other
+ Garantias Otorgadas713other
+ Documentos Descontados714other
+ Documentos Endosados715other
+ CUENTAS DE ORDEN ACREEDORAS72view
+ Comitente por Mercaderias Recibidas en Consignación721other
+ Acreedor por Garantías Otorgadas722other
+ Acreedor por Documentos Descontados723other
+
+
+ Panamá - Plan de Cuentas
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/l10n_pa/l10n_pa_wizard.xml b/addons/l10n_pa/l10n_pa_wizard.xml
new file mode 100644
index 00000000000..4de61247b90
--- /dev/null
+++ b/addons/l10n_pa/l10n_pa_wizard.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ open
+
+
+
+
diff --git a/addons/l10n_pa/static/src/img/icon.png b/addons/l10n_pa/static/src/img/icon.png
new file mode 100644
index 00000000000..4388b0e59e2
Binary files /dev/null and b/addons/l10n_pa/static/src/img/icon.png differ
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py
index 37f799325b3..7663524c904 100644
--- a/addons/mail/mail_thread.py
+++ b/addons/mail/mail_thread.py
@@ -581,8 +581,8 @@ class mail_thread(osv.AbstractModel):
(msg['message_id'], model)
# disabled subscriptions during message_new/update to avoid having the system user running the
- # email gateway become a follower of all inbound messages
- nosub_ctx = dict(context, mail_nosubscribe=True)
+ # email gateway become a follower of all inbound messages
+ nosub_ctx = dict(context, mail_create_nosubscribe=True)
if thread_id and hasattr(model_pool, 'message_update'):
model_pool.message_update(cr, user_id, [thread_id], msg, context=nosub_ctx)
else:
diff --git a/addons/portal_anonymous/security/ir.model.access.csv b/addons/portal_anonymous/security/ir.model.access.csv
index 24c29200230..a26b600288d 100644
--- a/addons/portal_anonymous/security/ir.model.access.csv
+++ b/addons/portal_anonymous/security/ir.model.access.csv
@@ -1,3 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-access_mail_message_portal,mail.message.portal,mail.model_mail_message,portal.group_anonymous,1,0,1,0
+access_mail_message_portal,mail.message.portal,mail.model_mail_message,portal.group_anonymous,1,0,0,0
access_res_partner,res.partner,base.model_res_partner,portal.group_anonymous,1,0,0,0
diff --git a/addons/portal_crm/contact.py b/addons/portal_crm/contact.py
index fa1bb240a7b..a49d53361a0 100644
--- a/addons/portal_crm/contact.py
+++ b/addons/portal_crm/contact.py
@@ -105,7 +105,7 @@ class crm_contact_us(osv.TransientModel):
leads to a message_subscribe_user, that triggers access right issues.
"""
empty_values = dict((k, False) if k != 'name' else (k, '') for k, v in values.iteritems())
- return super(crm_contact_us, self).create(cr, uid, empty_values, {'mail_create_nosubscribe': True})
+ return super(crm_contact_us, self).create(cr, SUPERUSER_ID, empty_values, {'mail_create_nosubscribe': True})
def submit(self, cr, uid, ids, context=None):
""" When the form is submitted, redirect the user to a "Thanks" message """