Create Cases from project

I need create new cases from project module
Edit suitebrickscrm/modules/Project/metadata/subpaneldefs.php:
‘cases’ => array(
‘top_buttons’ => array(
array(‘widget_class’ => ‘SubPanelTopCreateButton’, ‘popup_module’ => ‘Cases’),
array(‘widget_class’ => ‘SubPanelTopSelectButton’, ‘popup_module’ => ‘Cases’),
),

When press New button, open windows new Case. How i can automaticaly add project in this window?

Create a relationship instead of adding custom buttons. The relationship will add a sub-panel allowing you to create/relate cases. You can do this via studio.

I create relation: Projects - One-toOne - Cases

How i can add subpanel?

By adding a one-to-many relationship between Projects -> Cases.

Relation must One-to-Many.

Thanks!