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 C2C
OERPScenario, which is subscribed to OpenERP Project Group.
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
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp