openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14661
[Bug 1039496] [NEW] Unable to enter worked_days on payslip unless in extended interface - Contract field missing
Public bug reported:
In OpenERP 6.1, when I install the hr_payroll module, I'm not able to
enter worked_days lines on a payslip. I discovered that the Contract
field is required, but not visible in the "Simplified" interface. This
must be a usability bug as this works fine once you switch to "Extended"
interface in the settings. Then the Contract field appears and you can
choose a contract for the Worked days line and save it. While this is
easily worked around, it is highly confusing and unclear to regular
users.
Related lines in hr_payroll.py:
class hr_payslip_worked_days(osv.osv):
...
'contract_id': fields.many2one('hr.contract', 'Contract', required=True, help="The contract for which applied this input"),
The payslip form view lines:
<field name="worked_days_line_ids" colspan="4" nolabel="1">
<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" groups="base.group_extended"/>
<field name="sequence" invisible="True"/>
</tree>
<form string="Worked Day">
<group>
<field name="name" select="1"/>
<field name="code" select="1"/>
<field name="payslip_id"/>
<field name="sequence" groups="base.group_extended"/>
<field name="number_of_days"/>
<field name="number_of_hours"/>
<field name="contract_id" groups="base.group_extended"/>
</group>
</form>
</field>
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1039496
Title:
Unable to enter worked_days on payslip unless in extended interface -
Contract field missing
Status in OpenERP Addons (modules):
New
Bug description:
In OpenERP 6.1, when I install the hr_payroll module, I'm not able to
enter worked_days lines on a payslip. I discovered that the Contract
field is required, but not visible in the "Simplified" interface. This
must be a usability bug as this works fine once you switch to
"Extended" interface in the settings. Then the Contract field appears
and you can choose a contract for the Worked days line and save it.
While this is easily worked around, it is highly confusing and unclear
to regular users.
Related lines in hr_payroll.py:
class hr_payslip_worked_days(osv.osv):
...
'contract_id': fields.many2one('hr.contract', 'Contract', required=True, help="The contract for which applied this input"),
The payslip form view lines:
<field name="worked_days_line_ids" colspan="4" nolabel="1">
<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" groups="base.group_extended"/>
<field name="sequence" invisible="True"/>
</tree>
<form string="Worked Day">
<group>
<field name="name" select="1"/>
<field name="code" select="1"/>
<field name="payslip_id"/>
<field name="sequence" groups="base.group_extended"/>
<field name="number_of_days"/>
<field name="number_of_hours"/>
<field name="contract_id" groups="base.group_extended"/>
</group>
</form>
</field>
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1039496/+subscriptions
Follow ups
References