Merge lp:~openerp-dev/openobject-addons/trunk-usability1_accounting-nco into lp:openobject-addons

Proposed by Nimesh Contractor(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-usability1_accounting-nco
Merge into: lp:openobject-addons
Diff against target: 75 lines (+16/-2)
4 files modified
account/account_view.xml (+9/-0)
account/res_config.py (+5/-0)
account/res_config_view.xml (+1/-1)
account_voucher/account_voucher.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-usability1_accounting-nco
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+163303@code.launchpad.net

Description of the change

Hello,

I have done following issues.
1) when we unselect allow multi-currency, values of Gain Exchange Rate Account and Loss Exchange Rate Account will become false.
2) Add group by company in journal.
3) Add filter by purchase and sale, also add group by company and Tax Application in tax.
4) Set value in breadcrumb, number instead if amount after status is posted for Sales receipt.

Thanks,
Nimesh.

To post a comment you must log in.
8703. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8704. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8705. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8706. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8707. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8708. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8709. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8710. By Amit Bhavsar (Open ERP)

[MERGE] merge with latest trunk

8711. By Amit Bhavsar (Open ERP)

[MERGE] merge with latest trunk.

8712. By Amit Bhavsar (Open ERP)

[MERGE] merge with latest trunk.

8713. By Amit Bhavsar (Open ERP)

[MERGE] merge with latest trunk.

Unmerged revisions

8713. By Amit Bhavsar (Open ERP)

[MERGE] merge with latest trunk.

8712. By Amit Bhavsar (Open ERP)

[MERGE] merge with latest trunk.

8711. By Amit Bhavsar (Open ERP)

[MERGE] merge with latest trunk.

8710. By Amit Bhavsar (Open ERP)

[MERGE] merge with latest trunk

8709. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8708. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8707. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8706. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8705. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

8704. By Nimesh Contractor(Open ERP)

[MERGE] with trunk.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_view.xml'
2--- account/account_view.xml 2013-09-12 13:20:32 +0000
3+++ account/account_view.xml 2013-11-11 06:52:04 +0000
4@@ -384,6 +384,7 @@
5 <group expand="0" string="Group By...">
6 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
7 <filter string="Type" context="{'group_by':'type'}" icon="terp-stock_symbol-selection"/>
8+ <filter string="Company" context="{'group_by':'company_id'}" icon="terp-stock_symbol-selection"/>
9 </group>
10 </search>
11 </field>
12@@ -881,6 +882,7 @@
13 <field name="price_include"/>
14 <field name="description"/>
15 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
16+ <field name="type_tax_use" invisible="1"/>
17 </tree>
18 </field>
19 </record>
20@@ -891,6 +893,13 @@
21 <search string="Search Taxes">
22 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>
23 <field name="company_id" groups="base.group_multi_company"/>
24+ <filter string="Sale" domain="[('type_tax_use','=','sale')]" />
25+ <filter string="Purchase" domain="[('type_tax_use','=','purchase')]" />
26+ <group string="Group By...">
27+ <filter string="Company" domain="[]" context="{'group_by':'company_id'}"/>
28+ <filter string="Tax Application" domain="[]" context="{'group_by':'type_tax_use'}"/>
29+ </group>
30+
31 </search>
32 </field>
33 </record>
34
35=== modified file 'account/res_config.py'
36--- account/res_config.py 2013-09-17 12:38:14 +0000
37+++ account/res_config.py 2013-11-11 06:52:04 +0000
38@@ -257,6 +257,11 @@
39 def onchange_tax_rate(self, cr, uid, ids, rate, context=None):
40 return {'value': {'purchase_tax_rate': rate or False}}
41
42+ def onchange_multi_currency(self, cr, uid, ids, group_multi_currency, context=None):
43+ if not group_multi_currency:
44+ return {'value': {'income_currency_exchange_account_id': False, 'expense_currency_exchange_account_id': False}}
45+ return {}
46+
47 def onchange_start_date(self, cr, uid, id, start_date):
48 if start_date:
49 start_date = datetime.datetime.strptime(start_date, "%Y-%m-%d")
50
51=== modified file 'account/res_config_view.xml'
52--- account/res_config_view.xml 2013-04-11 10:46:43 +0000
53+++ account/res_config_view.xml 2013-11-11 06:52:04 +0000
54@@ -122,7 +122,7 @@
55 <label for="id" string="Features"/>
56 <div>
57 <div name="group_multi_currency">
58- <field name="group_multi_currency" class="oe_inline"/>
59+ <field name="group_multi_currency" class="oe_inline" on_change="onchange_multi_currency(group_multi_currency)"/>
60 <label for="group_multi_currency"/>
61 </div>
62 <div>
63
64=== modified file 'account_voucher/account_voucher.py'
65--- account_voucher/account_voucher.py 2013-08-23 15:46:55 +0000
66+++ account_voucher/account_voucher.py 2013-11-11 06:52:04 +0000
67@@ -189,7 +189,7 @@
68 if not ids:
69 return []
70 if context is None: context = {}
71- return [(r['id'], (str("%.2f" % r['amount']) or '')) for r in self.read(cr, uid, ids, ['amount'], context, load='_classic_write')]
72+ return [(r['id'], (r['number'] or '')) for r in self.read(cr, uid, ids, ['number'], context, load='_classic_write')]
73
74 def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False):
75 mod_obj = self.pool.get('ir.model.data')

Subscribers

People subscribed via source and target branches

to all changes: