~unifield-team/unifield-server/trunk

« back to all changes in this revision

Viewing changes to bin/addons/register_accounting/account_bank_statement.py

  • Committer: jf
  • Date: 2018-07-09 09:44:53 UTC
  • mfrom: (4964.1.1 unifield-server)
  • Revision ID: jfb@tempo-consulting.fr-20180709094453-548651ea8b711elw
US-4634 [IMP] Account type for specific Treatment 'payroll': allow Employee as Third Party

lp:~julie-w/unifield-server/US-4634

Show diffs side-by-side

added added

removed removed

Lines of Context:
2983
2983
                third_type = [('hr.employee', 'Employee')]
2984
2984
                third_required = True
2985
2985
                third_selection = 'hr.employee,0'
2986
 
            elif a['type_for_register'] in ['down_payment', 'payroll']:
 
2986
            elif a['type_for_register'] == 'down_payment':
2987
2987
                third_type = [('res.partner', 'Partner')]
2988
2988
                third_required = True
2989
2989
                third_selection = 'res.partner,0'
 
2990
            elif a['type_for_register'] == 'payroll':
 
2991
                third_type = [('res.partner', 'Partner'), ('hr.employee', 'Employee')]
 
2992
                third_required = True
 
2993
                third_selection = 'res.partner,0'
2990
2994
        return {'value': {'partner_type_mandatory': third_required, 'partner_type': {'options': third_type, 'selection': third_selection}}}
2991
2995
 
2992
2996
    def onchange_partner_type(self, cr, uid, ids, partner_type=None, amount_in=None, amount_out=None, context=None):