← Back to team overview

openerp-india team mailing list archive

[Bug 896462] [NEW] [trunk & 6.0] [account] [wizard account.invoice.refund] Invoice refund wizard make error with other relational fields

 

Public bug reported:

1) Steps to reproduce the issue you have observed:
   Add a new many2one field to account.invoice.line model.
   Create a new invoice
   Press button refund to invoke account.invoice.refund from invoice
   Confirm operation
2) The result you observed
    Error with new field many2one.
3) The result you expected
    Create a new refund invoice
4) The platform your are using
    OpenERP-6 & OpenERP-Trunk
5) OpenERP-6 revno 4934
     OpenERP-Trunk revno 5791

This bug is result of a Hard-Code in function:
account/account_invoice.py -> class account_invoice -> def _refund_cleanup_lines
The relational fields is assing with the name of current fields (hard-code), but this not compatible with new functionallity and inherit.

I will create a proposal merge with the issue

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/896462

Title:
  [trunk & 6.0] [account] [wizard account.invoice.refund] Invoice refund
  wizard make error with other relational fields

Status in OpenERP Addons (modules):
  New

Bug description:
  1) Steps to reproduce the issue you have observed:
     Add a new many2one field to account.invoice.line model.
     Create a new invoice
     Press button refund to invoke account.invoice.refund from invoice
     Confirm operation
  2) The result you observed
      Error with new field many2one.
  3) The result you expected
      Create a new refund invoice
  4) The platform your are using
      OpenERP-6 & OpenERP-Trunk
  5) OpenERP-6 revno 4934
       OpenERP-Trunk revno 5791

  This bug is result of a Hard-Code in function:
  account/account_invoice.py -> class account_invoice -> def _refund_cleanup_lines
  The relational fields is assing with the name of current fields (hard-code), but this not compatible with new functionallity and inherit.

  I will create a proposal merge with the issue

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/896462/+subscriptions


Follow ups

References