[6.1]Unable to enter worked_days on payslip unless in extended interface - Contract field missing

Bug #1039496 reported by Robajz.info
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP Publisher's Warranty Team

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>

Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

Hello Robajz,

I have checked your issue. It should be able to enter worked_days lines on a payslip in simplified view. it's effecting only stable_6_1 and also ,extended view is remove from trunk.So I'm assigning it to OPW team.

Thanks for report..!!!

summary: - Unable to enter worked_days on payslip unless in extended interface -
- Contract field missing
+ [6.1]Unable to enter worked_days on payslip unless in extended interface
+ - Contract field missing
Changed in openobject-addons:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.