Merge lp:~openerp-dev/openobject-addons/7.0-opw-593659-dhr into lp:openobject-addons/7.0

Proposed by Dharti Ratani(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-593659-dhr
Merge into: lp:openobject-addons/7.0
Diff against target: 96 lines (+30/-32)
2 files modified
analytic/analytic_view.xml (+30/-0)
hr_timesheet/hr_timesheet_view.xml (+0/-32)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-593659-dhr
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+169994@code.launchpad.net

Description of the change

Hello Sir,

Moved 'Cost and Revenue' button to Analytic Accounting module from Timesheet module.

Steps to reproduce:
- Create a new DB
- Install Accounting
- Settings/Accouting : tick "use analytic accounting"
- Accouting/Analytic accounting: Create an analytic account.
- The button " Cost and revenue" is not there.

To post a comment you must log in.

Unmerged revisions

9245. By Dharti Ratani(OpenERP)

[FIX]Moved Costs and revenue button to Analytic accountic module

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'analytic/analytic_view.xml'
2--- analytic/analytic_view.xml 2012-11-29 22:26:45 +0000
3+++ analytic/analytic_view.xml 2013-06-18 06:10:40 +0000
4@@ -1,6 +1,33 @@
5 <?xml version="1.0" encoding="utf-8"?>
6 <openerp>
7 <data>
8+
9+ <record model="ir.actions.act_window" id="act_analytic_cost_revenue">
10+ <field name="context">{'search_default_account_id': [active_id], 'default_account_id': active_id, 'search_default_group_date': 1, 'search_default_group_journal': 1}</field>
11+ <field name="name">Costs &amp; Revenues</field>
12+ <field name="res_model">account.analytic.line</field>
13+ <field name="src_model">account.analytic.account</field>
14+ <field name="view_mode">tree,form</field>
15+ <field name="view_type">form</field>
16+ <field name="help" type="html">
17+ <p>
18+ No activity yet on this contract.
19+ </p><p>
20+ In OpenERP, contracts and projects are implemented using
21+ analytic account. So, you can track costs and revenues to analyse
22+ your margins easily.
23+ </p><p>
24+ Costs will be created automatically when you register supplier
25+ invoices, expenses or timesheets.
26+ </p><p>
27+ Revenues will be created automatically when you create customer
28+ invoices. Customer invoices can be created based on sale orders
29+ (fixed price invoices), on timesheets (based on the work done) or
30+ on expenses (e.g. reinvoicing of travel costs).
31+ </p>
32+ </field>
33+ </record>
34+
35
36 <record id="view_account_analytic_account_form" model="ir.ui.view">
37 <field name="name">analytic.analytic.account.form</field>
38@@ -9,6 +36,9 @@
39 <form string="Analytic Account" version="7.0">
40 <sheet string="Analytic Account">
41 <div class="oe_right oe_button_box" name="buttons">
42+ <button string="Costs and Revenues"
43+ name="%(act_analytic_cost_revenue)d"
44+ type="action"/>
45 </div>
46
47 <div class="oe_title">
48
49=== modified file 'hr_timesheet/hr_timesheet_view.xml'
50--- hr_timesheet/hr_timesheet_view.xml 2012-12-14 11:14:32 +0000
51+++ hr_timesheet/hr_timesheet_view.xml 2013-06-18 06:10:40 +0000
52@@ -78,32 +78,6 @@
53 </field>
54 </record>
55
56- <record model="ir.actions.act_window" id="act_analytic_cost_revenue">
57- <field name="context">{'search_default_account_id': [active_id], 'default_account_id': active_id, 'search_default_group_date': 1, 'search_default_group_journal': 1}</field>
58- <field name="name">Costs &amp; Revenues</field>
59- <field name="res_model">account.analytic.line</field>
60- <field name="src_model">account.analytic.account</field>
61- <field name="view_mode">tree,form</field>
62- <field name="view_type">form</field>
63- <field name="help" type="html">
64- <p>
65- No activity yet on this contract.
66- </p><p>
67- In OpenERP, contracts and projects are implemented using
68- analytic account. So, you can track costs and revenues to analyse
69- your margins easily.
70- </p><p>
71- Costs will be created automatically when you register supplier
72- invoices, expenses or timesheets.
73- </p><p>
74- Revenues will be created automatically when you create customer
75- invoices. Customer invoices can be created based on sale orders
76- (fixed price invoices), on timesheets (based on the work done) or
77- on expenses (e.g. reinvoicing of travel costs).
78- </p>
79- </field>
80- </record>
81-
82
83 <record id="account_analytic_account_timesheet_form" model="ir.ui.view">
84 <field name="name">account.analytic.account.invoice.form</field>
85@@ -114,12 +88,6 @@
86 <field name="use_timesheets"/>
87 <label for="use_timesheets"/>
88 </xpath>
89- <xpath expr='//div[@name="buttons"]' position='inside'>
90- <button string="Costs and Revenues"
91- name="%(act_analytic_cost_revenue)d"
92- type="action"/>
93-
94- </xpath>
95 </field>
96 </record>
97