← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 691433] Re: purchase.report view model does not work

 

Creating a PO with cost price zero is an error-prone step.
Possible ways to stop this:

1. Do not allow creation of PO if cost price of a product is zero(i.e. on_change of product_id can do this).
2. Put a check on purchase_report to filter this exceptional case.

Thanks.

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/691433

Title:
  purchase.report view model does not work

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  addons/purchase/report/purchase_report.py line 72: init

create or replace view purchase_report as (
 ...
)

This query has getting sql errors :
ERROR:  division by zero

********** Error **********

ERROR: division by zero
SQL state: 22012

I'm using fresh code ( openobject-server -r3124, openobject-addons -r4024 )





References