openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #03006
[Bug 904408] [NEW] Trunk : Total Injustice to the company 'name' !
Public bug reported:
Guys,
I am not sure how critical this would be, but we faced this live on an
implementation and was really a shocker.
There seems to be 2 issues, both the issues have same root!
Case 1. Try to duplicate the company record, although this should never
go as a real case I guess. System would give you an error of not null
constrain for the field 'name'. The field name is a fields.related and
can usually fail in this case.
Proposed solution : copy() should be overridden and it can manage the
rest.
Case 2. Keeping the field as related is fine, but injustice happens when
the same name(from Partner model,feeling like a rich) when goes to name
of the company, feels like filthy. In technical terms, the size of the
name for partner_id appears to be 128 chars and name for company stands
as 64 chars long. This results in "DataError: value too long for type
character varying(64)" when the name of the partner doesn't really fit
company name.
Proposed Solution : size for name field of company should be reset to
128.
Attached merges would pave the way for the solution.
Hope this helps.
Thanks,
Serpent Consulting Services.
** Affects: openobject-server
Importance: Undecided
Status: New
** Summary changed:
- Trunk : Total Injustice to the company name
+ Trunk : Total Injustice to the company 'name' !
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/904408
Title:
Trunk : Total Injustice to the company 'name' !
Status in OpenERP Server:
New
Bug description:
Guys,
I am not sure how critical this would be, but we faced this live on an
implementation and was really a shocker.
There seems to be 2 issues, both the issues have same root!
Case 1. Try to duplicate the company record, although this should
never go as a real case I guess. System would give you an error of not
null constrain for the field 'name'. The field name is a
fields.related and can usually fail in this case.
Proposed solution : copy() should be overridden and it can manage the
rest.
Case 2. Keeping the field as related is fine, but injustice happens
when the same name(from Partner model,feeling like a rich) when goes
to name of the company, feels like filthy. In technical terms, the
size of the name for partner_id appears to be 128 chars and name for
company stands as 64 chars long. This results in "DataError: value too
long for type character varying(64)" when the name of the partner
doesn't really fit company name.
Proposed Solution : size for name field of company should be reset to
128.
Attached merges would pave the way for the solution.
Hope this helps.
Thanks,
Serpent Consulting Services.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/904408/+subscriptions
Follow ups
References