c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #25648
Re: [Bug 790245] Re: (account_voucher) Same name account is already present, Annoying Error
Hello Edwin.
We have 2 types of errors.
Errors that must be backported and errors that can not be done, this one is
really _must_ be because is so simple and is over the LTS version.
BTW, we have an OPW already paid, what should be the mechanism to put this
kind of errors (we publish ALL throught LP) directly on our OPW....
Best Regards.
2011/6/1 Edwin Dsouza(OpenERP) <790245@xxxxxxxxxxxxxxxxxx>
> hello,
>
> Our R&D Teams are focused on the latest OpenERP version, and this issue
> does not affect it.
> Our policy is to keep the changes applied on stable branches to a minimum,
> in order to limit the regression risks for customers that are in production.
> This means that bugs reported on Launchpad are fixed in the trunk branch
> only by default, even if they were reported against other stable versions.
> We stand of course ready to backport the change to stable releases if it
> has an impact on any customer. In this case please report it to our
> maintenance team via the OpenERP Publisher's Warranty. They will quickly
> help solve the issue and backport the fix if needed.
> Thank you for your understanding!
>
>
> ** Changed in: openobject-addons
> Status: New => Won't Fix
>
> --
> You received this bug notification because you are subscribed to the
> OpenERP Project Group.
> https://bugs.launchpad.net/bugs/790245
>
> Title:
> (account_voucher) Same name account is already present, Annoying Error
>
> Status in OpenERP Modules (addons):
> Won't Fix
>
> Bug description:
> This Exception is annoying, It was deleted in version 6, but still
> remain in version5,
>
> When account_voucher is installed you are not allowed to make editions
> to an account without at least changing a letter to the name of the
> account, not doing so will raise the forementioned exception,
>
> please, could someone, of the committers, validated this bug and take
> into account the suggestion of deleting this piece of code to avoid
> that,
>
> Thanks a lot,
>
> 121 def write(self, cr, uid, ids, vals, context=None, check=True,
> update_check=True):
> 122
> res_temp={}
> 123
> if vals.has_key('name'):
> 124
> if not vals.has_key('company_id'):
> 125
> vals['company_id']=self.browse(cr,uid,ids)[0].
> company_id.id
> 126
>
> name=self.search(cr,uid,[('name','ilike',vals['name']),('company_id','=',vals['company_id'])])
> 127
> if name:
> 128
> raise osv.except_osv('Error', 'Same Account Name is
> Already present !')
>
--
Saludos Cordiales
Nhomar G. Hernandez M.
+58-414-4110269
Skype: nhomar00
Web-Blog: http://geronimo.com.ve
Servicios IT: http://openerp.com.ve
Linux-Counter: 467724
Correos:
nhomar@xxxxxxxxxxxxxx <nhomar.hernandez@xxxxxxxxxxxxx>
nhomar@xxxxxxxxxxxxxxx
--
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/790245
Title:
(account_voucher) Same name account is already present, Annoying Error
Status in OpenERP Modules (addons):
Won't Fix
Bug description:
This Exception is annoying, It was deleted in version 6, but still
remain in version5,
When account_voucher is installed you are not allowed to make editions
to an account without at least changing a letter to the name of the
account, not doing so will raise the forementioned exception,
please, could someone, of the committers, validated this bug and take
into account the suggestion of deleting this piece of code to avoid
that,
Thanks a lot,
121 def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True):
122
res_temp={}
123
if vals.has_key('name'):
124
if not vals.has_key('company_id'):
125
vals['company_id']=self.browse(cr,uid,ids)[0].company_id.id
126
name=self.search(cr,uid,[('name','ilike',vals['name']),('company_id','=',vals['company_id'])])
127
if name:
128
raise osv.except_osv('Error', 'Same Account Name is Already present !')
References