← Back to team overview

credativ team mailing list archive

[Bug 900198] Re: [6.0] Invoice validation - It shouldn't be possible to validate an invoice with lines linked to a closed Analytic Account

 

Hello Yannick Vaucher,

I have checked your issue with stable 6. In analytic account I didn't find the state field as you have  specified in 
your attached path :

if line.account_analytic_id and line.account_analytic_id.state == 'close':
+                  str_error_lines += "\n- %s" %(line.name)
+                  errors = True 

Have you used your customized module ?

Thanks and waiting for your reply.


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

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

Title:
  [6.0] Invoice validation - It shouldn't be possible to validate an
  invoice with lines linked to a closed Analytic Account

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Hello,

  When validating an invoice, there is currently no check  if the lines
  have a non closed analytic account.

  I add here a patch to add a check and raise an error in such case. It
  will list all wrong lines in the error message.

  Regards,
  Yannick

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


References