Commit Graph
70 Commits
Author SHA1 Message Date
Cédric Krier 509c95561b Define effort_hours on Work in project instead of project_invoice
effort_duration is defined in project module so effort_hours should also.

issue4937
2015-08-27 12:28:43 +02:00
Cédric Krier c37804c0d3 Remove boolean expression in order
issue4852
review15541002
2015-07-13 23:58:38 +02:00
Cédric Krier dc09fc5b18 Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:59:41 +02:00
Cédric Krier 08b24e7db1 Use TimeDelta field
issue4026
review11771002
2015-02-09 23:02:30 +01:00
Cédric Krier 110cbe31b7 search_global yields record instead of id
It is better for customization to yield record instead of id to prevent to
instantiate a second times the record.

issue4519
review6871002
2015-02-04 13:38:28 +01:00
Cédric Krier e215f98c31 Fix most flake8 errors
review8771002
2014-12-02 12:55:41 +01:00
Robin Baumgartner 63c42a2e6f Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 14:02:22 +01:00
Cédric Krier 944b759883 Add icon to global search
review3511002
2014-02-20 23:29:11 +01:00
Cédric Krier f3b1222a8a Make hours always visible
hours is also useful for work without timesheet as it could have children with
timesheet.

review2931004
2014-01-26 22:14:35 +01:00
Cédric Krier 662710aa53 Fix compute of initial leafs in sum_tree
Initial leafs are works that are not parent.

review2931002
2014-01-26 22:13:13 +01:00
Cédric Krier 77e07c6e02 Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:29:25 +01:00
Cédric Krier 3f3bbc1cdf classmethod set_active should use cls instead of self 2013-11-18 12:52:14 +01:00
resteve 7b4b6fcf34 Fix on_change's when work is empty
issue3488
review1651002
2013-11-12 16:33:25 +01:00
Cédric Krier 001df36766 Migration to python-sql
review1001002
2013-09-06 22:34:31 +02:00
Cédric Krier 8661b1e5d3 Don't copy timesheet and project children as link between both will be lost
review1042002
2013-09-02 11:03:48 +02:00
Cédric Krier 8099f8b140 Improve sum_tree
- Store parent to prevent random reads
- Don't use children as works is a full sub-tree

review1018002
2013-08-21 18:39:32 +02:00
Sergi Almacellas Abellana d542a3562a Add on_change functions for functional fields that depend on work
issue3267
review936002
2013-06-22 13:03:23 +02:00
resteve b40acba078 Fix typo in project work error message
issue3198
review779004
2013-04-30 09:32:18 +02:00
Cédric Krier e739a54c6c Factorise sum_tree
review705002
2013-03-22 17:46:42 +01:00
Cédric Krier ee921ed788 Remove _inherits
review670002
2013-03-20 22:50:59 +01:00
Albert Cervera i Areny 1785037b14 Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:55:41 +01:00
Cédric Krier a650479550 Fix flake8 2013-02-24 15:30:48 +01:00
Cédric Krier 013d619c62 Fix total_effort computation
issue2827
2012-10-17 16:29:21 +02:00
Cédric Krier 190881dcaa Active Record 2012-09-24 22:18:06 +02:00
Cédric Krier baf0fd369d Remove required on sequence
review348001
2012-05-14 15:36:45 +02:00
Cédric Krier c9117e3ffb Fix pep8 and pyflakes 2012-04-03 20:07:27 +02:00
Cédric Krier 3dcb119128 Remove usage of type in context in favor of domain inversion 2012-03-30 11:47:47 +02:00
Nicolas Évrard 0715edbb9b Display state on project too and add a constraint on it
review290002
2012-03-29 12:17:14 +02:00
Cédric Krier 043280bcfc Replace wrong usage of False by None
issue2512
2012-03-27 10:43:50 +02:00
Nicolas Évrard 4271874254 Integer, Numeric and Float allow None as value
NULL value is None and not False

issue2022
review237004
2012-03-23 18:38:51 +01:00
Mathias Behrle 2f32c4f2ff Change select=1|2 to select=True
issue2305
review269003
2012-03-05 10:53:05 +01:00
Nicolas Évrard 046b8b678e fix pyflake errors
review163011
2011-11-02 16:11:16 +01:00
Cédric Krier 12cdf7fb39 Make PYSON more Pythonic 2011-08-21 11:20:48 +02:00
Cédric Krier 49a6820238 Remove wrong modification of inherited company field 2011-08-03 20:06:01 +02:00
Cédric Krier ee0d3569f8 Don't use the same default dictionnary for timesheet work copy in project work copy
review49008
2011-07-20 16:52:16 +02:00
Cédric Krier 6576223eff Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:17:59 +02:00
Cédric Krier 544fa92511 Migrate sequence only if it is on timesheet and not on project
review48007
2011-07-08 21:32:09 +02:00
Udo Spallek 6dfa1ac38b Move field timesheet_lines and method copy to timesheet module.
Move field sequence from timesheet.work to project.work model. Add migration.

issue2025
review41003
2011-07-07 12:44:19 +02:00
Cédric Krier e87e5f2c9f Don't copy timesheet lines when copying work
review55001
2011-07-06 17:51:36 +02:00
Cédric Krier 376b7a9de1 Change Pool into a Singleton 2011-07-03 13:19:05 +02:00
Udo Spallek 4b5afc1330 Fix pyson for issue1913 2011-03-31 14:44:31 +02:00
Cédric Krier f5a04d5fa1 Allow to copy project work for issue1807 2011-03-29 16:09:59 +02:00
Cédric Krier 545e357bc6 Fix context usage for new Transaction 2010-08-30 07:54:00 +02:00
Cédric Krier 2e720b2b27 Update for new Transaction 2010-08-19 22:16:58 +02:00
Cédric Krier c55451f972 Fix search_parent as domain is no more a list for issue1528 2010-04-18 19:51:43 +02:00
Cédric Krier 44fb9b93ea New interface for Function/Property fields 2010-03-11 16:52:21 +01:00
Cédric Krier 313186e045 Use PySON 2010-01-20 11:02:28 +01:00
Bertrand Chenal 52ea165eb0 Use browse record methods to compute total effort 2009-06-26 11:34:39 +02:00
Cédric Krier 5ee00f3ae7 Change string domain into list 2009-06-23 18:50:38 +02:00
Cédric Krier 998f8e9b1e Don't make total_effort invisible on task because it is used in list view 2009-06-23 10:34:59 +02:00