add field line payroll in event

This commit is contained in:
wilson gomez 2021-04-23 09:25:33 -05:00
parent 6b556465a6
commit 8bbbd02942
3 changed files with 5 additions and 7 deletions

View file

@ -11,10 +11,8 @@ class Event(metaclass=PoolMeta):
'Staff Event'
__name__ = 'staff.event'
line_payroll = fields.Many2One('staff.payroll', 'Line Payroll', states={'readonly': True})
line_payroll = fields.Many2One('staff.payroll.line', 'Line Payroll', states={'readonly': True})
@classmethod
def __setup__(cls):
super(Event, cls).__setup__()
cls._error_messages.update({
})

View file

@ -19,8 +19,5 @@ this repository contains the full copyright notices and license terms. -->
expr="/form/field[@name='minimum_salary']" position="after">
<label name="template_email_confirm"/>
<field name="template_email_confirm"/>
<label name="period_payroll"/>
<field name="period_payroll"/>
</xpath>
</data>

View file

@ -5,7 +5,10 @@ this repository contains the full copyright notices and license terms. -->
<xpath
expr="/form/field[@name='company']" position="after">
<label name="department"/>
<newline />
<field name="department"/>
</xpath>
<xpath
expr="/form/field[@name='wage_types']" position="before">
<field name="employees" colspan="4"/>
</xpath>
</data>