OpenERP Addons (modules)

Merge lp:~openerp-dev/openobject-addons/trunk-kanban-views2-account-bank-tta into lp:~openerp-dev/openobject-addons/trunk-kanban-views2

Proposed by Tejas Tank on 2011-10-25
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-kanban-views2-account-bank-tta
Merge into: lp:~openerp-dev/openobject-addons/trunk-kanban-views2
Diff against target: 121 lines (+70/-2) 2 files modified
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-kanban-views2-account-bank-tta
Reviewer Review Type Date Requested Status
Tejas Tank (community) Resubmit on 2011-10-25
Ajay Patel (OpenERP) 2011-10-25 Pending
Review via email: mp+80298@code.launchpad.net

Description of the Change

Hello,

Kanban view for account bank statements.

Thanks,
Tejas - TTA

To post a comment you must log in.
5246. By Tejas Tank on 2011-10-25

kanban view cash register

Tejas Tank (tta-openerp) wrote :

Hello,

I have added kanban view for cash registers.

Thanks,
Tejas - TTA

review: Resubmit

Unmerged revisions

5246. By Tejas Tank on 2011-10-25

kanban view cash register

5245. By Tejas Tank on 2011-10-25

kanban view account bank statements

Preview Diff

1=== modified file 'account/account_bank_statement.py'
2--- account/account_bank_statement.py 2011-10-12 11:36:55 +0000
3+++ account/account_bank_statement.py 2011-10-25 10:24:58 +0000
4@@ -158,6 +158,7 @@
5 'currency': fields.function(_currency, string='Currency',
6 type='many2one', relation='res.currency'),
7 'account_id': fields.related('journal_id', 'default_debit_account_id', type='many2one', relation='account.account', string='Account used in this journal', readonly=True, help='used in statement reconciliation domain, but shouldn\'t be used elswhere.'),
8+ 'color': fields.integer('Color'),
9 }
10
11 _defaults = {
12@@ -167,6 +168,7 @@
13 'journal_id': _default_journal_id,
14 'period_id': _get_period,
15 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.bank.statement',context=c),
16+ 'color':-1,
17 }
18
19 def onchange_date(self, cr, user, ids, date, context=None):
20
21=== modified file 'account/account_view.xml'
22--- account/account_view.xml 2011-10-19 12:20:53 +0000
23+++ account/account_view.xml 2011-10-25 10:24:58 +0000
24@@ -608,6 +608,66 @@
25 </form>
26 </field>
27 </record>
28+
29+ <record model="ir.ui.view" id="account_bank_statement_kanban_view">
30+ <field name="name">account.bank.statement.supplier</field>
31+ <field name="model">account.bank.statement</field>
32+ <field name="type">kanban</field>
33+ <field name="arch" type="xml">
34+ <kanban default_group_by="state">
35+ <templates>
36+ <t t-name="kanban-box">
37+ <t t-set="color" t-value="kanban_color(record.color.raw_value )"/>
38+ <div t-att-class="color + ('')">
39+ <div class="oe_kanban_box oe_kanban_color_border">
40+ <table class="oe_kanban_table oe_kanban_box_header oe_kanban_color_bgdark oe_kanban_color_border oe_kanban_draghandle">
41+ <tr>
42+ <td class="oe_kanban_title1" align="left" valign="middle">
43+ <field name="name"/>
44+ </td>
45+ <td valign="top" width="22"></td>
46+ </tr>
47+ </table>
48+ <div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger">
49+ <div class="oe_kanban_title2">
50+ Journal : <field name="journal_id"/> <br/>
51+ </div>
52+ <div class="oe_kanban_title3">
53+ <t t-if="record.period_id.raw_value">
54+ Period : <i><field name="period_id"/></i><br/>
55+ </t>
56+ <t t-if="record.balance_start.raw_value">
57+ Starting Balanace: <i><field name="balance_start"/></i> <br/>
58+ </t>
59+ <t t-if="record.balance_end_real.raw_value">
60+ Ending Balance: <i><field name="balance_end_real"/></i> <br/>
61+ </t>
62+ <t t-if="record.company_id.raw_value">
63+ Company : <i><field name="company_id"/></i> <br/>
64+ </t>
65+ </div>
66+ </div>
67+ <div class="oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick">
68+ <div class="oe_kanban_left">
69+ <a string="Edit" icon="gtk-edit" type="edit"/>
70+ <a string="Delete" icon="gtk-close" type="delete"/>
71+ <a string="Change Color" icon="color-picker" type="color" name="color"/>
72+ </div>
73+ <div class="oe_kanban_right">
74+ <button name="button_cancel" states="confirm" string="Cancel" type="object" icon="gtk-cancel"/>
75+ <button name="button_dummy" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
76+ <button name="button_confirm_bank" states="draft" string="Confirm" type="object" icon="terp-camera_test"/>
77+ </div>
78+ <br class="oe_kanban_clear"/>
79+ </div>
80+ </div>
81+ </div>
82+ </t>
83+ </templates>
84+ </kanban>
85+ </field>
86+ </record>
87+
88
89 <record id="view_bank_statement_periodic_form" model="ir.ui.view">
90 <field name="name">account.bank.statement.reconcile.form</field>
91@@ -658,7 +718,7 @@
92 <field name="name">Bank Statements</field>
93 <field name="res_model">account.bank.statement</field>
94 <field name="view_type">form</field>
95- <field name="view_mode">tree,form,graph</field>
96+ <field name="view_mode">tree,form,graph,kanban</field>
97 <field name="domain">[('journal_id.type', '=', 'bank')]</field>
98 <field name="context">{'journal_type':'bank'}</field>
99 <field name="search_view_id" ref="view_bank_statement_search"/>
100@@ -2672,7 +2732,7 @@
101 <field name="type">ir.actions.act_window</field>
102 <field name="res_model">account.bank.statement</field>
103 <field name="view_type">form</field>
104- <field name="view_mode">tree,form,graph</field>
105+ <field name="view_mode">tree,form,graph,kanban</field>
106 <field name="view_id" ref="view_cash_statement_tree"/>
107 <field name="search_view_id" ref="view_account_bank_statement_filter"/>
108 <field name="domain">[('journal_id.type', '=', 'cash')]</field>
109@@ -2682,6 +2742,12 @@
110 <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
111 <field name="sequence" eval="1"/>
112 <field name="view_mode">tree</field>
113+ <field name="view_id" ref="account_bank_statement_kanban_view"/>
114+ <field name="act_window_id" ref="action_view_bank_statement_tree"/>
115+ </record>
116+ <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
117+ <field name="sequence" eval="1"/>
118+ <field name="view_mode">tree</field>
119 <field name="view_id" ref="view_cash_statement_tree"/>
120 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
121 </record>

Subscribers

People subscribed via source and target branches

to all changes: