← 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

 

state is defined in analytic here :

analytic/analytic.py - line 148
'state': fields.selection([('draft','Draft'),('open','Open'), ('pending','Pending'),('cancelled', 'Cancelled'),('close','Closed'),('template', 'Template')], 'State', required=True,


account is depending on it :
account/__openerp__.py - line 46 :
"depends" : ["product", "analytic", "process","board"]

Yes, my patch is for a specific, I forgot to tell about it. You may want
to adapt it for the base invoice definition.

Thanks,
Yannick

-- 
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