Commit Graph

36 Commits

Author SHA1 Message Date
Denis Ledoux c718661ba8 [FIX] hr_timesheet_sheet: default product in analytic lines
The module analytic_user_function allows to define a specific product
to use, when creating timesheet activities for a specific employee
with a specific contract

Nevertheless, the product was not set accordingly to this feature
for the first timesheet activity, because,
when initilialing the timesheet line,
the on_change_account_id, which returns
the product to use according to the user and contract, was called
without passing the user.

Besides, by default, on_change_account_id does not have a user_id parameter,
this parameter is added by the module analytic_user_function, overriding
this onchange, and adding a new user_id parameter (which is not a good pratice).

We therefore use multi_on_change_account_id, which allow to pass the user_id,
within the context
2015-02-10 11:54:55 +01:00
Martin Trigaux 9404ab4cfb [FIX] hr_timesheet_sheet: accept custom fields in timesheets
When creating hr.analytic.timesheet do not filter the list of fields to accept but set the list of fields to remove.
2014-06-26 15:31:55 +02:00
Denis Ledoux 3a6b6dd6df [FIX] hr_timesheet_sheet: save correctly if focus is in a timesheet input
on_change_unit_amount was called manually in the timesheet widget. Normally, save waits for all on_change to be applied, but in this case, as the on_change its called manually in the js, it was not the case.
The fix is to put all deferreds for which we must wait for in an array, and to wait all deferreds to be done before saving.

bzr revid: dle@openerp.com-20140115165114-nqa2ynszgocrnt52
2014-01-15 17:51:14 +01:00
Martin Trigaux c895961909 [MERGE] [FIX] hr_timesheet_sheet: compute amount field for timesheets
bzr revid: mat@openerp.com-20130613150342-hn7u14m223nv0k9q
2013-06-13 17:03:42 +02:00
Martin Trigaux fcff0fcbea [IMP] don't format 0 values
bzr revid: mat@openerp.com-20130524085534-coh7tjadajiu4bv3
2013-05-24 10:55:34 +02:00
Vidhin Mehta 41fd5d657d [IMP]Change Variable name.
bzr revid: vme@tinyerp.com-20130523124117-g6hnj394fndmookq
2013-05-23 18:11:17 +05:30
Vidhin Mehta 841accd179 [IMP]Introduce float_time concept in Timesheet Widget.
bzr revid: vme@tinyerp.com-20130523120517-y281pkgqj66atthr
2013-05-23 17:35:17 +05:30
Rifakat aa9e1d83ae [FIX] hr_timesheet_sheet: analytic items created from timesheet line have amount as blank
bzr revid: rha@tinyerp.com-20130320115238-ae1w2p6ae0mytmy8
2013-03-20 17:22:38 +05:30
niv-openerp ad46970208 [FIX] hr_timesheet_sheet: revert stupid fix in 8095.1.1 that created very obvious bug.
bzr revid: nicolas.vanhoren@openerp.com-20121217111337-uisq0ym13vhzye8b
2012-12-17 12:13:37 +01:00
RGA(OpenERP) b71f96fb7f [FIX] stop multiple rpc call of default_get on loading
bzr revid: rgaopenerp-20121122130656-up43bbo5jfzd00t4
2012-11-22 18:36:56 +05:30
niv-openerp edaa35737b [FIX] hr_timesheet_sheet: typo in javascript code
bzr revid: nicolas.vanhoren@openerp.com-20121108164053-pcs8qq98ged4hyj7
2012-11-08 17:40:53 +01:00
Fabien Meghazi a2715888c1 [IMP] jQuery deferred API changes refactoring. Changed 'then's in 'done'/'fail' and 'pipe's in 'then'
bzr revid: fme@openerp.com-20121031103148-r1slfpl2kcnajjd3
2012-10-31 11:31:48 +01:00
niv-openerp dbc1176d18 [IMP] hr_timesheet_sheet: in web part, made the analytic account clickable
bzr revid: nicolas.vanhoren@openerp.com-20121026095511-d811qw4t6fognkep
2012-10-26 11:55:11 +02:00
Fabien Pinckaers dd3e728fb6 [MERGE] + improve hr_timesheet
bzr revid: fp@tinyerp.com-20121026075715-kq910tdzhc1uul3l
2012-10-26 09:57:15 +02:00
niv-openerp a8772445c7 fixed bug
bzr revid: nicolas.vanhoren@openerp.com-20121008162224-inmlqdcj4jd96g67
2012-10-08 18:22:24 +02:00
niv-openerp 46b112f129 Not possible to add an already existing account
bzr revid: nicolas.vanhoren@openerp.com-20121008124429-j65gc8s6jb4a8u8f
2012-10-08 14:44:29 +02:00
niv-openerp ea356b175b Added possibility to add an account
bzr revid: nicolas.vanhoren@openerp.com-20121008124248-9fy5q3hk30tgqbjn
2012-10-08 14:42:48 +02:00
niv-openerp 3cd2ffe006 [IMP] added lot of stuff
bzr revid: nicolas.vanhoren@openerp.com-20121005135352-t43v2rc153ch2gvh
2012-10-05 15:53:52 +02:00
niv-openerp a21489c8c8 Added on_change
bzr revid: nicolas.vanhoren@openerp.com-20121004134858-bsjtmlpbr4v9zv4d
2012-10-04 15:48:58 +02:00
niv-openerp add8348f4b optimized a little total calculus
bzr revid: nicolas.vanhoren@openerp.com-20121002150250-6rx77po7v40f6nqn
2012-10-02 17:02:50 +02:00
niv-openerp 43322be885 Added total stuff
bzr revid: nicolas.vanhoren@openerp.com-20121002143848-1bgyz62vxn01dsvi
2012-10-02 16:38:48 +02:00
niv-openerp 2d8535e473 Added some styling
bzr revid: nicolas.vanhoren@openerp.com-20121002132547-p7fi2ra8a0tgxpbn
2012-10-02 15:25:47 +02:00
niv-openerp 5b910c668a added readonly mode
bzr revid: nicolas.vanhoren@openerp.com-20121002125055-j01ea26yf9t3uwjg
2012-10-02 14:50:55 +02:00
niv-openerp 6d4320a5a6 Fixed NaN problem
bzr revid: nicolas.vanhoren@openerp.com-20121002122140-ode98iv2ul3ynks7
2012-10-02 14:21:40 +02:00
niv-openerp 6679892393 fixed line duplication bug
bzr revid: nicolas.vanhoren@openerp.com-20121002121103-wyvshcyky324nc6r
2012-10-02 14:11:03 +02:00
niv-openerp 822f6bbe7b Made if really work
bzr revid: nicolas.vanhoren@openerp.com-20121002111537-6ksjtqt5k0b6jcq4
2012-10-02 13:15:37 +02:00
niv-openerp d5c13c1bb2 added default_get
bzr revid: nicolas.vanhoren@openerp.com-20121002095815-llip0jl1j4hno9gg
2012-10-02 11:58:15 +02:00
niv-openerp 9d8ea41d45 wip
bzr revid: nicolas.vanhoren@openerp.com-20121001151917-o095dj2m8aypm3da
2012-10-01 17:19:17 +02:00
niv-openerp 7234ef203c Added sync with o2m
bzr revid: nicolas.vanhoren@openerp.com-20121001145516-x2bidvidn0fswi4u
2012-10-01 16:55:16 +02:00
niv-openerp 5441985399 added update of values
bzr revid: nicolas.vanhoren@openerp.com-20121001144750-esdtzaqil3n18dty
2012-10-01 16:47:50 +02:00
niv-openerp 476b3e6a31 fixed race condition
bzr revid: nicolas.vanhoren@openerp.com-20121001142649-hdq5nj16j1w5iy6c
2012-10-01 16:26:49 +02:00
niv-openerp ac84e4800a now renders something
bzr revid: nicolas.vanhoren@openerp.com-20121001110948-qu7f3ancrfa73rxw
2012-10-01 13:09:48 +02:00
niv-openerp ec78cf2ca5 bunch of stuff to handle things
bzr revid: nicolas.vanhoren@openerp.com-20120928163811-u1p5wabdfk5b3jqu
2012-09-28 18:38:11 +02:00
niv-openerp 8ed3be8a1b wip
bzr revid: nicolas.vanhoren@openerp.com-20120928150815-1lm5bezg4uhj0stk
2012-09-28 17:08:15 +02:00
niv-openerp 27ce5af186 Synchronize with the o2m
bzr revid: nicolas.vanhoren@openerp.com-20120928143403-feje9sa10bqeo56r
2012-09-28 16:34:03 +02:00
niv-openerp 35277fd0b1 Added first setup
bzr revid: nicolas.vanhoren@openerp.com-20120928124538-mwndrk3n5i7tjl7a
2012-09-28 14:45:38 +02:00