Hello everybody!!
Need your help friend to know how can i create a popup openning some specific fields of a model.
Here is what i have tried but it doesnt work.
<button name="action_view_hr_payslip_button" class="oe_stat_button"
icon="fa-money"
type="action">
</button>
<record id="view_hr_payslip_button_form" model="ir.ui.view">
<field name="name">hr.payslip.button.form</field>
<field name="model">hr.payslip</field>
<field name="arch" type="xml">
<form string="Payslip">
<field name="worked_days_line_ids">
<tree string="Worked Days" editable="bottom">
<field name="name"/>
<field name="code"/>
<field name="number_of_days" sum="Total Working Days"/>
<field name="number_of_hours"/>
<field name="contract_id" invisible="True"/>
<field name="sequence" invisible="True"/>
<field name="cnss_ok"/>
<field name="irpp_t_ok"/>
<field name="irpp_r_ok"/>
</tree>
<form string="Worked Day">
<group col="4">
<field name="name"/>
<field name="code"/>
<field name="sequence"/>
<field name="number_of_days"/>
<field name="number_of_hours"/>
<field name="contract_id"/>
</group>
</form>
</field>
</form>
</field>
</record>
<record id="action_view_hr_payslip_button" model="ir.actions.act_window">
<field name="name">Employee Payslips BUTTON</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">hr.payslip</field>
<field name="view_id" ref="view_hr_payslip_button_form"/>
<field name="target">new</field>
</record>
Thanks a lot in advance.
hey dear friend i want just open a new popup with some fields of a class. Can you help me please