Merge lp:~sbi/account-financial-report/account-financial-report-v7bug20130410 into lp:account-financial-report/trunk

Proposed by Stéphane Bidoul (Acsone)
Status: Merged
Merged at revision: 26
Proposed branch: lp:~sbi/account-financial-report/account-financial-report-v7bug20130410
Merge into: lp:account-financial-report/trunk
Diff against target: 48 lines (+31/-7)
1 file modified
account_financial_report_webkit/account_move_line_view.xml (+31/-7)
To merge this branch: bzr merge lp:~sbi/account-financial-report/account-financial-report-v7bug20130410
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp Approve
Stefan Rijnhart (Opener) Approve
Review via email: mp+158031@code.launchpad.net

Description of the change

Fix account_financial_report_webkit for v7 compatibility with account_move_line form view:
- separator string="Internal Note" does not exist anymore in stock view
- move the last_rec_date field to the reconcilation group

To post a comment you must log in.
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

LGTM

review: Approve (code review, no test)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

The account module refers to the move line's reconciliation fields in the following view:

view_move_line_form
view_move_line_form2
view_move_form

This module only adds the field to the form. Would it be a good idea to take the opportunity to add the last_rec_date field to the other views as well in this merge proposal?

review: Needs Information
Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

view_move_line_form is covered already.
I'm not sure about the purpose view_move_line_form2?

The original author might comment on this one better than I could.

With this MP, I only intended to restore compatibility with v7.

-sbi

On Mon, Apr 29, 2013 at 10:39 AM, Stefan Rijnhart (Therp)
<email address hidden>wrote:

> Review: Needs Information
>
> The account module refers to the move line's reconciliation fields in the
> following view:
>
> view_move_line_form
> view_move_line_form2
> view_move_form
>
> This module only adds the field to the form. Would it be a good idea to
> take the opportunity to add the last_rec_date field to the other views as
> well in this merge proposal?
>
> --
>
> https://code.launchpad.net/~sbi/account-financial-report/account-financial-report-v7bug20130410/+merge/158031
> You are the owner of
> lp:~sbi/account-financial-report/account-financial-report-v7bug20130410.
>

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Yes, the change below covers 'view_move_line_form'. That leaves 'view_move_line_form2' which is only referred to in account_analytic_plans/account_analytic_plans_view.xml (but still, for completeness sake it could be covered) and 'view_move_form' which is referred to in various places.

27. By Stéphane Bidoul (Acsone)

[IMP] add last_rec_date in other forms for completeness

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

I've updated the other forms for completeness as suggested by Stefan.

BTW, in view_move_form, how can one show the form view of the move lines in web v7?

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks for adding the extra views! Hope that C2C agrees with that suggestion of mine.

As for your question, you cannot switch from tree to form view anymore in a one2many widget in OpenERP 7.

review: Approve
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Yes, we agree that's fine, thanks Stéphane and Stefan!

review: Approve
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hi,

I was about to merge revno 26 / revid. <email address hidden>
from lp:account-financial-report/trunk to lp:account-financial-report/7.0 when I noticed that the last_rec_date field is no longer displayed at all in the views in the 7.0 version.

I asked our functional guy who thinks that the field is not worth to be displayed and does not bring useful information for the users.

Do you agree or do you see a reason to keep the field in the views?

Thanks

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Hi,

The purpose of revno 26 was to fix the views for 7.0 (ie fix the display of
last_rec_date).
Why do you say it's no longer displayed?

Anyway, we don't use last_rec_date so if you believe it's not necessary,
you can drop it from the views.

-sbi

On Tue, May 7, 2013 at 10:53 AM, Guewen Baconnier @ Camptocamp <
<email address hidden>> wrote:

> Hi,
>
> I was about to merge revno 26 / revid.
> <email address hidden>
> from lp:account-financial-report/trunk to lp:account-financial-report/7.0
> when I noticed that the last_rec_date field is no longer displayed at all
> in the views in the 7.0 version.
>
> I asked our functional guy who thinks that the field is not worth to be
> displayed and does not bring useful information for the users.
>
> Do you agree or do you see a reason to keep the field in the views?
>
> Thanks
> --
>
> https://code.launchpad.net/~sbi/account-financial-report/account-financial-report-v7bug20130410/+merge/158031
> You are the owner of
> lp:~sbi/account-financial-report/account-financial-report-v7bug20130410.
>

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

No objections to removing the field from the views here.

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Ok, fine.

Stéphane, the branch lp:account-financial-report/7.0 is more recent than lp:account-financial-report/trunk and in the former this field was dropped from the views. I think that the version in the trunk branch is the 6.1 one before we migrated it to the version 7.0

Thanks!

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

By the way, I apologize for not having noticed this before.

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

No probl. I also had some doubt had some point but did not notice either.

On Tue, May 7, 2013 at 11:48 AM, Guewen Baconnier @ Camptocamp <
<email address hidden>> wrote:

> By the way, I apologize for not having noticed this before.
> --
>
> https://code.launchpad.net/~sbi/account-financial-report/account-financial-report-v7bug20130410/+merge/158031
> You are the owner of
> lp:~sbi/account-financial-report/account-financial-report-v7bug20130410.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_financial_report_webkit/account_move_line_view.xml'
2--- account_financial_report_webkit/account_move_line_view.xml 2012-04-16 16:02:14 +0000
3+++ account_financial_report_webkit/account_move_line_view.xml 2013-05-02 17:23:50 +0000
4@@ -10,13 +10,37 @@
5 <!-- modulename.view -->
6 <field name="type">form</field>
7 <field name="arch" type="xml">
8- <separator string="Internal Note" colspan="4" position="before">
9- <separator string="Misc."/>
10- <newline/>
11- <group>
12- <field name="last_rec_date" readonly="1"/>
13- </group>
14- </separator>
15+ <field name="reconcile_partial_id" position="after">
16+ <field name="last_rec_date" readonly="1"/>
17+ </field>
18+ </field>
19+ </record>
20+ <record model="ir.ui.view" id="last_rec_date_form2">
21+ <!-- must be unique in this module. -->
22+ <field name="name">last_rec_date_form2</field>
23+ <field name="model">account.move.line</field>
24+ <!--parent python entity -->
25+ <field name="inherit_id" ref="account.view_move_line_form2"/>
26+ <!-- modulename.view -->
27+ <field name="type">form</field>
28+ <field name="arch" type="xml">
29+ <field name="reconcile_partial_id" position="after">
30+ <field name="last_rec_date" readonly="1"/>
31+ </field>
32+ </field>
33+ </record>
34+ <record model="ir.ui.view" id="last_rec_date_move_form">
35+ <!-- must be unique in this module. -->
36+ <field name="name">last_rec_date_move_form</field>
37+ <field name="model">account.move</field>
38+ <!--parent python entity -->
39+ <field name="inherit_id" ref="account.view_move_form"/>
40+ <!-- modulename.view -->
41+ <field name="type">form</field>
42+ <field name="arch" type="xml">
43+ <field name="reconcile_partial_id" position="after">
44+ <field name="last_rec_date" readonly="1"/>
45+ </field>
46 </field>
47 </record>
48 </data>

Subscribers

People subscribed via source and target branches