On 04/11/11 04:21 -0700, vuk wrote:
> when I try to create a new subdvision record from the
> TrainingStaff_form_birth page (AFTER the country field has been set
> and using the 'Create new record' button on the right of the
> subdivision field) the Subdvision form pops up with the Name, Code,
> Type and Parent fields. When I fill the fields and click the OK button
> i get the error 'The field "Country" on "Subdvision" is required'.
> I thought that the context={'country':Eval('country') set on the
> May2One subdvision field could get the value of the country field of
> the train.TrainingStaff model but evidently it doesn't...what am i
> missing?Indeed it is a bug, country.subdivision should have a field country in the form view as it is required. Fill a bug and you can also submit a patch for it. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpKhtlh63lCi.pgp
Description: PGP signature
