diff options
| author | Thibault Delavallée <tde@openerp.com> | 2013-07-23 13:19:35 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2013-07-23 13:19:35 +0200 |
| commit | 8c054f1bd2edbc4eb588842e859ec8bb9545fb2b (patch) | |
| tree | 75e281e7f672057e88da1eee04fb4b45ccfd52c9 | |
| parent | 92a58f3757f867dfed6845ebb2ef2adb7681672a (diff) | |
| parent | 301919d9a0fdde15077995371998adee4770a027 (diff) | |
[MERGE] [IMP] hr_timesheet: sign_in / sign_out wizard form view usability improvement
[IMP] account: form view usability improvement: compute balance field visible in bank statement
Coming from an old PS task.
bzr revid: tde@openerp.com-20130723111935-22sm7ung473mcyf0
4 files changed, 15 insertions, 8 deletions
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 758385d66cb..91c6d6608fd 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -612,6 +612,13 @@ </field> </page> </notebook> + <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total"> + <div class="oe_subtotal_footer_separator oe_inline"> + <label for="balance_end" /> + </div> + <field name="balance_end" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/> + </group> + <div class="oe_clear"/> </sheet> </form> </field> diff --git a/addons/hr_timesheet/test/test_hr_timesheet.yml b/addons/hr_timesheet/test/test_hr_timesheet.yml index 59d688f183b..2a2101ff186 100644 --- a/addons/hr_timesheet/test/test_hr_timesheet.yml +++ b/addons/hr_timesheet/test/test_hr_timesheet.yml @@ -35,7 +35,7 @@ new_id = self.create(cr, uid, {'account_id': ref('account.analytic_nebula'),'analytic_amount': 7.0, 'date': (datetime.now()+timedelta(1)).strftime('%Y-%m-%d %H:%M:%S') , 'date_start': time.strftime('%Y-%m-%d %H:%M:%S'), 'info': 'Create Yaml for hr module', - 'name': 'Quentin Paolino', 'server_date': time.strftime('%Y-%m-%d %H:%M:%S'), 'state': 'action'}) + 'name': 'Quentin Paolino', 'server_date': time.strftime('%Y-%m-%d %H:%M:%S'), 'state': 'present'}) self.sign_out_result(cr, uid, [new_id], context) - My work for this project "Sednacom" is over and I stop working by clicking on "Stop Work" button of this wizard. diff --git a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py index d0cbdc78c31..87425b9cb3f 100644 --- a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py +++ b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py @@ -32,8 +32,8 @@ class hr_so_project(osv.osv_memory): 'date_start': fields.datetime('Starting Date', readonly=True), 'date': fields.datetime('Closing Date'), 'analytic_amount': fields.float('Minimum Analytic Amount'), - 'name': fields.char('Employees name', size=32, required=True, readonly=True), - 'state': fields.related('emp_id', 'state', string='Current Status', type='char', required=True, readonly=True), + 'name': fields.char('Employee\'s Name', size=32, required=True, readonly=True), + 'state': fields.related('emp_id', 'state', string='Current Status', type='selection', selection=[('present', 'Present'), ('absent', 'Absent')], required=True, readonly=True), 'server_date': fields.datetime('Current Date', required=True, readonly=True), 'emp_id': fields.many2one('hr.employee', 'Employee ID') } @@ -109,8 +109,8 @@ class hr_si_project(osv.osv_memory): _name = 'hr.sign.in.project' _description = 'Sign In By Project' _columns = { - 'name': fields.char('Employees name', size=32, readonly=True), - 'state': fields.related('emp_id', 'state', string='Current Status', type='char', required=True, readonly=True), + 'name': fields.char('Employee\'s Name', size=32, readonly=True), + 'state': fields.related('emp_id', 'state', string='Current Status', type='selection', selection=[('present', 'Present'), ('absent', 'Absent')], required=True, readonly=True), 'date': fields.datetime('Starting Date'), 'server_date': fields.datetime('Current Date', readonly=True), 'emp_id': fields.many2one('hr.employee', 'Employee ID') diff --git a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml index ea8d37ad454..c91b794b1f1 100644 --- a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml +++ b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml @@ -43,7 +43,7 @@ </record> <record id="action_hr_timesheet_sign_in" model="ir.actions.act_window"> - <field name="name">Sign in / Sign out by project</field> + <field name="name">Sign in / Sign out by Project</field> <field name="res_model">hr.sign.in.project</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> @@ -67,7 +67,7 @@ <field name="account_id" colspan="2"/> <field name="info" colspan="2"/> <field name="date"/> - <label string="(Keep empty for current_time)" colspan="2"/> + <label string="(Keep empty for current time)" colspan="2"/> <field name="analytic_amount"/> </group> @@ -82,7 +82,7 @@ </record> <record id="action_hr_timesheet_sign_out" model="ir.actions.act_window"> - <field name="name">Sign in / Sign out by project</field> + <field name="name">Sign in / Sign out by Project</field> <field name="res_model">hr.sign.out.project</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> |
