openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #04648
[Merge] lp:~akretion-team/account-financial-tools/account-financial-tools-check-deposit into lp:account-financial-tools
Sébastien BEAU - http://www.akretion.com has proposed merging lp:~akretion-team/account-financial-tools/account-financial-tools-check-deposit into lp:account-financial-tools.
Requested reviews:
Nicolas JEUDY (njeudy)
Frederic Clementi - Camptocamp (frederic-clementi)
For more details, see:
https://code.launchpad.net/~akretion-team/account-financial-tools/account-financial-tools-check-deposit/+merge/210315
Add module for check deposit. The "check" account should have the type "receivable check" then you are able to create a deposit and add the check unreconcile.
--
https://code.launchpad.net/~akretion-team/account-financial-tools/account-financial-tools-check-deposit/+merge/210315
Your team OpenERP Community Reviewer/Maintainer is subscribed to branch lp:account-financial-tools.
=== added directory 'account_check_deposit'
=== added file 'account_check_deposit/__init__.py'
--- account_check_deposit/__init__.py 1970-01-01 00:00:00 +0000
+++ account_check_deposit/__init__.py 2014-03-10 23:36:30 +0000
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+###############################################################################
+# #
+# account_check_deposit for OpenERP #
+# Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@xxxxxxxxxxxx> #
+# #
+# 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 <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+import account_deposit
+
=== added file 'account_check_deposit/__openerp__.py'
--- account_check_deposit/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_check_deposit/__openerp__.py 2014-03-10 23:36:30 +0000
@@ -0,0 +1,49 @@
+# -*- coding: utf-8 -*-
+###############################################################################
+# #
+# account_check_deposit for OpenERP #
+# Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@xxxxxxxxxxxx> #
+# Copyright (C) 2013 Akretion Chafique DELLI <chafique.delli@xxxxxxxxxxxx> #
+# #
+# 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 <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+
+
+{
+ 'name': 'account_check_deposit',
+ 'version': '0.1',
+ 'category': 'Generic Modules/Others',
+ 'license': 'AGPL-3',
+ 'description': """This module allows you to use check deposits.
+ With a new model : account_check_deposit you can select all
+ the checks payments and create a global deposit for the selected checks.
+ You may have to create an account for recieved checks and a journal for payment by checks.""",
+ 'author': 'Akretion',
+ 'website': 'http://www.akretion.com/',
+ 'depends': ['account_accountant',
+ 'report_webkit',
+ ],
+ 'init_xml': [],
+ 'update_xml': [
+ 'account_deposit_view.xml',
+ 'account_deposit_sequence.xml',
+ 'account_type_data.xml',
+ 'security/ir.model.access.csv',
+ ],
+ 'demo_xml': [],
+ 'installable': True,
+ 'active': False,
+}
=== added file 'account_check_deposit/account_deposit.py'
--- account_check_deposit/account_deposit.py 1970-01-01 00:00:00 +0000
+++ account_check_deposit/account_deposit.py 2014-03-10 23:36:30 +0000
@@ -0,0 +1,245 @@
+# -*- coding: utf-8 -*-
+###############################################################################
+# #
+# account_check_deposit for OpenERP #
+# Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@xxxxxxxxxxxx> #
+# Copyright (C) 2013 Akretion Chafique DELLI <chafique.delli@xxxxxxxxxxxx> #
+# #
+# 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 <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+from openerp.osv import fields, osv, orm
+from openerp.tools.translate import _
+
+
+class account_check_deposit(orm.Model):
+ _name = "account.check.deposit"
+ _description = "Account Check Deposit"
+
+ def sum_amount(self, cr, uid, ids, name, args, context=None):
+ res = {}
+ for deposit in self.browse(cr, uid, ids, context=context):
+ total = 0
+ for line in deposit.check_payment_ids:
+ total += line.debit
+ res[deposit.id] = total
+ return res
+
+ def _is_reconcile(self, cr, uid, ids, name, args, context=None):
+ res = {}
+ for deposit in self.browse(cr, uid, ids, context=context):
+ res[deposit.id] = False
+ if deposit.move_id:
+ for line in deposit.move_id.line_id:
+ if line.debit > 0 and line.reconcile_id:
+ res[deposit.id] = True
+ return res
+
+ _columns = {
+ 'name': fields.char(
+ 'Name',
+ size=64,
+ required=True,
+ readonly=True,
+ states={'draft': [('readonly', '=', False)]}),
+ 'check_payment_ids': fields.one2many(
+ 'account.move.line',
+ 'check_deposit_id',
+ 'Check Payments',
+ readonly=True,
+ states={'draft': [('readonly', '=', False)]}),
+ 'deposit_date': fields.date(
+ 'Deposit Date',
+ readonly=True,
+ states={'draft': [('readonly', '=', False)]}),
+ 'journal_id': fields.many2one(
+ 'account.journal',
+ 'Journal',
+ required=True,
+ readonly=True,
+ states={'draft': [('readonly', '=', False)]}),
+ 'state': fields.selection([
+ ('draft', 'Draft'),
+ ('done', 'Done'),
+ ], 'Status',
+ readonly=True),
+ 'move_id': fields.many2one(
+ 'account.move',
+ 'Journal Entry',
+ readonly=True,
+ states={'draft': [('readonly', '=', False)]}),
+ 'bank_id': fields.many2one(
+ 'res.partner.bank',
+ 'Bank',
+ required=True,
+ readonly=True,
+ domain="[('partner_id', '=', partner_id)]",
+ states={'draft': [('readonly', '=', False)]}),
+ 'line_ids': fields.related(
+ 'move_id',
+ 'line_id',
+ relation='account.move.line',
+ type='one2many',
+ string='Lines',
+ readonly=True),
+ 'partner_id': fields.related(
+ 'company_id',
+ 'partner_id',
+ type="many2one",
+ relation="res.partner",
+ string="Partner",
+ readonly=True),
+ 'company_id': fields.many2one(
+ 'res.company',
+ 'Company',
+ required=True,
+ change_default=True,
+ readonly=True,
+ states={'draft': [('readonly', '=', False)]}),
+ 'total_amount': fields.function(
+ sum_amount,
+ string="total amount",
+ type="float"),
+ 'is_reconcile': fields.function(
+ _is_reconcile,
+ string="Reconcile",
+ type="boolean"),
+ }
+
+ _defaults = {
+ 'name': lambda self, cr, uid, context: '/',
+ 'deposit_date': fields.date.context_today,
+ 'state': 'draft',
+ 'company_id': lambda self, cr, uid, c: self.pool.get('res.company').\
+ _company_default_get(cr, uid, 'account.check.deposit', context=c),
+ }
+
+ def unlink(self, cr, uid, ids, context=None):
+ for deposit in self.browse(cr, uid, ids, context=context):
+ if deposit.state == 'done':
+ raise osv.except_osv(_('User Error!'),
+ _('You cannot delete a validad deposit, cancel it before'))
+ return super(account_check_deposit, self).unlink(cr, uid, ids, context=context)
+
+ def cancel(self, cr, uid, ids, context=None):
+ for deposit in self.browse(cr, uid, ids, context=context):
+ if not deposit.journal_id.update_posted:
+ raise osv.except_osv(
+ _('Error!'),
+ _('You cannot modify a posted entry of this journal.\n'
+ 'First you should set the journal to allow cancelling '
+ 'entries.'))
+ for line in deposit.check_payment_ids:
+ if line.reconcile_id:
+ line.reconcile_id.unlink()
+ if deposit.move_id:
+ deposit.move_id.button_cancel()
+ deposit.move_id.unlink()
+ deposit.write({'state': 'draft'})
+ return True
+
+ def create(self, cr, uid, vals, context=None):
+ if vals.get('name', '/') == '/':
+ vals['name'] = self.pool.get('ir.sequence').\
+ get(cr, uid, 'account.check.deposit')
+ return super(account_check_deposit, self).\
+ create(cr, uid, vals, context=context)
+
+ def _prepare_account_move_vals(self, cr, uid, deposit, context=None):
+ date = deposit.deposit_date
+ move_vals = {
+ 'journal_id': deposit.journal_id.id,
+ 'date': date,
+ }
+ period_obj = self.pool['account.period']
+ period_ids = period_obj.find(cr, uid, dt=date, context=context)
+ if period_ids:
+ move_vals['period_id'] = period_ids[0]
+ sum_move_line = self._prepare_sum_move_line_vals(
+ cr, uid, deposit, move_vals, context=context)
+ move_lines = [[0, 0, sum_move_line]]
+
+ for line in deposit.check_payment_ids:
+ move_line = self._prepare_move_line_vals(
+ cr, uid, line, move_vals, context=context)
+ move_lines.append([0, 0, move_line])
+
+ move_vals.update({'line_id': move_lines})
+ return move_vals
+
+ def _prepare_move_line_vals(self, cr, uid, line, move_vals, context=None):
+ return {
+ 'name': line.ref,
+ 'credit': line.debit,
+ 'account_id': line.account_id.id,
+ 'partner_id': line.partner_id.id,
+ 'check_line_id': line.id,
+ }
+
+ def _prepare_sum_move_line_vals(self, cr, uid, deposit, move_vals, context=None):
+ debit = 0.0
+ for line in deposit.check_payment_ids:
+ debit += line.debit
+ return {
+ 'name': deposit.name,
+ 'debit': debit,
+ 'ref': deposit.name,
+ }
+
+ def _reconcile_checks(self, cr, uid, move_id, context=None):
+ move_line_obj = self.pool['account.move.line']
+ move_obj = self.pool['account.move']
+ move = move_obj.browse(cr, uid, move_id, context=context)
+ for line in move.line_id:
+ if line.check_line_id:
+ move_line_obj.reconcile(cr, uid, [
+ line.id,
+ line.check_line_id.id,
+ ], context=context)
+ return True
+
+ def onchange_company_id(self, cr, uid, ids, company_id, context=None):
+ vals = {}
+ if company_id:
+ company = self.pool.get('res.company').\
+ browse(cr, uid, company_id, context=context)
+ vals['partner_id'] = company.partner_id.id
+ return {'value': vals}
+
+ def validate_deposit(self, cr, uid, ids, context=None):
+ move_obj = self.pool.get('account.move')
+ if context is None:
+ context = {}
+ for deposit in self.browse(cr, uid, ids, context=context):
+ context['journal_id'] = deposit.journal_id.id
+ move_vals = self._prepare_account_move_vals(cr, uid, deposit, context=context)
+ move_id = move_obj.create(cr, uid, move_vals, context=context)
+ move_obj.post(cr, uid, [move_id], context=context)
+ self._reconcile_checks(cr, uid, move_id, context=context)
+ deposit.write({'state': 'done', 'move_id': move_id})
+ return True
+
+
+class account_move_line(orm.Model):
+ _inherit = "account.move.line"
+
+ _columns = {
+ 'check_deposit_id': fields.many2one(
+ 'account.check.deposit',
+ 'Check Deposit'),
+ 'check_line_id': fields.many2one(
+ 'account.move.line',
+ 'Check Receive Move line'),
+ }
=== added file 'account_check_deposit/account_deposit_sequence.xml'
--- account_check_deposit/account_deposit_sequence.xml 1970-01-01 00:00:00 +0000
+++ account_check_deposit/account_deposit_sequence.xml 2014-03-10 23:36:30 +0000
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ account_check_deposit for OpenERP
+ Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@xxxxxxxxxxxx>
+ The licence is in the file __openerp__.py
+-->
+
+<openerp>
+ <data noupdate="1">
+
+ <!-- Sequences for account.check.deposit -->
+ <record id="seq_type_account_check_deposit" model="ir.sequence.type">
+ <field name="name">Account Check Deposit</field>
+ <field name="code">account.check.deposit</field>
+ </record>
+
+ <record id="seq_account_check_deposit" model="ir.sequence">
+ <field name="name">Account Check Deposit</field>
+ <field name="code">account.check.deposit</field>
+ <field name="prefix">DEP</field>
+ <field name="padding">3</field>
+ <field name="company_id" eval="False"/>
+ </record>
+
+ </data>
+</openerp>
=== added file 'account_check_deposit/account_deposit_view.xml'
--- account_check_deposit/account_deposit_view.xml 1970-01-01 00:00:00 +0000
+++ account_check_deposit/account_deposit_view.xml 2014-03-10 23:36:30 +0000
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ account_check_deposit for OpenERP
+ Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@xxxxxxxxxxxx>
+ Copyright (C) 2013 Akretion Chafique DELLI <chafique.delli@xxxxxxxxxxxx>
+ The licence is in the file __openerp__.py
+-->
+
+<openerp>
+ <data>
+ <report
+ auto="False"
+ file="account_check_deposit/report/check_deposit.mako"
+ id="check_deposit_webkit"
+ model="account.check.deposit"
+ name="check.deposit.webkit"
+ report_type="webkit"
+ string="Print Checks Deposit"/>
+
+ <!-- INHERITED VIEW FOR THE OBJECT : account_check_deposit -->
+
+ <record id="account_check_deposit_view_form" model="ir.ui.view">
+ <field name="name">account_check_deposit.account_check_deposit.view_form</field>
+ <field name="model">account.check.deposit</field>
+ <field name="type">form</field>
+ <field name="arch" type="xml">
+ <form string="Checks Deposit" version="7.0">
+ <header>
+ <button name="validate_deposit" states="draft"
+ string="Validate Deposit"
+ type="object" class="oe_highlight"/>
+ <button name="cancel" states="done"
+ string="Cancel" type="object" />
+ <field name="state" widget="statusbar"
+ statusbar_visible="draft,done"
+ statusbar_colors='{"draft":"blue"}'/>
+ </header>
+ <sheet>
+ <h1>
+ <label string="Deposit N°" />
+ <field name="name" class="oe_inline" />
+ </h1>
+ <group name="deposit_fields">
+ <field name="deposit_date" />
+ <field name="journal_id" />
+ <field name="move_id" />
+ <field name="company_id"
+ on_change="onchange_company_id(company_id, context)"/>
+ <field name="partner_id" invisible="1"/>
+ <field name="bank_id"/>
+ </group>
+ <notebook colspan="4">
+ <page string="Check Payments">
+ <field name="check_payment_ids" nolabel="1"
+ colspan="4" widget="many2many"
+ domain="[('reconcile_id','=',False),
+ ('account_id.user_type.code','=','recieved_check')]">
+ <tree string="Check Payment">
+ <field name="journal_id" />
+ <field name="period_id" />
+ <field name="date"/>
+ <field name="name"/>
+ <field name="ref"/>
+ <field name="partner_id" />
+ <field name="account_id" />
+ <field name="move_id" />
+ <field name="debit" sum="Total Debit"/>
+ <field name="credit" sum="Total Credit"/>
+ <field name="reconcile"/>
+ </tree>
+ </field>
+ </page>
+ <page string="Move Line">
+ <field name="line_ids" nolabel="1"/>
+ </page>
+ </notebook>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
+ <record id="account_check_deposit_view_tree" model="ir.ui.view">
+ <field name="name">account_check_deposit.account_check_deposit.view_tree</field>
+ <field name="model">account.check.deposit</field>
+ <field name="type">tree</field>
+ <field name="arch" type="xml">
+ <tree string="Checks Deposit">
+ <field name="name"/>
+ <field name="deposit_date"/>
+ <field name="state"/>
+ <field name="move_id"/>
+ <field name="total_amount"/>
+ <field name="is_reconcile"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="view_check_deposit_search" model="ir.ui.view">
+ <field name="name">account.check.deposit.search</field>
+ <field name="model">account.check.deposit</field>
+ <field name="arch" type="xml">
+ <search string="Checks Deposit Search">
+ <field name="name" string="Checks Deposit"/>
+ <field name="deposit_date" string="Date"/>
+ <field name="state"/>
+ <field name="move_id"/>
+ <group expand="0" string="Group By...">
+ </group>
+ </search>
+ </field>
+ </record>
+
+ <record id="action_check_deposit_tree" model="ir.actions.act_window">
+ <field name="name">Checks Deposit</field>
+ <field name="res_model">account.check.deposit</field>
+ <field name="view_type">form</field>
+ <field name="view_mode">tree,form,graph</field>
+ <field name="domain">[]</field>
+ <field name="context">{}</field>
+ <field name="search_view_id" ref="view_check_deposit_search"/>
+ <field name="help" type="html"></field>
+ </record>
+
+ <menuitem string="Checks Deposit"
+ action="action_check_deposit_tree"
+ id="menu_check_deposit_tree"
+ parent="account.menu_finance_bank_and_cash"
+ sequence="20"/>
+
+ </data>
+</openerp>
=== added file 'account_check_deposit/account_type_data.xml'
--- account_check_deposit/account_type_data.xml 1970-01-01 00:00:00 +0000
+++ account_check_deposit/account_type_data.xml 2014-03-10 23:36:30 +0000
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ account_check_deposit for OpenERP
+ Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@xxxxxxxxxxxx>
+ The licence is in the file __openerp__.py
+-->
+
+<openerp>
+ <data noupdate="1">
+
+ <!-- New account.account.type -->
+
+ <record model="account.account.type" id="data_account_type_received_check">
+ <field name="name">Recieved Checks</field>
+ <field name="code">recieved_check</field>
+ <field name="close_method">none</field>
+ </record>
+
+ </data>
+</openerp>
=== added directory 'account_check_deposit/i18n'
=== added file 'account_check_deposit/i18n/account_check_deposit.pot'
--- account_check_deposit/i18n/account_check_deposit.pot 1970-01-01 00:00:00 +0000
+++ account_check_deposit/i18n/account_check_deposit.pot 2014-03-10 23:36:30 +0000
@@ -0,0 +1,236 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_check_deposit
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-02-21 10:01+0000\n"
+"PO-Revision-Date: 2013-02-21 10:01+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: account_check_deposit
+#: code:addons/account_check_deposit/account_deposit.py:76
+#, python-format
+msgid "You cannot modify a posted entry of this journal.\n"
+"First you should set the journal to allow cancelling entries."
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:58
+msgid "Beneficiary"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Group By..."
+msgstr ""
+
+#. module: account_check_deposit
+#: model:ir.actions.report.xml,name:account_check_deposit.check_deposit_webkit
+msgid "WebKit Checks Deposit"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:79
+msgid "Designation"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,state:0
+msgid "Status"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:78
+msgid "Description"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.move.line,check_deposit_id:0
+msgid "Check Deposit"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,company_id:0
+msgid "Company"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:65
+msgid "RIB Key"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,deposit_date:0
+#: report:addons/account_check_deposit/report/check_deposit.mako:53
+msgid "Deposit Date"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:63
+msgid "Account to crediting"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:76
+msgid "Payment Date"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Date"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Total Credit"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,bank_id:0
+msgid "Bank"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,name:0
+msgid "Name"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Checks Deposit Search"
+msgstr ""
+
+#. module: account_check_deposit
+#: model:account.account.type,name:account_check_deposit.data_account_type_received_check
+msgid "Recieved Checks"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+#: report:addons/account_check_deposit/report/check_deposit.mako:49
+msgid "Deposit N°"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Total Debit"
+msgstr ""
+
+#. module: account_check_deposit
+#: code:addons/account_check_deposit/account_deposit.py:76
+#, python-format
+msgid "Error!"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:80
+msgid "Amount"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+#: model:ir.actions.act_window,name:account_check_deposit.action_check_deposit_tree
+#: model:ir.ui.menu,name:account_check_deposit.menu_check_deposit_tree
+msgid "Checks Deposit"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,total_amount:0
+msgid "total amount"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,partner_id:0
+msgid "Partner"
+msgstr ""
+
+#. module: account_check_deposit
+#: selection:account.check.deposit,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Validate Deposit"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+#: field:account.check.deposit,check_payment_ids:0
+#: report:addons/account_check_deposit/report/check_deposit.mako:70
+msgid "Check Payments"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:41
+msgid "Deposit Slip of Checks(\\u20acuros)"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:55
+msgid "Bank Code"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:77
+msgid "Reference"
+msgstr ""
+
+#. module: account_check_deposit
+#: model:ir.model,name:account_check_deposit.model_account_check_deposit
+msgid "Account Check Deposit"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:60
+msgid "Office Code"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Check Payment"
+msgstr ""
+
+#. module: account_check_deposit
+#: selection:account.check.deposit,state:0
+msgid "Done"
+msgstr ""
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Cancel"
+msgstr ""
+
+#. module: account_check_deposit
+#: selection:account.check.deposit,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:99
+msgid "Total:"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,move_id:0
+msgid "Journal Entry"
+msgstr ""
+
+#. module: account_check_deposit
+#: field:account.check.deposit,journal_id:0
+msgid "Journal"
+msgstr ""
+
+#. module: account_check_deposit
+#: model:ir.model,name:account_check_deposit.model_account_move_line
+msgid "Journal Items"
+msgstr ""
+
=== added file 'account_check_deposit/i18n/fr.po'
--- account_check_deposit/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ account_check_deposit/i18n/fr.po 2014-03-10 23:36:30 +0000
@@ -0,0 +1,236 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_check_deposit
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-02-21 10:01+0000\n"
+"PO-Revision-Date: 2013-02-21 10:01+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: account_check_deposit
+#: code:addons/account_check_deposit/account_deposit.py:76
+#, python-format
+msgid "You cannot modify a posted entry of this journal.\n"
+"First you should set the journal to allow cancelling entries."
+msgstr ""
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:58
+msgid "Beneficiary"
+msgstr "Bénéficiaire"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Group By..."
+msgstr "Regrouper par..."
+
+#. module: account_check_deposit
+#: model:ir.actions.report.xml,name:account_check_deposit.check_deposit_webkit
+msgid "Print Checks Deposit"
+msgstr "Imprimer Remise de Chèques"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:79
+msgid "Designation"
+msgstr "Désignation"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,state:0
+msgid "Status"
+msgstr "Etat"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:78
+msgid "Description"
+msgstr "Description"
+
+#. module: account_check_deposit
+#: field:account.move.line,check_deposit_id:0
+msgid "Check Deposit"
+msgstr "Remise de Chèque"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,company_id:0
+msgid "Company"
+msgstr "Société"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:65
+msgid "BIS Key"
+msgstr "Clé RIB"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,deposit_date:0
+#: report:addons/account_check_deposit/report/check_deposit.mako:53
+msgid "Deposit Date"
+msgstr "Date du Versement"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:63
+msgid "Account to crediting"
+msgstr "Compte à Créditer"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:76
+msgid "Payment Date"
+msgstr "Date de Paiement"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Date"
+msgstr "Date"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Total Credit"
+msgstr "Crédit Total"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,bank_id:0
+msgid "Bank"
+msgstr "Banque"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,name:0
+msgid "Name"
+msgstr "Nom"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Checks Deposit Search"
+msgstr "Rechercher une Remise de Chèques"
+
+#. module: account_check_deposit
+#: model:account.account.type,name:account_check_deposit.data_account_type_received_check
+msgid "Recieved Checks"
+msgstr "Chèques Reçus"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+#: report:addons/account_check_deposit/report/check_deposit.mako:49
+msgid "Deposit N°"
+msgstr "Versement N°"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Total Debit"
+msgstr "Débit Total"
+
+#. module: account_check_deposit
+#: code:addons/account_check_deposit/account_deposit.py:76
+#, python-format
+msgid "Error!"
+msgstr "Erreur!"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:80
+msgid "Amount"
+msgstr "Montant"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+#: model:ir.actions.act_window,name:account_check_deposit.action_check_deposit_tree
+#: model:ir.ui.menu,name:account_check_deposit.menu_check_deposit_tree
+msgid "Checks Deposit"
+msgstr "Remise de Chèques"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,total_amount:0
+msgid "total amount"
+msgstr "montant total"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,partner_id:0
+msgid "Partner"
+msgstr "Partenaire"
+
+#. module: account_check_deposit
+#: selection:account.check.deposit,state:0
+msgid "Cancelled"
+msgstr "Annulé"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Validate Deposit"
+msgstr "Valider Versement"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+#: field:account.check.deposit,check_payment_ids:0
+#: report:addons/account_check_deposit/report/check_deposit.mako:70
+msgid "Check Payments"
+msgstr "Paiements par Chèque"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:41
+msgid "Deposit Slip of Checks(Euros)"
+msgstr "Bordereau de Remise de Chèques(Euros)"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:55
+msgid "Bank Code"
+msgstr "Code Banque"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:77
+msgid "Reference"
+msgstr "Référence"
+
+#. module: account_check_deposit
+#: model:ir.model,name:account_check_deposit.model_account_check_deposit
+msgid "Account Check Deposit"
+msgstr "Compte Remise de Chèque"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:60
+msgid "Office Code"
+msgstr "Code Guichet"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Check Payment"
+msgstr "Paiement par Chèque"
+
+#. module: account_check_deposit
+#: selection:account.check.deposit,state:0
+msgid "Done"
+msgstr "Terminé"
+
+#. module: account_check_deposit
+#: view:account.check.deposit:0
+msgid "Cancel"
+msgstr "Annuler"
+
+#. module: account_check_deposit
+#: selection:account.check.deposit,state:0
+msgid "Draft"
+msgstr "Brouillon"
+
+#. module: account_check_deposit
+#: report:addons/account_check_deposit/report/check_deposit.mako:99
+msgid "Total:"
+msgstr "Total:"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,move_id:0
+msgid "Journal Entry"
+msgstr "Pièce Comptable"
+
+#. module: account_check_deposit
+#: field:account.check.deposit,journal_id:0
+msgid "Journal"
+msgstr "Journal"
+
+#. module: account_check_deposit
+#: model:ir.model,name:account_check_deposit.model_account_move_line
+msgid "Journal Items"
+msgstr "Écritures comptables"
+
=== added directory 'account_check_deposit/report'
=== added file 'account_check_deposit/report/.directory'
--- account_check_deposit/report/.directory 1970-01-01 00:00:00 +0000
+++ account_check_deposit/report/.directory 2014-03-10 23:36:30 +0000
@@ -0,0 +1,6 @@
+[Dolphin]
+AdditionalInfoV2=Details_Size,Details_Date,CustomizedDetails
+Sorting=2
+Timestamp=2012,3,5,14,27,49
+Version=2
+ViewMode=1
=== added file 'account_check_deposit/report/.mako'
--- account_check_deposit/report/.mako 1970-01-01 00:00:00 +0000
+++ account_check_deposit/report/.mako 2014-03-10 23:36:30 +0000
@@ -0,0 +1,275 @@
+<html>
+<head>
+ <style type="text/css">
+ ${css}
+ pre {font-family:helvetica; font-size:12;}
+ </style>
+</head>
+<body>
+ <style type="text/css">
+ table {
+ width: 100%;
+ page-break-after:auto;
+ border-collapse: collapse;
+ cellspacing="0";
+ font-size:10px;
+ }
+ td { margin: 0px; padding: 3px; border: 1px solid lightgrey; vertical-align: top; }
+ pre {font-family:helvetica; font-size:12;}
+ </style>
+
+ <%
+ def carriage_returns(text):
+ return text.replace('\n', '<br />')
+ %>
+
+ %for order in objects :
+<br>
+ <% setLang(order.partner_id.lang) %>
+ <table >
+ %if order.company_id.address_label_position == 'left':
+ <tr>
+ <td style="width:50%">
+${_("Shipping Address")}
+<hr>
+ <pre>
+${order.partner_shipping_id.address_label}
+ <pre>
+ </td>
+ <td style="width:50%">
+ %if order.partner_id.address_label != order.partner_shipping_id.address_label:
+<b>${_("Ordering Contact")}</b><br>
+${order.partner_id.address_label|carriage_returns}
+ %endif
+ %if order.partner_id.phone :
+${_("Phone")}: ${order.partner_id.phone|entity} <br>
+ %endif
+ %if order.partner_id.fax :
+${_("Fax")}: ${order.partner_id.fax|entity} <br>
+ %endif
+ %if order.partner_id.email :
+${_("Mail")}: ${order.partner_id.email|entity} <br>
+ %endif
+ %if order.partner_invoice_id.address_label != order.partner_shipping_id.address_label:
+<br>
+<b>${_("Invoice Address")}</b><br>
+${order.partner_invoice_id.address_label|carriage_returns}
+ %endif
+ %if order.partner_invoice_id.partner_id.vat :
+${_("VAT")}: ${order.partner_invoice_id.partner_id.vat|entity} <br>
+ %endif
+
+ </td>
+
+ </tr>
+ %endif
+
+ %if order.company_id.address_label_position == 'right' or not order.company_id.address_label_position:
+ <tr>
+ <td style="width:50%">
+ %if order.partner_id.address_label != order.partner_shipping_id.address_label:
+<b>${_("Ordering Contact")}</b><br>
+<hr>
+${order.partner_id.address_label|carriage_returns}
+ %endif
+ %if order.partner_id.phone :
+${_("Tel")}: ${order.partner_id.phone|entity} <br>
+ %endif
+ %if order.partner_id.fax :
+${_("Fax")}: ${order.partner_id.fax|entity} <br>
+ %endif
+ %if order.partner_id.email :
+${_("E-mail")}: ${order.partner_id.email|entity} <br>
+ %endif
+ %if order.partner_invoice_id.address_label != order.partner_shipping_id.address_label:
+<br>
+<hr>
+<b>${_("Invoice Address")}</b><br>
+<hr>
+${order.partner_invoice_id.address_label|carriage_returns}
+ %endif
+ %if order.partner_invoice_id.vat :
+${_("VAT")}: ${order.partner_invoice_id.vat|entity} <br>
+ %endif
+
+ </td>
+ <td style="width:50%">
+<b>${_("Shipping Address")}</b><br>
+<hr>
+ <pre>
+${order.partner_shipping_id.address_label}
+ <pre>
+ </td>
+ </tr>
+ %endif
+ </table>
+
+ <br />
+ <br />
+
+ %if order.state == 'draft' :
+ <span class="title">${_("Quotation N°")} ${order.name or ''|entity}</span>
+ %elif order.state == 'cancel' :
+ <span class="title">${_("Sale Order Canceled")} ${order.name or ''|entity}</span>
+ %else :
+ <span class="title">${_("Order N°")} ${order.name or ''|entity}</span>
+ %endif
+ <br/>
+ <table style="width:100%">
+ <tr>
+ %if order.client_order_ref:
+ <td>${_("Reference")}</td>
+ %endif
+ %if order.project_id:
+ <td>${_("Projekt")}</td>
+ %endif
+ <td style="text-align:center;white-space:nowrap"><b>${_("Order Date")}</b></td>
+ %if order.carrier_id:
+ <td style="text-align:center;white-space:nowrap"><b>${_("Carrier")}</b></td>
+ %endif
+ %if order.user_id:
+ <td style="text-align:center;white-space:nowrap"><b>${_("Salesman")}</b></td>
+ %endif
+ %if order.payment_term :
+ <td style="text-align:center;white-space:nowrap"><b>${_("Payment Term")}</b></td>
+ %endif
+ %if order.incoterm:
+ <td style="text-align:center;white-space:nowrap"><b>${_("Incoterm")}</b></td>
+ %endif
+
+ <td style="text-align:center;white-space:nowrap"><b>${_("Curr")}</b></td>
+ </tr>
+ <tr>
+ %if order.client_order_ref:
+ <td>
+ ${order.client_order_ref}
+ </td>
+ %endif
+ %if order.project_id:
+ <td>${order.project_id.name}</td>
+ %endif
+ %if order.date_order:
+ <td>
+ ${order.date_order or ''}</td>
+ %endif
+ %if order.carrier_id:
+ <td>
+ ${order.carrier_id.name }
+ </td>
+ %endif
+ %if order.user_id :
+ <td>${order.user_id.name or ''}</td>
+ %endif
+ %if order.payment_term :
+ <td>${order.payment_term.name}</td>
+ %endif
+ %if order.incoterm:
+ <td>${order.incoterm.name}</td>
+ %endif
+
+ <td style="white-space:nowrap">${order.pricelist_id.currency_id.name} </td>
+ </table>
+ <h1><br /></h1>
+ <table style="width:100%">
+ <thead>
+ <tr>
+%if order.print_code:
+ <td style="text-align:center;white-space:nowrap"><b>${_("Code")}</b></td>
+ <td style="text-align:center;white-space:nowrap"><b>${_("Description")}</b></td>
+%else:
+ <td style="text-align:center;white-space:nowrap"><b>${_("Description")}</b></td>
+%endif
+ <td style="text-align:center;white-space:nowrap"><b>${_("Tax")}</b></td>
+%if order.print_uom:
+ <td style="text-align:center;white-space:nowrap"><b>${_("Quantity")}</b></td><td style="text-align:center;white-space:nowrap"><b>${_("UoM")}</b></td>
+%endif
+%if order.print_uos:
+ <th style="text-align:center;white-space:nowrap">${_("UoS Qty")}</th><th style="text-align:center;white-space:nowrap;">${_("UoS")}</th>
+%endif
+%if order.print_ean:
+ <td style="text-align:center;white-space:nowrap"><b>${_("EAN")}</b></td>
+%endif
+%if order.print_packing:
+ <td style="text-align:center;white-space:nowrap"><b>${_("Pack")}</b></td>
+ <td style="text-align:center;white-space:nowrap"><b>${_("Packaging")}</b></td>
+%endif
+ <td style="text-align:center;white-space:nowrap"><b>${_("Price Unit")}</b></td>
+%if order.print_discount:
+ <td style="text-align:center;white-space:nowrap"><b>${_("Discount")}</b></td>
+%endif
+ <td style="text-align:center;white-space:nowrap"><b>${_("Sub Total")}</b></td>
+ </tr>
+ </thead>
+ %for line in order.order_line_sorted :
+ <tbody>
+ <tr>
+%if order.print_code:
+ <td>${line.product_id.default_code or ''|entity}</td>
+ <td>
+${line.product_id.name or line.name|entity}
+
+
+</td>
+%else:
+ <td>${line.name|entity}
+
+ </td
+%endif
+ <td>${ ', '.join([tax.name or '' for tax in line.tax_id]) }</td>
+%if order.print_uom:
+ <td style="white-space:nowrap;text-align:right;">${str(line.product_uom_qty).replace(',000','') or '0'}</td>
+ <td style="white-space:nowrap;text-align:left;">${line.product_uom.name or ''}</td>
+%endif
+%if order.print_uos:
+ <td style="white-space:nowrap;text-align:right;">${str(line.product_uos_qty).replace(',000','') or '0'}</td>
+ <td style="white-space:nowrap;text-align:left;">${line.product_uos.name or ''}</td>
+%endif
+%if order.print_ean:
+ <td style="white-space:nowrap;text-align:left;">${line.product_packaging.ean or line.product_id.ean13 or ''}</td>
+%endif
+%if order.print_packing:
+ <td style="white-space:normal;text-align:left;">${line.product_packaging.qty and line.product_uom_qty/line.product_packaging.qty or ''}</td>
+ <td style="white-space:normal;text-align:left;">${line.product_packaging and line.product_packaging.ul.name or ''} ${line.product_packaging and _(" / " or '')} ${line.product_packaging and line.product_packaging.qty or ''} ${line.product_packaging and line.product_id.uom_id.name or ''}</td>
+%endif
+ <td style="white-space:nowrap;text-align:right;">${line.price_unit or ''}</td>
+%if order.print_discount:
+ <td style="text-align:right;">${line.discount}</th>
+%endif
+ <td style="white-space:nowrap;text-align:right;">${line.price_subtotal or ''}</td>
+ </tr>
+ %endfor
+ </tbody>
+ <tfoot>
+ <tr>
+ <td colspan="${order.cols}" style="border-style:none"/>
+ <td style="border-top: 2px solid"><b>${_("Net Total:")}</b></td>
+ <td class="amount" style="border-top:2px solid;text-align:right;">${formatLang(order.amount_untaxed, get_digits(dp='Sale Price'))} </td>
+ </tr>
+ <tr>
+ <td colspan="${order.cols}" style="border-style:none"/>
+ <td style="border-style:none"><b>${_("Taxes:")}</b></td>
+ <td class="amount" style="text-align:right;">${formatLang(order.amount_tax, get_digits(dp='Sale Price'))} </td>
+ </tr>
+ <tr>
+ <td colspan="${order.cols}" style="border-style:none"/>
+ <td style="border-top:2px solid"><b>${_("Total:")}</b></td>
+ <td class="amount" style="border-top:2px solid;text-align:right;">${formatLang(order.amount_total, get_digits(dp='Sale Price'))} </td>
+ </tr>
+ </tfoot>
+
+ </table>
+
+%if order.note and 'note_print' not in order._columns:
+<br>
+ <pre>${order.note}</pre>
+%endif:
+%if 'note_print' in order._columns and order.note_print:
+<br>
+ <pre>${order.note_print}</pre>
+%endif:
+
+
+ <p style="page-break-after:always"></p>
+ %endfor
+</body>
+</html>
=== added file 'account_check_deposit/report/__init__.py'
--- account_check_deposit/report/__init__.py 1970-01-01 00:00:00 +0000
+++ account_check_deposit/report/__init__.py 2014-03-10 23:36:30 +0000
@@ -0,0 +1,32 @@
+ #-*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2010 Camptocamp SA (http://www.camptocamp.com)
+# All Right Reserved
+#
+# Author : Ferdinand Gassauer (Camptocamp Austria)
+#
+# 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.
+#
+##############################################################################
+
+import report_webkit_html
=== added file 'account_check_deposit/report/check_deposit.mako'
--- account_check_deposit/report/check_deposit.mako 1970-01-01 00:00:00 +0000
+++ account_check_deposit/report/check_deposit.mako 2014-03-10 23:36:30 +0000
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+<html>
+<head>
+ <style type="text/css">
+
+ table {
+ width: 100%;
+ page-break-after:auto;
+ border-collapse: collapse;
+ cellspacing="0";
+ font-size:14px;
+ }
+ td { margin: 0px; padding: 3px; border: 1px solid lightgrey; vertical-align: top; }
+ .valign_up1, .valign_up2, .halign, .vtrait1, .vtrait2{
+ position:absolute;
+ }
+ .valign_up1 { left:200px; font-weight: lighter; color:MediumSlateBlue ;
+ }
+ .valign_up2 { left:650px; font-weight: lighter; color:MediumSlateBlue ;
+ }
+ .halign { left:500px}
+ .vtrait1 { left:185px; font-weight: lighter; color:MediumSlateBlue ; }
+ .vtrait2 { left:630px; font-weight: lighter; color:MediumSlateBlue ; }
+ .entete_tab {text-align:center; white-space:nowrap; border-bottom:1px solid;}
+ .cellule_tab {white-space:nowrap; text-align:center;}
+ .amount {white-space:nowrap; text-align:right;}
+ .total {border-top:2px solid;}
+ .titre {text-align:center; font-family:helvetica; font-size:35px; background:lightgrey}
+
+ pre {font-family:helvetica; font-size:12px;}
+ h1 {font-family:helvetica; font-size:18px;}
+ h2 {font-family:helvetica; font-size:25px; border-bottom:1px solid}
+ h3 {font-family:helvetica; font-size:22px; color: MediumSlateBlue ; margin-bottom: auto;}
+
+
+ </style>
+</head>
+<body>
+%for deposit in objects :
+<% setLang(deposit.partner_id.lang) %>
+<b><span class="titre">${_("Deposit Slip of Checks(Euros)")}</span></b>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+ <h2>
+<b>${_("Deposit N°")} ${deposit.name}</b>
+ </h2>
+
+ <h1>
+<b>${_("Deposit Date")}</b><span class="vtrait1">${_("|")}</span>
+<span class="valign_up1"> ${deposit.deposit_date}</span>
+<b><span class="halign">${_("Bank Code")}</span></b>
+<span class="vtrait2">${_("|")}</span><span class="valign_up2"> ${deposit.bank_id.bank_code}</span>
+<br>
+<b>${_("Beneficiary")}</b><span class="vtrait1">${_("|")}</span>
+<span class="valign_up1"> ${company.partner_id.name}</span>
+<b><span class="halign">${_("Office Code")}</span></b>
+<span class="vtrait2">${_("|")}</span><span class="valign_up2"> ${deposit.bank_id.office}</span>
+<br>
+<b>${_("Account to crediting")}</b><span class="vtrait1">${_("|")}</span>
+<span class="valign_up1"> ${deposit.bank_id.rib_acc_number}</span>
+<b><span class="halign">${_("BIS Key")}</span></b><span class="vtrait2">${_("|")}</span>
+<span class="valign_up2"> ${deposit.bank_id.key}</span>
+ </h1>
+<br>
+ <h3>
+<b>${_("Check Payments")}</b>
+ </h3>
+
+ <table style="width:100%">
+ <thead>
+ <tr>
+<th class="entete_tab">${_("Payment Date")}</th>
+<th class="entete_tab">${_("Reference")}</th>
+<th class="entete_tab">${_("Description")}</th>
+<th class="entete_tab">${_("Designation")}</th>
+<th class="entete_tab">${_("Amount")}</th>
+ </thead>
+ </tr>
+
+<br>
+ %for move_line in deposit.check_payment_ids :
+ <tbody>
+ <tr>
+ <td class="cellule_tab">${move_line.date or ''}</td>
+ <td class="cellule_tab">${move_line.ref or ''}</td>
+ <td class="cellule_tab">${move_line.name or ''}</td>
+ <td class="cellule_tab">${move_line.partner_id.name or ''}</td>
+ <td class="amount">${move_line.debit or '0'}</td>
+ </tr>
+ </tbody>
+ %endfor
+ %endfor
+ <tfoot>
+ <tr>
+ <td colspan=4 class="amount total"><b>${_("Total:")}</b></td>
+ <td colspan=5 class="amount total"><b>${deposit.total_amount or '0'}</b></td>
+ </tr>
+ </tfoot>
+ </table>
+
+
+
+
+
+
+
+</body>
+</html>
=== added file 'account_check_deposit/report/report_webkit_html.py'
--- account_check_deposit/report/report_webkit_html.py 1970-01-01 00:00:00 +0000
+++ account_check_deposit/report/report_webkit_html.py 2014-03-10 23:36:30 +0000
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+# Copyright (C) 2010-2012 Camptocamp Austria (<http://www.camptocamp.at>)
+# Copyright (C) 2013 AKRETION (<http://www.akretion.com>)
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import time
+from report import report_sxw
+
+
+class report_webkit_html(report_sxw.rml_parse):
+
+ def __init__(self, cr, uid, name, context):
+ super(report_webkit_html, self).__init__(cr, uid, name, context=context)
+ self.localcontext.update({
+ 'time': time,
+ 'cr': cr,
+ 'uid': uid,
+ })
+
+report_sxw.report_sxw('report.account.check.deposit',
+ 'account.check.deposit',
+ 'addons/account_check_deposit/report/check_deposit.mako',
+ parser=report_webkit_html)
=== added directory 'account_check_deposit/security'
=== added file 'account_check_deposit/security/ir.model.access.csv'
--- account_check_deposit/security/ir.model.access.csv 1970-01-01 00:00:00 +0000
+++ account_check_deposit/security/ir.model.access.csv 2014-03-10 23:36:30 +0000
@@ -0,0 +1,2 @@
+"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
+"access_account_check_deposit_account_check_deposit_group_manager","account_check_deposit_account_check_deposit_group_manager","model_account_check_deposit","account.group_account_user",1,1,1,1