Merge lp:~akretion-team/account-financial-tools/account-financial-tools-check-deposit into lp:~account-core-editors/account-financial-tools/7.0

Proposed by Sébastien BEAU - http://www.akretion.com
Status: Rejected
Rejected by: Nicolas Bessi - Camptocamp
Proposed branch: lp:~akretion-team/account-financial-tools/account-financial-tools-check-deposit
Merge into: lp:~account-core-editors/account-financial-tools/7.0
Diff against target: 1506 lines (+1433/-0)
14 files modified
account_check_deposit/__init__.py (+23/-0)
account_check_deposit/__openerp__.py (+48/-0)
account_check_deposit/account_deposit.py (+245/-0)
account_check_deposit/account_deposit_sequence.xml (+26/-0)
account_check_deposit/account_deposit_view.xml (+131/-0)
account_check_deposit/account_type_data.xml (+20/-0)
account_check_deposit/i18n/account_check_deposit.pot (+236/-0)
account_check_deposit/i18n/fr.po (+236/-0)
account_check_deposit/report/.directory (+6/-0)
account_check_deposit/report/.mako (+275/-0)
account_check_deposit/report/__init__.py (+32/-0)
account_check_deposit/report/check_deposit.mako (+112/-0)
account_check_deposit/report/report_webkit_html.py (+41/-0)
account_check_deposit/security/ir.model.access.csv (+2/-0)
To merge this branch: bzr merge lp:~akretion-team/account-financial-tools/account-financial-tools-check-deposit
Reviewer Review Type Date Requested Status
Nicolas JEUDY (community) code reading Disapprove
Frederic Clementi - Camptocamp Pending
Review via email: mp+210315@code.launchpad.net

Description of the change

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.

To post a comment you must log in.
186. By Sébastien BEAU - http://www.akretion.com

[FIX] fix wrong spelling

187. By Sébastien BEAU - http://www.akretion.com

[REF] V7 clean up

Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

The project has moved to Github https://github.com/OCA/account-financial-tools.
Please resubmit your MP on github using following procedure https://github.com/OCA/maintainers-tools/wiki/How-to-move-a-Merge-Proposal-to-GitHub.

I put this MP in rejected in the meanwhile.

Regards

Revision history for this message
Nicolas JEUDY (njeudy) wrote :

Hello,

As nicolas said, can you move this MP to github ?
I will test this module this week end and write my comment. Thanks for the work

Revision history for this message
Nicolas JEUDY (njeudy) :
review: Disapprove (code reading)

Unmerged revisions

190. By Benoit Guillot - http://www.akretion.com

[FIX] fix move line name

189. By Alexis de Lattre

Update field definition

188. By Alexis de Lattre

Add support for multi-currency
Works with a single account journal
Usability and many other enhancements

187. By Sébastien BEAU - http://www.akretion.com

[REF] V7 clean up

186. By Sébastien BEAU - http://www.akretion.com

[FIX] fix wrong spelling

185. By Sébastien BEAU - http://www.akretion.com

[REF] clean remove useless code, default value are called during the create

184. By Sébastien BEAU - http://www.akretion.com

[CLEAN] pep8 cleanup no code change

183. By Sébastien BEAU - http://www.akretion.com

[REF] remove dependency on sale_quick_payment as check can be registred in various way like native voucher

182. By Sébastien BEAU - http://www.akretion.com

[FIX] fix error when replaying commit

181. By Sébastien BEAU - http://www.akretion.com

[IMP] add total amount and flag to know if the deposit have been reconcile, the best will be to add a workflow

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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:55:30 +0000
@@ -0,0 +1,23 @@
1# -*- coding: utf-8 -*-
2###############################################################################
3# #
4# account_check_deposit for OpenERP #
5# Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@akretion.com> #
6# #
7# This program is free software: you can redistribute it and/or modify #
8# it under the terms of the GNU Affero General Public License as #
9# published by the Free Software Foundation, either version 3 of the #
10# License, or (at your option) any later version. #
11# #
12# This program is distributed in the hope that it will be useful, #
13# but WITHOUT ANY WARRANTY; without even the implied warranty of #
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15# GNU Affero General Public License for more details. #
16# #
17# You should have received a copy of the GNU Affero General Public License #
18# along with this program. If not, see <http://www.gnu.org/licenses/>. #
19# #
20###############################################################################
21
22import account_deposit
23
024
=== 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:55:30 +0000
@@ -0,0 +1,48 @@
1# -*- coding: utf-8 -*-
2###############################################################################
3# #
4# account_check_deposit for OpenERP #
5# Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@akretion.com> #
6# Copyright (C) 2013 Akretion Chafique DELLI <chafique.delli@akretion.com> #
7# #
8# This program is free software: you can redistribute it and/or modify #
9# it under the terms of the GNU Affero General Public License as #
10# published by the Free Software Foundation, either version 3 of the #
11# License, or (at your option) any later version. #
12# #
13# This program is distributed in the hope that it will be useful, #
14# but WITHOUT ANY WARRANTY; without even the implied warranty of #
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
16# GNU Affero General Public License for more details. #
17# #
18# You should have received a copy of the GNU Affero General Public License #
19# along with this program. If not, see <http://www.gnu.org/licenses/>. #
20# #
21###############################################################################
22
23{
24 'name': 'account_check_deposit',
25 'version': '0.1',
26 'category': 'Generic Modules/Others',
27 'license': 'AGPL-3',
28 'description': """This module allows you to use check deposits.
29 With a new model : account_check_deposit you can select all
30 the checks payments and create a global deposit for the selected checks.
31 You may have to create an account for "received checks" and a
32 journal for payment by checks.""",
33 'author': 'Akretion',
34 'website': 'http://www.akretion.com/',
35 'depends': [
36 'account_accountant',
37 'report_webkit',
38 ],
39 'data': [
40 'account_deposit_view.xml',
41 'account_deposit_sequence.xml',
42 'account_type_data.xml',
43 'security/ir.model.access.csv',
44 ],
45 'installable': True,
46 'application': True,
47 'active': False,
48}
049
=== 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:55:30 +0000
@@ -0,0 +1,245 @@
1# -*- coding: utf-8 -*-
2###############################################################################
3# #
4# account_check_deposit for OpenERP #
5# Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@akretion.com> #
6# Copyright (C) 2013 Akretion Chafique DELLI <chafique.delli@akretion.com> #
7# #
8# This program is free software: you can redistribute it and/or modify #
9# it under the terms of the GNU Affero General Public License as #
10# published by the Free Software Foundation, either version 3 of the #
11# License, or (at your option) any later version. #
12# #
13# This program is distributed in the hope that it will be useful, #
14# but WITHOUT ANY WARRANTY; without even the implied warranty of #
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
16# GNU Affero General Public License for more details. #
17# #
18# You should have received a copy of the GNU Affero General Public License #
19# along with this program. If not, see <http://www.gnu.org/licenses/>. #
20# #
21###############################################################################
22
23from openerp.osv import fields, osv, orm
24from openerp.tools.translate import _
25
26
27class account_check_deposit(orm.Model):
28 _name = "account.check.deposit"
29 _description = "Account Check Deposit"
30
31 def sum_amount(self, cr, uid, ids, name, args, context=None):
32 res = {}
33 for deposit in self.browse(cr, uid, ids, context=context):
34 total = 0
35 for line in deposit.check_payment_ids:
36 total += line.debit
37 res[deposit.id] = total
38 return res
39
40 def _is_reconcile(self, cr, uid, ids, name, args, context=None):
41 res = {}
42 for deposit in self.browse(cr, uid, ids, context=context):
43 res[deposit.id] = False
44 if deposit.move_id:
45 for line in deposit.move_id.line_id:
46 if line.debit > 0 and line.reconcile_id:
47 res[deposit.id] = True
48 return res
49
50 _columns = {
51 'name': fields.char(
52 'Name',
53 size=64,
54 required=True,
55 readonly=True,
56 states={'draft': [('readonly', '=', False)]}),
57 'check_payment_ids': fields.one2many(
58 'account.move.line',
59 'check_deposit_id',
60 'Check Payments',
61 readonly=True,
62 states={'draft': [('readonly', '=', False)]}),
63 'deposit_date': fields.date(
64 'Deposit Date',
65 readonly=True,
66 states={'draft': [('readonly', '=', False)]}),
67 'journal_id': fields.many2one(
68 'account.journal',
69 'Journal',
70 required=True,
71 readonly=True,
72 states={'draft': [('readonly', '=', False)]}),
73 'state': fields.selection([
74 ('draft', 'Draft'),
75 ('done', 'Done'),
76 ], 'Status',
77 readonly=True),
78 'move_id': fields.many2one(
79 'account.move',
80 'Journal Entry',
81 readonly=True,
82 states={'draft': [('readonly', '=', False)]}),
83 'bank_id': fields.many2one(
84 'res.partner.bank',
85 'Bank',
86 required=True,
87 readonly=True,
88 domain="[('partner_id', '=', partner_id)]",
89 states={'draft': [('readonly', '=', False)]}),
90 'line_ids': fields.related(
91 'move_id',
92 'line_id',
93 relation='account.move.line',
94 type='one2many',
95 string='Lines',
96 readonly=True),
97 'partner_id': fields.related(
98 'company_id',
99 'partner_id',
100 type="many2one",
101 relation="res.partner",
102 string="Partner",
103 readonly=True),
104 'company_id': fields.many2one(
105 'res.company',
106 'Company',
107 required=True,
108 change_default=True,
109 readonly=True,
110 states={'draft': [('readonly', '=', False)]}),
111 'total_amount': fields.function(
112 sum_amount,
113 string="total amount",
114 type="float"),
115 'is_reconcile': fields.function(
116 _is_reconcile,
117 string="Reconcile",
118 type="boolean"),
119 }
120
121 _defaults = {
122 'name': lambda self, cr, uid, context: '/',
123 'deposit_date': fields.date.context_today,
124 'state': 'draft',
125 'company_id': lambda self, cr, uid, c: self.pool.get('res.company').\
126 _company_default_get(cr, uid, 'account.check.deposit', context=c),
127 }
128
129 def unlink(self, cr, uid, ids, context=None):
130 for deposit in self.browse(cr, uid, ids, context=context):
131 if deposit.state == 'done':
132 raise osv.except_osv(_('User Error!'),
133 _('You cannot delete a validad deposit, cancel it before'))
134 return super(account_check_deposit, self).unlink(cr, uid, ids, context=context)
135
136 def cancel(self, cr, uid, ids, context=None):
137 for deposit in self.browse(cr, uid, ids, context=context):
138 if not deposit.journal_id.update_posted:
139 raise osv.except_osv(
140 _('Error!'),
141 _('You cannot modify a posted entry of this journal.\n'
142 'First you should set the journal to allow cancelling '
143 'entries.'))
144 for line in deposit.check_payment_ids:
145 if line.reconcile_id:
146 line.reconcile_id.unlink()
147 if deposit.move_id:
148 deposit.move_id.button_cancel()
149 deposit.move_id.unlink()
150 deposit.write({'state': 'draft'})
151 return True
152
153 def create(self, cr, uid, vals, context=None):
154 if vals.get('name', '/') == '/':
155 vals['name'] = self.pool.get('ir.sequence').\
156 get(cr, uid, 'account.check.deposit')
157 return super(account_check_deposit, self).\
158 create(cr, uid, vals, context=context)
159
160 def _prepare_account_move_vals(self, cr, uid, deposit, context=None):
161 date = deposit.deposit_date
162 move_vals = {
163 'journal_id': deposit.journal_id.id,
164 'date': date,
165 }
166 period_obj = self.pool['account.period']
167 period_ids = period_obj.find(cr, uid, dt=date, context=context)
168 if period_ids:
169 move_vals['period_id'] = period_ids[0]
170 sum_move_line = self._prepare_sum_move_line_vals(
171 cr, uid, deposit, move_vals, context=context)
172 move_lines = [[0, 0, sum_move_line]]
173
174 for line in deposit.check_payment_ids:
175 move_line = self._prepare_move_line_vals(
176 cr, uid, line, move_vals, context=context)
177 move_lines.append([0, 0, move_line])
178
179 move_vals.update({'line_id': move_lines})
180 return move_vals
181
182 def _prepare_move_line_vals(self, cr, uid, line, move_vals, context=None):
183 return {
184 'name': line.ref,
185 'credit': line.debit,
186 'account_id': line.account_id.id,
187 'partner_id': line.partner_id.id,
188 'check_line_id': line.id,
189 }
190
191 def _prepare_sum_move_line_vals(self, cr, uid, deposit, move_vals, context=None):
192 debit = 0.0
193 for line in deposit.check_payment_ids:
194 debit += line.debit
195 return {
196 'name': deposit.name,
197 'debit': debit,
198 'ref': deposit.name,
199 }
200
201 def _reconcile_checks(self, cr, uid, move_id, context=None):
202 move_line_obj = self.pool['account.move.line']
203 move_obj = self.pool['account.move']
204 move = move_obj.browse(cr, uid, move_id, context=context)
205 for line in move.line_id:
206 if line.check_line_id:
207 move_line_obj.reconcile(cr, uid, [
208 line.id,
209 line.check_line_id.id,
210 ], context=context)
211 return True
212
213 def onchange_company_id(self, cr, uid, ids, company_id, context=None):
214 vals = {}
215 if company_id:
216 company = self.pool.get('res.company').\
217 browse(cr, uid, company_id, context=context)
218 vals['partner_id'] = company.partner_id.id
219 return {'value': vals}
220
221 def validate_deposit(self, cr, uid, ids, context=None):
222 move_obj = self.pool.get('account.move')
223 if context is None:
224 context = {}
225 for deposit in self.browse(cr, uid, ids, context=context):
226 context['journal_id'] = deposit.journal_id.id
227 move_vals = self._prepare_account_move_vals(cr, uid, deposit, context=context)
228 move_id = move_obj.create(cr, uid, move_vals, context=context)
229 move_obj.post(cr, uid, [move_id], context=context)
230 self._reconcile_checks(cr, uid, move_id, context=context)
231 deposit.write({'state': 'done', 'move_id': move_id})
232 return True
233
234
235class account_move_line(orm.Model):
236 _inherit = "account.move.line"
237
238 _columns = {
239 'check_deposit_id': fields.many2one(
240 'account.check.deposit',
241 'Check Deposit'),
242 'check_line_id': fields.many2one(
243 'account.move.line',
244 'Check Receive Move line'),
245 }
0246
=== 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:55:30 +0000
@@ -0,0 +1,26 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 account_check_deposit for OpenERP
4 Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@akretion.com>
5 The licence is in the file __openerp__.py
6-->
7
8<openerp>
9 <data noupdate="1">
10
11 <!-- Sequences for account.check.deposit -->
12 <record id="seq_type_account_check_deposit" model="ir.sequence.type">
13 <field name="name">Account Check Deposit</field>
14 <field name="code">account.check.deposit</field>
15 </record>
16
17 <record id="seq_account_check_deposit" model="ir.sequence">
18 <field name="name">Account Check Deposit</field>
19 <field name="code">account.check.deposit</field>
20 <field name="prefix">DEP</field>
21 <field name="padding">3</field>
22 <field name="company_id" eval="False"/>
23 </record>
24
25 </data>
26</openerp>
027
=== 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:55:30 +0000
@@ -0,0 +1,131 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 account_check_deposit for OpenERP
4 Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@akretion.com>
5 Copyright (C) 2013 Akretion Chafique DELLI <chafique.delli@akretion.com>
6 The licence is in the file __openerp__.py
7-->
8
9<openerp>
10 <data>
11 <report
12 auto="False"
13 file="account_check_deposit/report/check_deposit.mako"
14 id="check_deposit_webkit"
15 model="account.check.deposit"
16 name="check.deposit.webkit"
17 report_type="webkit"
18 string="Print Checks Deposit"/>
19
20 <!-- INHERITED VIEW FOR THE OBJECT : account_check_deposit -->
21
22 <record id="account_check_deposit_view_form" model="ir.ui.view">
23 <field name="name">account_check_deposit.account_check_deposit.view_form</field>
24 <field name="model">account.check.deposit</field>
25 <field name="type">form</field>
26 <field name="arch" type="xml">
27 <form string="Checks Deposit" version="7.0">
28 <header>
29 <button name="validate_deposit" states="draft"
30 string="Validate Deposit"
31 type="object" class="oe_highlight"/>
32 <button name="cancel" states="done"
33 string="Cancel" type="object" />
34 <field name="state" widget="statusbar"
35 statusbar_visible="draft,done"
36 statusbar_colors='{"draft":"blue"}'/>
37 </header>
38 <sheet>
39 <h1>
40 <label string="Deposit N°" />
41 <field name="name" class="oe_inline" />
42 </h1>
43 <group name="deposit_fields">
44 <field name="deposit_date" />
45 <field name="journal_id" />
46 <field name="move_id" />
47 <field name="company_id"
48 on_change="onchange_company_id(company_id, context)"/>
49 <field name="partner_id" invisible="1"/>
50 <field name="bank_id"/>
51 </group>
52 <notebook colspan="4">
53 <page string="Check Payments">
54 <field name="check_payment_ids" nolabel="1"
55 colspan="4" widget="many2many"
56 domain="[('reconcile_id','=',False),
57 ('account_id.user_type.code','=','received_check')]">
58 <tree string="Check Payment">
59 <field name="journal_id" />
60 <field name="period_id" />
61 <field name="date"/>
62 <field name="name"/>
63 <field name="ref"/>
64 <field name="partner_id" />
65 <field name="account_id" />
66 <field name="move_id" />
67 <field name="debit" sum="Total Debit"/>
68 <field name="credit" sum="Total Credit"/>
69 <field name="reconcile"/>
70 </tree>
71 </field>
72 </page>
73 <page string="Move Line">
74 <field name="line_ids" nolabel="1"/>
75 </page>
76 </notebook>
77 </sheet>
78 </form>
79 </field>
80 </record>
81
82 <record id="account_check_deposit_view_tree" model="ir.ui.view">
83 <field name="name">account_check_deposit.account_check_deposit.view_tree</field>
84 <field name="model">account.check.deposit</field>
85 <field name="type">tree</field>
86 <field name="arch" type="xml">
87 <tree string="Checks Deposit">
88 <field name="name"/>
89 <field name="deposit_date"/>
90 <field name="state"/>
91 <field name="move_id"/>
92 <field name="total_amount"/>
93 <field name="is_reconcile"/>
94 </tree>
95 </field>
96 </record>
97
98 <record id="view_check_deposit_search" model="ir.ui.view">
99 <field name="name">account.check.deposit.search</field>
100 <field name="model">account.check.deposit</field>
101 <field name="arch" type="xml">
102 <search string="Checks Deposit Search">
103 <field name="name" string="Checks Deposit"/>
104 <field name="deposit_date" string="Date"/>
105 <field name="state"/>
106 <field name="move_id"/>
107 <group expand="0" string="Group By...">
108 </group>
109 </search>
110 </field>
111 </record>
112
113 <record id="action_check_deposit_tree" model="ir.actions.act_window">
114 <field name="name">Checks Deposit</field>
115 <field name="res_model">account.check.deposit</field>
116 <field name="view_type">form</field>
117 <field name="view_mode">tree,form,graph</field>
118 <field name="domain">[]</field>
119 <field name="context">{}</field>
120 <field name="search_view_id" ref="view_check_deposit_search"/>
121 <field name="help" type="html"></field>
122 </record>
123
124 <menuitem string="Checks Deposit"
125 action="action_check_deposit_tree"
126 id="menu_check_deposit_tree"
127 parent="account.menu_finance_bank_and_cash"
128 sequence="20"/>
129
130 </data>
131</openerp>
0132
=== 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:55:30 +0000
@@ -0,0 +1,20 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 account_check_deposit for OpenERP
4 Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.guillot@akretion.com>
5 The licence is in the file __openerp__.py
6-->
7
8<openerp>
9 <data noupdate="1">
10
11 <!-- New account.account.type -->
12
13 <record model="account.account.type" id="data_account_type_received_check">
14 <field name="name">Received Checks</field>
15 <field name="code">received_check</field>
16 <field name="close_method">none</field>
17 </record>
18
19 </data>
20</openerp>
021
=== 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:55:30 +0000
@@ -0,0 +1,236 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_check_deposit
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-02-21 10:01+0000\n"
10"PO-Revision-Date: 2013-02-21 10:01+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_check_deposit
19#: code:addons/account_check_deposit/account_deposit.py:76
20#, python-format
21msgid "You cannot modify a posted entry of this journal.\n"
22"First you should set the journal to allow cancelling entries."
23msgstr ""
24
25#. module: account_check_deposit
26#: report:addons/account_check_deposit/report/check_deposit.mako:58
27msgid "Beneficiary"
28msgstr ""
29
30#. module: account_check_deposit
31#: view:account.check.deposit:0
32msgid "Group By..."
33msgstr ""
34
35#. module: account_check_deposit
36#: model:ir.actions.report.xml,name:account_check_deposit.check_deposit_webkit
37msgid "WebKit Checks Deposit"
38msgstr ""
39
40#. module: account_check_deposit
41#: report:addons/account_check_deposit/report/check_deposit.mako:79
42msgid "Designation"
43msgstr ""
44
45#. module: account_check_deposit
46#: field:account.check.deposit,state:0
47msgid "Status"
48msgstr ""
49
50#. module: account_check_deposit
51#: report:addons/account_check_deposit/report/check_deposit.mako:78
52msgid "Description"
53msgstr ""
54
55#. module: account_check_deposit
56#: field:account.move.line,check_deposit_id:0
57msgid "Check Deposit"
58msgstr ""
59
60#. module: account_check_deposit
61#: field:account.check.deposit,company_id:0
62msgid "Company"
63msgstr ""
64
65#. module: account_check_deposit
66#: report:addons/account_check_deposit/report/check_deposit.mako:65
67msgid "RIB Key"
68msgstr ""
69
70#. module: account_check_deposit
71#: field:account.check.deposit,deposit_date:0
72#: report:addons/account_check_deposit/report/check_deposit.mako:53
73msgid "Deposit Date"
74msgstr ""
75
76#. module: account_check_deposit
77#: report:addons/account_check_deposit/report/check_deposit.mako:63
78msgid "Account to crediting"
79msgstr ""
80
81#. module: account_check_deposit
82#: report:addons/account_check_deposit/report/check_deposit.mako:76
83msgid "Payment Date"
84msgstr ""
85
86#. module: account_check_deposit
87#: view:account.check.deposit:0
88msgid "Date"
89msgstr ""
90
91#. module: account_check_deposit
92#: view:account.check.deposit:0
93msgid "Total Credit"
94msgstr ""
95
96#. module: account_check_deposit
97#: field:account.check.deposit,bank_id:0
98msgid "Bank"
99msgstr ""
100
101#. module: account_check_deposit
102#: field:account.check.deposit,name:0
103msgid "Name"
104msgstr ""
105
106#. module: account_check_deposit
107#: view:account.check.deposit:0
108msgid "Checks Deposit Search"
109msgstr ""
110
111#. module: account_check_deposit
112#: model:account.account.type,name:account_check_deposit.data_account_type_received_check
113msgid "Recieved Checks"
114msgstr ""
115
116#. module: account_check_deposit
117#: view:account.check.deposit:0
118#: report:addons/account_check_deposit/report/check_deposit.mako:49
119msgid "Deposit N°"
120msgstr ""
121
122#. module: account_check_deposit
123#: view:account.check.deposit:0
124msgid "Total Debit"
125msgstr ""
126
127#. module: account_check_deposit
128#: code:addons/account_check_deposit/account_deposit.py:76
129#, python-format
130msgid "Error!"
131msgstr ""
132
133#. module: account_check_deposit
134#: report:addons/account_check_deposit/report/check_deposit.mako:80
135msgid "Amount"
136msgstr ""
137
138#. module: account_check_deposit
139#: view:account.check.deposit:0
140#: model:ir.actions.act_window,name:account_check_deposit.action_check_deposit_tree
141#: model:ir.ui.menu,name:account_check_deposit.menu_check_deposit_tree
142msgid "Checks Deposit"
143msgstr ""
144
145#. module: account_check_deposit
146#: field:account.check.deposit,total_amount:0
147msgid "total amount"
148msgstr ""
149
150#. module: account_check_deposit
151#: field:account.check.deposit,partner_id:0
152msgid "Partner"
153msgstr ""
154
155#. module: account_check_deposit
156#: selection:account.check.deposit,state:0
157msgid "Cancelled"
158msgstr ""
159
160#. module: account_check_deposit
161#: view:account.check.deposit:0
162msgid "Validate Deposit"
163msgstr ""
164
165#. module: account_check_deposit
166#: view:account.check.deposit:0
167#: field:account.check.deposit,check_payment_ids:0
168#: report:addons/account_check_deposit/report/check_deposit.mako:70
169msgid "Check Payments"
170msgstr ""
171
172#. module: account_check_deposit
173#: report:addons/account_check_deposit/report/check_deposit.mako:41
174msgid "Deposit Slip of Checks(\\u20acuros)"
175msgstr ""
176
177#. module: account_check_deposit
178#: report:addons/account_check_deposit/report/check_deposit.mako:55
179msgid "Bank Code"
180msgstr ""
181
182#. module: account_check_deposit
183#: report:addons/account_check_deposit/report/check_deposit.mako:77
184msgid "Reference"
185msgstr ""
186
187#. module: account_check_deposit
188#: model:ir.model,name:account_check_deposit.model_account_check_deposit
189msgid "Account Check Deposit"
190msgstr ""
191
192#. module: account_check_deposit
193#: report:addons/account_check_deposit/report/check_deposit.mako:60
194msgid "Office Code"
195msgstr ""
196
197#. module: account_check_deposit
198#: view:account.check.deposit:0
199msgid "Check Payment"
200msgstr ""
201
202#. module: account_check_deposit
203#: selection:account.check.deposit,state:0
204msgid "Done"
205msgstr ""
206
207#. module: account_check_deposit
208#: view:account.check.deposit:0
209msgid "Cancel"
210msgstr ""
211
212#. module: account_check_deposit
213#: selection:account.check.deposit,state:0
214msgid "Draft"
215msgstr ""
216
217#. module: account_check_deposit
218#: report:addons/account_check_deposit/report/check_deposit.mako:99
219msgid "Total:"
220msgstr ""
221
222#. module: account_check_deposit
223#: field:account.check.deposit,move_id:0
224msgid "Journal Entry"
225msgstr ""
226
227#. module: account_check_deposit
228#: field:account.check.deposit,journal_id:0
229msgid "Journal"
230msgstr ""
231
232#. module: account_check_deposit
233#: model:ir.model,name:account_check_deposit.model_account_move_line
234msgid "Journal Items"
235msgstr ""
236
0237
=== 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:55:30 +0000
@@ -0,0 +1,236 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_check_deposit
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-02-21 10:01+0000\n"
10"PO-Revision-Date: 2013-02-21 10:01+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_check_deposit
19#: code:addons/account_check_deposit/account_deposit.py:76
20#, python-format
21msgid "You cannot modify a posted entry of this journal.\n"
22"First you should set the journal to allow cancelling entries."
23msgstr ""
24
25#. module: account_check_deposit
26#: report:addons/account_check_deposit/report/check_deposit.mako:58
27msgid "Beneficiary"
28msgstr "Bénéficiaire"
29
30#. module: account_check_deposit
31#: view:account.check.deposit:0
32msgid "Group By..."
33msgstr "Regrouper par..."
34
35#. module: account_check_deposit
36#: model:ir.actions.report.xml,name:account_check_deposit.check_deposit_webkit
37msgid "Print Checks Deposit"
38msgstr "Imprimer Remise de Chèques"
39
40#. module: account_check_deposit
41#: report:addons/account_check_deposit/report/check_deposit.mako:79
42msgid "Designation"
43msgstr "Désignation"
44
45#. module: account_check_deposit
46#: field:account.check.deposit,state:0
47msgid "Status"
48msgstr "Etat"
49
50#. module: account_check_deposit
51#: report:addons/account_check_deposit/report/check_deposit.mako:78
52msgid "Description"
53msgstr "Description"
54
55#. module: account_check_deposit
56#: field:account.move.line,check_deposit_id:0
57msgid "Check Deposit"
58msgstr "Remise de Chèque"
59
60#. module: account_check_deposit
61#: field:account.check.deposit,company_id:0
62msgid "Company"
63msgstr "Société"
64
65#. module: account_check_deposit
66#: report:addons/account_check_deposit/report/check_deposit.mako:65
67msgid "BIS Key"
68msgstr "Clé RIB"
69
70#. module: account_check_deposit
71#: field:account.check.deposit,deposit_date:0
72#: report:addons/account_check_deposit/report/check_deposit.mako:53
73msgid "Deposit Date"
74msgstr "Date du Versement"
75
76#. module: account_check_deposit
77#: report:addons/account_check_deposit/report/check_deposit.mako:63
78msgid "Account to crediting"
79msgstr "Compte à Créditer"
80
81#. module: account_check_deposit
82#: report:addons/account_check_deposit/report/check_deposit.mako:76
83msgid "Payment Date"
84msgstr "Date de Paiement"
85
86#. module: account_check_deposit
87#: view:account.check.deposit:0
88msgid "Date"
89msgstr "Date"
90
91#. module: account_check_deposit
92#: view:account.check.deposit:0
93msgid "Total Credit"
94msgstr "Crédit Total"
95
96#. module: account_check_deposit
97#: field:account.check.deposit,bank_id:0
98msgid "Bank"
99msgstr "Banque"
100
101#. module: account_check_deposit
102#: field:account.check.deposit,name:0
103msgid "Name"
104msgstr "Nom"
105
106#. module: account_check_deposit
107#: view:account.check.deposit:0
108msgid "Checks Deposit Search"
109msgstr "Rechercher une Remise de Chèques"
110
111#. module: account_check_deposit
112#: model:account.account.type,name:account_check_deposit.data_account_type_received_check
113msgid "Recieved Checks"
114msgstr "Chèques Reçus"
115
116#. module: account_check_deposit
117#: view:account.check.deposit:0
118#: report:addons/account_check_deposit/report/check_deposit.mako:49
119msgid "Deposit N°"
120msgstr "Versement N°"
121
122#. module: account_check_deposit
123#: view:account.check.deposit:0
124msgid "Total Debit"
125msgstr "Débit Total"
126
127#. module: account_check_deposit
128#: code:addons/account_check_deposit/account_deposit.py:76
129#, python-format
130msgid "Error!"
131msgstr "Erreur!"
132
133#. module: account_check_deposit
134#: report:addons/account_check_deposit/report/check_deposit.mako:80
135msgid "Amount"
136msgstr "Montant"
137
138#. module: account_check_deposit
139#: view:account.check.deposit:0
140#: model:ir.actions.act_window,name:account_check_deposit.action_check_deposit_tree
141#: model:ir.ui.menu,name:account_check_deposit.menu_check_deposit_tree
142msgid "Checks Deposit"
143msgstr "Remise de Chèques"
144
145#. module: account_check_deposit
146#: field:account.check.deposit,total_amount:0
147msgid "total amount"
148msgstr "montant total"
149
150#. module: account_check_deposit
151#: field:account.check.deposit,partner_id:0
152msgid "Partner"
153msgstr "Partenaire"
154
155#. module: account_check_deposit
156#: selection:account.check.deposit,state:0
157msgid "Cancelled"
158msgstr "Annulé"
159
160#. module: account_check_deposit
161#: view:account.check.deposit:0
162msgid "Validate Deposit"
163msgstr "Valider Versement"
164
165#. module: account_check_deposit
166#: view:account.check.deposit:0
167#: field:account.check.deposit,check_payment_ids:0
168#: report:addons/account_check_deposit/report/check_deposit.mako:70
169msgid "Check Payments"
170msgstr "Paiements par Chèque"
171
172#. module: account_check_deposit
173#: report:addons/account_check_deposit/report/check_deposit.mako:41
174msgid "Deposit Slip of Checks(Euros)"
175msgstr "Bordereau de Remise de Chèques(Euros)"
176
177#. module: account_check_deposit
178#: report:addons/account_check_deposit/report/check_deposit.mako:55
179msgid "Bank Code"
180msgstr "Code Banque"
181
182#. module: account_check_deposit
183#: report:addons/account_check_deposit/report/check_deposit.mako:77
184msgid "Reference"
185msgstr "Référence"
186
187#. module: account_check_deposit
188#: model:ir.model,name:account_check_deposit.model_account_check_deposit
189msgid "Account Check Deposit"
190msgstr "Compte Remise de Chèque"
191
192#. module: account_check_deposit
193#: report:addons/account_check_deposit/report/check_deposit.mako:60
194msgid "Office Code"
195msgstr "Code Guichet"
196
197#. module: account_check_deposit
198#: view:account.check.deposit:0
199msgid "Check Payment"
200msgstr "Paiement par Chèque"
201
202#. module: account_check_deposit
203#: selection:account.check.deposit,state:0
204msgid "Done"
205msgstr "Terminé"
206
207#. module: account_check_deposit
208#: view:account.check.deposit:0
209msgid "Cancel"
210msgstr "Annuler"
211
212#. module: account_check_deposit
213#: selection:account.check.deposit,state:0
214msgid "Draft"
215msgstr "Brouillon"
216
217#. module: account_check_deposit
218#: report:addons/account_check_deposit/report/check_deposit.mako:99
219msgid "Total:"
220msgstr "Total:"
221
222#. module: account_check_deposit
223#: field:account.check.deposit,move_id:0
224msgid "Journal Entry"
225msgstr "Pièce Comptable"
226
227#. module: account_check_deposit
228#: field:account.check.deposit,journal_id:0
229msgid "Journal"
230msgstr "Journal"
231
232#. module: account_check_deposit
233#: model:ir.model,name:account_check_deposit.model_account_move_line
234msgid "Journal Items"
235msgstr "Écritures comptables"
236
0237
=== 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:55:30 +0000
@@ -0,0 +1,6 @@
1[Dolphin]
2AdditionalInfoV2=Details_Size,Details_Date,CustomizedDetails
3Sorting=2
4Timestamp=2012,3,5,14,27,49
5Version=2
6ViewMode=1
07
=== 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:55:30 +0000
@@ -0,0 +1,275 @@
1<html>
2<head>
3 <style type="text/css">
4 ${css}
5 pre {font-family:helvetica; font-size:12;}
6 </style>
7</head>
8<body>
9 <style type="text/css">
10 table {
11 width: 100%;
12 page-break-after:auto;
13 border-collapse: collapse;
14 cellspacing="0";
15 font-size:10px;
16 }
17 td { margin: 0px; padding: 3px; border: 1px solid lightgrey; vertical-align: top; }
18 pre {font-family:helvetica; font-size:12;}
19 </style>
20
21 <%
22 def carriage_returns(text):
23 return text.replace('\n', '<br />')
24 %>
25
26 %for order in objects :
27<br>
28 <% setLang(order.partner_id.lang) %>
29 <table >
30 %if order.company_id.address_label_position == 'left':
31 <tr>
32 <td style="width:50%">
33${_("Shipping Address")}
34<hr>
35 <pre>
36${order.partner_shipping_id.address_label}
37 <pre>
38 </td>
39 <td style="width:50%">
40 %if order.partner_id.address_label != order.partner_shipping_id.address_label:
41<b>${_("Ordering Contact")}</b><br>
42${order.partner_id.address_label|carriage_returns}
43 %endif
44 %if order.partner_id.phone :
45${_("Phone")}: ${order.partner_id.phone|entity} <br>
46 %endif
47 %if order.partner_id.fax :
48${_("Fax")}: ${order.partner_id.fax|entity} <br>
49 %endif
50 %if order.partner_id.email :
51${_("Mail")}: ${order.partner_id.email|entity} <br>
52 %endif
53 %if order.partner_invoice_id.address_label != order.partner_shipping_id.address_label:
54<br>
55<b>${_("Invoice Address")}</b><br>
56${order.partner_invoice_id.address_label|carriage_returns}
57 %endif
58 %if order.partner_invoice_id.partner_id.vat :
59${_("VAT")}: ${order.partner_invoice_id.partner_id.vat|entity} <br>
60 %endif
61
62 </td>
63
64 </tr>
65 %endif
66
67 %if order.company_id.address_label_position == 'right' or not order.company_id.address_label_position:
68 <tr>
69 <td style="width:50%">
70 %if order.partner_id.address_label != order.partner_shipping_id.address_label:
71<b>${_("Ordering Contact")}</b><br>
72<hr>
73${order.partner_id.address_label|carriage_returns}
74 %endif
75 %if order.partner_id.phone :
76${_("Tel")}: ${order.partner_id.phone|entity} <br>
77 %endif
78 %if order.partner_id.fax :
79${_("Fax")}: ${order.partner_id.fax|entity} <br>
80 %endif
81 %if order.partner_id.email :
82${_("E-mail")}: ${order.partner_id.email|entity} <br>
83 %endif
84 %if order.partner_invoice_id.address_label != order.partner_shipping_id.address_label:
85<br>
86<hr>
87<b>${_("Invoice Address")}</b><br>
88<hr>
89${order.partner_invoice_id.address_label|carriage_returns}
90 %endif
91 %if order.partner_invoice_id.vat :
92${_("VAT")}: ${order.partner_invoice_id.vat|entity} <br>
93 %endif
94
95 </td>
96 <td style="width:50%">
97<b>${_("Shipping Address")}</b><br>
98<hr>
99 <pre>
100${order.partner_shipping_id.address_label}
101 <pre>
102 </td>
103 </tr>
104 %endif
105 </table>
106
107 <br />
108 <br />
109
110 %if order.state == 'draft' :
111 <span class="title">${_("Quotation N°")} ${order.name or ''|entity}</span>
112 %elif order.state == 'cancel' :
113 <span class="title">${_("Sale Order Canceled")} ${order.name or ''|entity}</span>
114 %else :
115 <span class="title">${_("Order N°")} ${order.name or ''|entity}</span>
116 %endif
117 <br/>
118 <table style="width:100%">
119 <tr>
120 %if order.client_order_ref:
121 <td>${_("Reference")}</td>
122 %endif
123 %if order.project_id:
124 <td>${_("Projekt")}</td>
125 %endif
126 <td style="text-align:center;white-space:nowrap"><b>${_("Order Date")}</b></td>
127 %if order.carrier_id:
128 <td style="text-align:center;white-space:nowrap"><b>${_("Carrier")}</b></td>
129 %endif
130 %if order.user_id:
131 <td style="text-align:center;white-space:nowrap"><b>${_("Salesman")}</b></td>
132 %endif
133 %if order.payment_term :
134 <td style="text-align:center;white-space:nowrap"><b>${_("Payment Term")}</b></td>
135 %endif
136 %if order.incoterm:
137 <td style="text-align:center;white-space:nowrap"><b>${_("Incoterm")}</b></td>
138 %endif
139
140 <td style="text-align:center;white-space:nowrap"><b>${_("Curr")}</b></td>
141 </tr>
142 <tr>
143 %if order.client_order_ref:
144 <td>
145 ${order.client_order_ref}
146 </td>
147 %endif
148 %if order.project_id:
149 <td>${order.project_id.name}</td>
150 %endif
151 %if order.date_order:
152 <td>
153 ${order.date_order or ''}</td>
154 %endif
155 %if order.carrier_id:
156 <td>
157 ${order.carrier_id.name }
158 </td>
159 %endif
160 %if order.user_id :
161 <td>${order.user_id.name or ''}</td>
162 %endif
163 %if order.payment_term :
164 <td>${order.payment_term.name}</td>
165 %endif
166 %if order.incoterm:
167 <td>${order.incoterm.name}</td>
168 %endif
169
170 <td style="white-space:nowrap">${order.pricelist_id.currency_id.name} </td>
171 </table>
172 <h1><br /></h1>
173 <table style="width:100%">
174 <thead>
175 <tr>
176%if order.print_code:
177 <td style="text-align:center;white-space:nowrap"><b>${_("Code")}</b></td>
178 <td style="text-align:center;white-space:nowrap"><b>${_("Description")}</b></td>
179%else:
180 <td style="text-align:center;white-space:nowrap"><b>${_("Description")}</b></td>
181%endif
182 <td style="text-align:center;white-space:nowrap"><b>${_("Tax")}</b></td>
183%if order.print_uom:
184 <td style="text-align:center;white-space:nowrap"><b>${_("Quantity")}</b></td><td style="text-align:center;white-space:nowrap"><b>${_("UoM")}</b></td>
185%endif
186%if order.print_uos:
187 <th style="text-align:center;white-space:nowrap">${_("UoS Qty")}</th><th style="text-align:center;white-space:nowrap;">${_("UoS")}</th>
188%endif
189%if order.print_ean:
190 <td style="text-align:center;white-space:nowrap"><b>${_("EAN")}</b></td>
191%endif
192%if order.print_packing:
193 <td style="text-align:center;white-space:nowrap"><b>${_("Pack")}</b></td>
194 <td style="text-align:center;white-space:nowrap"><b>${_("Packaging")}</b></td>
195%endif
196 <td style="text-align:center;white-space:nowrap"><b>${_("Price Unit")}</b></td>
197%if order.print_discount:
198 <td style="text-align:center;white-space:nowrap"><b>${_("Discount")}</b></td>
199%endif
200 <td style="text-align:center;white-space:nowrap"><b>${_("Sub Total")}</b></td>
201 </tr>
202 </thead>
203 %for line in order.order_line_sorted :
204 <tbody>
205 <tr>
206%if order.print_code:
207 <td>${line.product_id.default_code or ''|entity}</td>
208 <td>
209${line.product_id.name or line.name|entity}
210
211
212</td>
213%else:
214 <td>${line.name|entity}
215
216 </td
217%endif
218 <td>${ ', '.join([tax.name or '' for tax in line.tax_id]) }</td>
219%if order.print_uom:
220 <td style="white-space:nowrap;text-align:right;">${str(line.product_uom_qty).replace(',000','') or '0'}</td>
221 <td style="white-space:nowrap;text-align:left;">${line.product_uom.name or ''}</td>
222%endif
223%if order.print_uos:
224 <td style="white-space:nowrap;text-align:right;">${str(line.product_uos_qty).replace(',000','') or '0'}</td>
225 <td style="white-space:nowrap;text-align:left;">${line.product_uos.name or ''}</td>
226%endif
227%if order.print_ean:
228 <td style="white-space:nowrap;text-align:left;">${line.product_packaging.ean or line.product_id.ean13 or ''}</td>
229%endif
230%if order.print_packing:
231 <td style="white-space:normal;text-align:left;">${line.product_packaging.qty and line.product_uom_qty/line.product_packaging.qty or ''}</td>
232 <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>
233%endif
234 <td style="white-space:nowrap;text-align:right;">${line.price_unit or ''}</td>
235%if order.print_discount:
236 <td style="text-align:right;">${line.discount}</th>
237%endif
238 <td style="white-space:nowrap;text-align:right;">${line.price_subtotal or ''}</td>
239 </tr>
240 %endfor
241 </tbody>
242 <tfoot>
243 <tr>
244 <td colspan="${order.cols}" style="border-style:none"/>
245 <td style="border-top: 2px solid"><b>${_("Net Total:")}</b></td>
246 <td class="amount" style="border-top:2px solid;text-align:right;">${formatLang(order.amount_untaxed, get_digits(dp='Sale Price'))} </td>
247 </tr>
248 <tr>
249 <td colspan="${order.cols}" style="border-style:none"/>
250 <td style="border-style:none"><b>${_("Taxes:")}</b></td>
251 <td class="amount" style="text-align:right;">${formatLang(order.amount_tax, get_digits(dp='Sale Price'))} </td>
252 </tr>
253 <tr>
254 <td colspan="${order.cols}" style="border-style:none"/>
255 <td style="border-top:2px solid"><b>${_("Total:")}</b></td>
256 <td class="amount" style="border-top:2px solid;text-align:right;">${formatLang(order.amount_total, get_digits(dp='Sale Price'))} </td>
257 </tr>
258 </tfoot>
259
260 </table>
261
262%if order.note and 'note_print' not in order._columns:
263<br>
264 <pre>${order.note}</pre>
265%endif:
266%if 'note_print' in order._columns and order.note_print:
267<br>
268 <pre>${order.note_print}</pre>
269%endif:
270
271
272 <p style="page-break-after:always"></p>
273 %endfor
274</body>
275</html>
0276
=== 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:55:30 +0000
@@ -0,0 +1,32 @@
1 #-*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (c) 2010 Camptocamp SA (http://www.camptocamp.com)
5# All Right Reserved
6#
7# Author : Ferdinand Gassauer (Camptocamp Austria)
8#
9# WARNING: This program as such is intended to be used by professional
10# programmers who take the whole responsability of assessing all potential
11# consequences resulting from its eventual inadequacies and bugs
12# End users who are looking for a ready-to-use solution with commercial
13# garantees and support are strongly adviced to contract a Free Software
14# Service Company
15#
16# This program is Free Software; you can redistribute it and/or
17# modify it under the terms of the GNU General Public License
18# as published by the Free Software Foundation; either version 2
19# of the License, or (at your option) any later version.
20#
21# This program is distributed in the hope that it will be useful,
22# but WITHOUT ANY WARRANTY; without even the implied warranty of
23# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24# GNU General Public License for more details.
25#
26# You should have received a copy of the GNU General Public License
27# along with this program; if not, write to the Free Software
28# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29#
30##############################################################################
31
32import report_webkit_html
033
=== 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:55:30 +0000
@@ -0,0 +1,112 @@
1# -*- coding: utf-8 -*-
2<html>
3<head>
4 <style type="text/css">
5
6 table {
7 width: 100%;
8 page-break-after:auto;
9 border-collapse: collapse;
10 cellspacing="0";
11 font-size:14px;
12 }
13 td { margin: 0px; padding: 3px; border: 1px solid lightgrey; vertical-align: top; }
14 .valign_up1, .valign_up2, .halign, .vtrait1, .vtrait2{
15 position:absolute;
16 }
17 .valign_up1 { left:200px; font-weight: lighter; color:MediumSlateBlue ;
18 }
19 .valign_up2 { left:650px; font-weight: lighter; color:MediumSlateBlue ;
20 }
21 .halign { left:500px}
22 .vtrait1 { left:185px; font-weight: lighter; color:MediumSlateBlue ; }
23 .vtrait2 { left:630px; font-weight: lighter; color:MediumSlateBlue ; }
24 .entete_tab {text-align:center; white-space:nowrap; border-bottom:1px solid;}
25 .cellule_tab {white-space:nowrap; text-align:center;}
26 .amount {white-space:nowrap; text-align:right;}
27 .total {border-top:2px solid;}
28 .titre {text-align:center; font-family:helvetica; font-size:35px; background:lightgrey}
29
30 pre {font-family:helvetica; font-size:12px;}
31 h1 {font-family:helvetica; font-size:18px;}
32 h2 {font-family:helvetica; font-size:25px; border-bottom:1px solid}
33 h3 {font-family:helvetica; font-size:22px; color: MediumSlateBlue ; margin-bottom: auto;}
34
35
36 </style>
37</head>
38<body>
39%for deposit in objects :
40<% setLang(deposit.partner_id.lang) %>
41<b><span class="titre">${_("Deposit Slip of Checks(Euros)")}</span></b>
42<br>
43<br>
44<br>
45<br>
46<br>
47<br>
48 <h2>
49<b>${_("Deposit N°")} ${deposit.name}</b>
50 </h2>
51
52 <h1>
53<b>${_("Deposit Date")}</b><span class="vtrait1">${_("|")}</span>
54<span class="valign_up1"> ${deposit.deposit_date}</span>
55<b><span class="halign">${_("Bank Code")}</span></b>
56<span class="vtrait2">${_("|")}</span><span class="valign_up2"> ${deposit.bank_id.bank_code}</span>
57<br>
58<b>${_("Beneficiary")}</b><span class="vtrait1">${_("|")}</span>
59<span class="valign_up1"> ${company.partner_id.name}</span>
60<b><span class="halign">${_("Office Code")}</span></b>
61<span class="vtrait2">${_("|")}</span><span class="valign_up2"> ${deposit.bank_id.office}</span>
62<br>
63<b>${_("Account to crediting")}</b><span class="vtrait1">${_("|")}</span>
64<span class="valign_up1"> ${deposit.bank_id.rib_acc_number}</span>
65<b><span class="halign">${_("BIS Key")}</span></b><span class="vtrait2">${_("|")}</span>
66<span class="valign_up2"> ${deposit.bank_id.key}</span>
67 </h1>
68<br>
69 <h3>
70<b>${_("Check Payments")}</b>
71 </h3>
72
73 <table style="width:100%">
74 <thead>
75 <tr>
76<th class="entete_tab">${_("Payment Date")}</th>
77<th class="entete_tab">${_("Reference")}</th>
78<th class="entete_tab">${_("Description")}</th>
79<th class="entete_tab">${_("Designation")}</th>
80<th class="entete_tab">${_("Amount")}</th>
81 </thead>
82 </tr>
83
84<br>
85 %for move_line in deposit.check_payment_ids :
86 <tbody>
87 <tr>
88 <td class="cellule_tab">${move_line.date or ''}</td>
89 <td class="cellule_tab">${move_line.ref or ''}</td>
90 <td class="cellule_tab">${move_line.name or ''}</td>
91 <td class="cellule_tab">${move_line.partner_id.name or ''}</td>
92 <td class="amount">${move_line.debit or '0'}</td>
93 </tr>
94 </tbody>
95 %endfor
96 %endfor
97 <tfoot>
98 <tr>
99 <td colspan=4 class="amount total"><b>${_("Total:")}</b></td>
100 <td colspan=5 class="amount total"><b>${deposit.total_amount or '0'}</b></td>
101 </tr>
102 </tfoot>
103 </table>
104
105
106
107
108
109
110
111</body>
112</html>
0113
=== 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:55:30 +0000
@@ -0,0 +1,41 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
6# Copyright (C) 2010-2012 Camptocamp Austria (<http://www.camptocamp.at>)
7# Copyright (C) 2013 AKRETION (<http://www.akretion.com>)
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU Affero General Public License as
11# published by the Free Software Foundation, either version 3 of the
12# License, or (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU Affero General Public License for more details.
18#
19# You should have received a copy of the GNU Affero General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>.
21#
22##############################################################################
23
24import time
25from report import report_sxw
26
27
28class report_webkit_html(report_sxw.rml_parse):
29
30 def __init__(self, cr, uid, name, context):
31 super(report_webkit_html, self).__init__(cr, uid, name, context=context)
32 self.localcontext.update({
33 'time': time,
34 'cr': cr,
35 'uid': uid,
36 })
37
38report_sxw.report_sxw('report.account.check.deposit',
39 'account.check.deposit',
40 'addons/account_check_deposit/report/check_deposit.mako',
41 parser=report_webkit_html)
042
=== 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:55:30 +0000
@@ -0,0 +1,2 @@
1"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
2"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

Subscribers

People subscribed via source and target branches