Merge lp://staging/~openerp-dev/openobject-addons/trunk-bug-896462-mdi into lp://staging/openobject-addons

Proposed by DJ Patel (OpenERP)
Status: Needs review
Proposed branch: lp://staging/~openerp-dev/openobject-addons/trunk-bug-896462-mdi
Merge into: lp://staging/openobject-addons
Diff against target: 211 lines (+32/-73)
3 files modified
account/account_invoice.py (+8/-32)
account/wizard/account_invoice_refund.py (+3/-20)
account_anglo_saxon/invoice.py (+21/-21)
To merge this branch: bzr merge lp://staging/~openerp-dev/openobject-addons/trunk-bug-896462-mdi
Reviewer Review Type Date Requested Status
DJ Patel (OpenERP) (community) Needs Resubmitting
Mustufa Rangwala (Open ERP) (community) Needs Fixing
Moisés López - http://www.vauxoo.com (community) Approve
Raphael Collet (OpenERP) (community) Needs Information
Purnendu Singh (OpenERP) (community) Needs Fixing
qdp (OpenERP) Pending
Review via email: mp+84734@code.staging.launchpad.net

Description of the change

Hello Sir,

I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/896462 "[trunk & 6.0] [account] [wizard account.invoice.refund] Invoice refund wizard make error with other relational fields".

Thanks and Regards,

Divyesh Makwana(MDI)

To post a comment you must log in.
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

hello Divyesh,

Your patch will not work in case of multiple invoice lines because of this
9 - 'invoice_line': invoice_lines,
90 - 'tax_line': tax_lines,
91 + 'invoice_line': inv_list[0],
92 + 'tax_line': tax_list[0],

it will also crash when tax_list is a blank list e.g:[]

Thanks
Purnendu singh

review: Needs Fixing
Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) wrote :

Hello Sir,

I have improved the code as per your suggestion.

Thanks and Regards,

Divyesh Makwana(MDI)

review: Needs Resubmitting
Revision history for this message
Raphael Collet (OpenERP) (rco-openerp) wrote :

Getting rid of _refund_cleanup_lines is a good, since it is badly defined.
However, small change added by account_anglo_saxon is completely removed.
Is this correct?

review: Needs Information
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Tested done!

review: Approve
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

I think Raphael Collect point is correct, once we remove the _refund_cleanup_lines from anglo_saxon module the functionality provided by that method will be completely hide.

Please check and fix it.

Thanks,
Mustufa (mra)

review: Needs Fixing
Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) wrote :

Hello Sir,

I use copy_data() to duplicate and modify an existing record properly instead of the strange stuff done in refund().

So refund() should be based on a call to copy_data() on the invoice, and not manual steps like that.

I totally removed _refund_cleanup_lines() function from 'account' and 'account_anglo_saxon'.

In order to not hide the functionality provided by 'account_anglo_saxon' module i override the 'refund' method.

Thanks,
Divyesh

review: Needs Resubmitting
5849. By DJ Patel (OpenERP)

[FIX] account, account_anglo_saxon : Improved the code.

5850. By DJ Patel (OpenERP)

[FIX] account : Improved the code.

5851. By DJ Patel (OpenERP)

[FIX] account : Improved the code.

5852. By DJ Patel (OpenERP)

[IMP] account_anglo_saxon : Improved the code.

5853. By DJ Patel (OpenERP)

[IMP] account_anglo_saxon : Improved the code.

5854. By DJ Patel (OpenERP)

[IMP] account_anglo_saxon : Improved the code.

5855. By DJ Patel (OpenERP)

[IMP] account : Improved the code.

Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) wrote :

Now, we can totally get rid of _refund_cleanup_lines.

5856. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5857. By DJ Patel (OpenERP)

[IMP] account : Override the 'copy_data' instead of 'copy' orm method.

5858. By DJ Patel (OpenERP)

[IMP] account_anglo_saxon : Improved the code.

5859. By DJ Patel (OpenERP)

[IMP] account_anglo_saxon : Improved the code.

5860. By DJ Patel (OpenERP)

[IMP] account_anglo_saxon : Improved the code.

5861. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5862. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5863. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5864. By DJ Patel (OpenERP)

[REM] account : Removed unused object references.

5865. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5866. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5867. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5868. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5869. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5870. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5871. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5872. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5873. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5874. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5875. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5876. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5877. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5878. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5879. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5880. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5881. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5882. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

Unmerged revisions

5882. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5881. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5880. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5879. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5878. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5877. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5876. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5875. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5874. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

5873. By DJ Patel (OpenERP)

[Merge] Merge with main addons.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: