sale/sale.py _invoiced_search returns wrong results for "unpaid"
Bug #661653 reported by
Ferdinand
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
searching for 'unpaid' also returns canceled invoices which makes no sense
(the attached patch might be rejected, due to the fact that my chricar branch - sale.py is heavily modified)
def _invoiced_
@@ -221,7 +231,7 @@
if arg[2]:
- clause += 'AND inv.state <> \'paid\''
+ clause += 'AND inv.state not in ( \'paid\
Related branches
lp:~openerp-commiter/openobject-addons/trunk-dev-addons3-vth2
- OpenERP Core Team: Pending requested
-
Diff: 1442 lines (+802/-10)56 files modifiedaccount/i18n/account.pot (+6/-5)
account/i18n/ar.po (+15/-0)
account/i18n/bg.po (+15/-0)
account/i18n/bs.po (+15/-0)
account/i18n/ca.po (+15/-0)
account/i18n/cs.po (+15/-0)
account/i18n/da.po (+15/-0)
account/i18n/de.po (+15/-0)
account/i18n/el.po (+15/-0)
account/i18n/es.po (+15/-0)
account/i18n/es_AR.po (+15/-0)
account/i18n/es_EC.po (+15/-0)
account/i18n/et.po (+15/-0)
account/i18n/eu.po (+15/-0)
account/i18n/fa.po (+15/-0)
account/i18n/fi.po (+15/-0)
account/i18n/fr.po (+15/-0)
account/i18n/gl.po (+15/-0)
account/i18n/gu.po (+15/-0)
account/i18n/hr.po (+15/-0)
account/i18n/hu.po (+15/-0)
account/i18n/id.po (+15/-0)
account/i18n/it.po (+15/-0)
account/i18n/kab.po (+15/-0)
account/i18n/ko.po (+15/-0)
account/i18n/lt.po (+15/-0)
account/i18n/lv.po (+15/-0)
account/i18n/mn.po (+15/-0)
account/i18n/nb.po (+15/-0)
account/i18n/nl.po (+15/-0)
account/i18n/nl_BE.po (+15/-0)
account/i18n/oc.po (+15/-0)
account/i18n/pl.po (+15/-0)
account/i18n/pt.po (+15/-0)
account/i18n/pt_BR.po (+15/-0)
account/i18n/ro.po (+15/-0)
account/i18n/ru.po (+15/-0)
account/i18n/si.po (+15/-0)
account/i18n/sk.po (+15/-0)
account/i18n/sl.po (+15/-0)
account/i18n/sq.po (+15/-1)
account/i18n/sr.po (+15/-0)
account/i18n/sv.po (+15/-0)
account/i18n/ta.po (+15/-0)
account/i18n/te.po (+15/-0)
account/i18n/th.po (+15/-0)
account/i18n/tlh.po (+15/-0)
account/i18n/tr.po (+15/-0)
account/i18n/ug.po (+15/-0)
account/i18n/uk.po (+15/-0)
account/i18n/vi.po (+15/-0)
account/i18n/zh_CN.po (+15/-0)
account/i18n/zh_HK.po (+15/-0)
account/i18n/zh_TW.po (+15/-0)
account/invoice.py (+1/-1)
base_vat/base_vat.py (+0/-3)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
milestone: | none → 6.0-rc2 |
summary: |
- [V5] sale/sale.py _invoiced_search returns wrong results for "unpaid" + sale/sale.py _invoiced_search returns wrong results for "unpaid" |
Changed in openobject-addons: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
IMHO unpaid should not find sale orders with stock.picking (out) != 'done' and invoice from picking.
yes of course these are unpaid, but there is nothing to pay if not shipped and invoice are to be created from shipped pickings.