Cannot get unfetched attribute [createdBy] from detached object

Hi

I have this module and used the generated screens with the views specified below however I face this error

IllegalStateException: Cannot get unfetched attribute [createdBy] from detached object com.alerteqa.car_parts_shop.entity.Item-38979 [detached].

The problem is that I can add this to the view then another pops up which is forcing me to add non-required data to the view and slows loading times for the screen.

ItemSupplierNumber:
Item [Foreign Key]
Supplier [Text]

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
        caption="msg://editorCaption"
        focusComponent="form"
        messagesPack="com.alerteqa.car_parts_shop.web.itemsuppliernumber">
    <data>
        <instance id="itemSupplierNumberDc"
                  class="com.alerteqa.car_parts_shop.entity.ItemSupplierNumber"
                  view="itemSupplierNumber-browse-view">
            <loader/>
        </instance>
        <collection id="itemsDc" class="com.alerteqa.car_parts_shop.entity.Item"
                    view="_minimal">
            <loader>
                <query><![CDATA[select e from cps$Item e ]]></query>
            </loader>
        </collection>
    </data>
    <dialogMode height="600"
                width="800"/>
    <layout expand="editActions" spacing="true">
        <form id="form" dataContainer="itemSupplierNumberDc">
            <column width="250px">
                <lookupPickerField id="itemField" property="item" optionsContainer="itemsDc">
                    <actions>
                        <action id="lookup" type="picker_lookup"/>
                        <action id="clear" type="picker_clear"/>
                    </actions>
                </lookupPickerField>
                <textField id="supplierField" property="supplier"/>
            </column>
        </form>
        <hbox id="editActions" spacing="true">
            <button action="windowCommitAndClose"/>
            <button action="windowClose"/>
        </hbox>
    </layout>
</window>

This is the view used

<view entity="cps$ItemSupplierNumber" name="itemSupplierNumber-browse-view" extends="_local"
          systemProperties="true">
        <property name="item" view="_minimal"/>
    </view>