OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Can't create ManyToOne Relations to Customer entity

This topic contains 2 replies, has 3 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 1 month, 3 weeks ago.

  • Creator
    Topic
  • #38311

    andriiarkhyliuk
    Participant

    Used this instructions: https://oroinc.com/orocrm/doc/current/admin-guide/entities/create-entity-field-example#admin-guide-create-entity-fields-example
    Oro version: 3.1.3

    Steps to reproduce:
    Create Custom Entity in System > Entities > Entity Management

    Entity can be configured ad lib
    Entity name: MyEntity

    Create Field:
    Field Name: MyFieldCustomer
    Storage Type: Table Column
    Relation: Many to One

    click [save]

    Target Entity: Customer
    BiDirectional: No or Yes
    Target Field: Name

    Create Field:
    Field Name: MyFieldOrder
    Storage Type: Table Column
    Relation: Many to One

    click [save]

    Target Entity: Order
    BiDirectional: No or Yes
    Target Field: Id

    remaining configuration ad lib
    Update schema

    Now go to System > Entities > MyEntity

    Add new Entity Entry

    Outcome:
    MyFieldCustomer is missing, but I can see MyFieldOrder.

    Expected:
    Field is visible and renders like a drop down with all available customer names, as Orders id in second one dropdown.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #38387

    niceteg
    Participant

    The same Error. When I try to create a field with Relation: Many to One connected to Customer entity have the same issue. Customer choice does not appear on creating a new record in that new Entity.

    #38402
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Thank you for reporting an issue.
    Actually, the field is rendered, but it’s hidden in an HTML.
    Internal ticket id #BB-16530

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No