Merge lp:~openerp-dev/openobject-addons/trunk-bug-872227-bde into lp:openobject-addons

Proposed by Bharat Devnani (Open ERP)
Status: Merged
Merged at revision: 5626
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-872227-bde
Merge into: lp:openobject-addons
Diff against target: 42 lines (+4/-3)
2 files modified
sale/report/sale_report.py (+1/-0)
sale/report/sale_report_view.xml (+3/-3)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-872227-bde
Reviewer Review Type Date Requested Status
Serpent Consulting Services (community) Approve
Purnendu Singh (OpenERP) (community) Approve
Bharat Devnani (Open ERP) (community) Needs Resubmitting
tfr (Openerp) (community) Needs Fixing
qdp (OpenERP) Pending
Review via email: mp+79213@code.launchpad.net

Description of the change

Hello Sir,

I have removed uom_name field from sale/report/sale_report_view.xml and assigned value to year field in sale/report/sale_report.py

Thanks & Regards,
Devnani Bharat R.

To post a comment you must log in.
Revision history for this message
tfr (Openerp) (tfr) wrote :

uom_name remain in sale.report.tree view and also in the search view.
Either it should be remove every where or
uom_name should be add in the model definition in sale_report.py

review: Needs Fixing
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello tfr,

I have kept product_uom instead of uom_name in sale/report/sale_report_view.xml, as product_uom also gives the name uom of product.

Thanks & Regards,
Devnani Bharat R.

review: Needs Resubmitting
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) :
review: Approve
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Purnendu,

Your opinion is as clear as a crystal.

I now see that the bug was already there and has been set as a duplicate where Bharat already fixed with same patch.

Henceforth, the proposal from Bharat should be given a priority undoubtedly.

Being a little strict about the technical/programmatic/philosophic/conventional manner, there is a difference in the patches.

The proposal from Bharat shows the line "to_char(s.date_order, 'YYYY') as year" after the day, which is not the right order if you see the _columns definition. It should be before month.

We prefer to respect the sequence and logical importance of the proposal and so; Bharat's proposal should go for the merge and if you consider my request of ordering of columns,the line should be taken from my proposal.

Thanks a lot for bringing this into notice,
Serpent Consulting Services.

review: Approve
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

> Purnendu,
>
> Your opinion is as clear as a crystal.
>
> I now see that the bug was already there and has been set as a duplicate where
> Bharat already fixed with same patch.
>
> Henceforth, the proposal from Bharat should be given a priority undoubtedly.
>
> Being a little strict about the
> technical/programmatic/philosophic/conventional manner, there is a difference
> in the patches.
>
> The proposal from Bharat shows the line "to_char(s.date_order, 'YYYY') as
> year" after the day, which is not the right order if you see the _columns
> definition. It should be before month.
>
> We prefer to respect the sequence and logical importance of the proposal and
> so; Bharat's proposal should go for the merge and if you consider my request
> of ordering of columns,the line should be taken from my proposal.
>
> Thanks a lot for bringing this into notice,
> Serpent Consulting Services.

Thanks again for your contribution.

These observation are really helpful to us and as per your request i am updating the ordering of columns.

thanks and regards,
Purnendu singh

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale/report/sale_report.py'
2--- sale/report/sale_report.py 2011-10-16 01:28:00 +0000
3+++ sale/report/sale_report.py 2011-11-11 06:25:27 +0000
4@@ -76,6 +76,7 @@
5 1 as nbr,
6 s.date_order as date,
7 s.date_confirm as date_confirm,
8+ to_char(s.date_order, 'YYYY') as year,
9 to_char(s.date_order, 'MM') as month,
10 to_char(s.date_order, 'YYYY-MM-DD') as day,
11 s.partner_id as partner_id,
12
13=== modified file 'sale/report/sale_report_view.xml'
14--- sale/report/sale_report_view.xml 2011-10-16 01:28:00 +0000
15+++ sale/report/sale_report_view.xml 2011-11-11 06:25:27 +0000
16@@ -22,7 +22,7 @@
17 <field name="nbr" sum="# of Lines"/>
18 <field name="product_uom_qty" sum="# of Qty"/>
19 <field name="shipped_qty_1" sum="Shipped"/>
20- <field name="uom_name" invisible="not context.get('set_visible',False)"/>
21+ <field name="product_uom" invisible="not context.get('set_visible',False)"/>
22 <field name="price_total" sum="Total Price"/>
23 <field name="delay" sum="Commitment Delay"/>
24 <field name="state" invisible="1"/>
25@@ -98,7 +98,7 @@
26 <filter string="Partner" icon="terp-partner" name="Customer" context="{'group_by':'partner_id'}"/>
27 <separator orientation="vertical"/>
28 <filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id','set_visible':True}"/>
29- <filter string="Reference UoM" icon="terp-mrp" context="{'group_by':'uom_name'}"/>
30+ <filter string="Reference UoM" icon="terp-mrp" context="{'group_by':'product_uom'}"/>
31 <filter string="Category of Product" icon="terp-stock_symbol-selection" name="Category" context="{'group_by':'categ_id'}"/>
32 <separator orientation="vertical" groups="analytic.group_analytic_accounting"/>
33 <filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'analytic_account_id'}" groups="analytic.group_analytic_accounting"/>
34@@ -208,7 +208,7 @@
35 <field name="price_total" />
36 <field name="user_id" invisible="1"/>
37 <field name="partner_id" invisible="1"/>
38- <field name="uom_name" invisible="1"/>
39+ <field name="product_uom" invisible="1"/>
40 <field name="categ_id" invisible="1"/>
41 <field name="analytic_account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
42 <field name="state" invisible="1"/>

Subscribers

People subscribed via source and target branches

to all changes: