(account_voucher) action_move_line_create refactoring

Bug #812540 reported by Javier Duran
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Wishlist
OpenERP R&D Addons Team 3

Bug Description

Version: 6.0
Addons:
revno: 4715
revision-id: launchpad_translations_on_behalf_of_openerp-20110718051317-5w1lj4e12edvvqv7
Module: account_voucher
arch: account_voucher.py

Hi,

I think IMHO the action_move_line_create method need refactoring, it is too long and pretty
confused, it has over 160 lines also there is a variable that doesn't follow the OpenERP Specific Guidelines
(e.g. inv when you talk about voucher). I attached a patch file where this one
becomes six smaller methods easier to understand and to use and to improve by others. I hope this can help
a little to has a better readable/maintainable code.

Regards,

http://doc.openerp.com/v6.0/contribute/15_guidelines/coding_guidelines_framework.html
http://doc.openerp.com/v6.0/contribute/15_guidelines/coding_guidelines_framework.html#call-your-fish-a-fish
http://doc.openerp.com/v6.0/contribute/15_guidelines/coding_guidelines_framework.html#keep-your-methods-short-simple-when-possible

Revision history for this message
Javier Duran (javieredm) wrote :
Revision history for this message
Javier Duran (javieredm) wrote :

A little error in patch file.

Revision history for this message
Javier Duran (javieredm) wrote :

Update patch

Revision history for this message
Cristian Salamea (ovnicraft) wrote :

Hello, you are improving it on trunk ? looks good maybe you can branch your changes and propose it to merge.

Regards,

Amit Parik (amit-parik)
summary: - [6.0](account_voucher) action_move_line_create refactoring
+ (account_voucher) action_move_line_create refactoring
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Javier Duran (javieredm) wrote :
Revision history for this message
Javier Duran (javieredm) wrote :

Update patch

Revision history for this message
Bogdan Stanciu (bstanciu) wrote :

hello!

what is the status for this patch?

thank you!

bogdan

Revision history for this message
Javier Duran (javieredm) wrote :
Changed in openobject-addons:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.