Hi everyone. I want to make table under the <page> like order lines in sales. But now, I will add like that in payroll module. When I'm using <notebook>, my new page doesnot show. I used odoo v10. Here my code :
my .py
from openerp import models, fields, api
class PurchaseOrder(models.Model):
_inherit = 'hr.payslip'
gaji_pokok = fields.Integer(string="Gaji Pokok")
t_lembur = fields.Integer(string="Tunjangan Lembur")
Here my xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_hr_payslip_inherit_form_extended" model="ir.ui.view">
<field name="name">hr.payslip.inherit.form</field>
<field name="model">hr.payslip</field>
<field name="inherit_id" ref="hr_payroll.view_hr_payslip_form" />
<field name="arch" type="xml">
<xpath expr="//page[1]" position="after">
<form string="tes_table" colspan="4" nolabel="1">
<notebook>
<page string="Pendapatan Karyawan">
<separator string="Tes Hasil"/>
<group col="4">
<tree colspan="4" nolabel="1" string="Tunjangan Gaji">
<field name="gaji_pokok"/>
<field name="t_lembur"/>
</tree>
</group>
</page>
</notebook>
</form>
</xpath>
</field>
</record>
</data>
</openerp>
Anyone can help me please about this?