Cédric Krier
f0954f9572
Reset progress and status on copied work
...
issue9284
review309511002
2020-05-01 00:22:07 +02:00
Cédric Krier
fe5287cf1a
Fix flake8 errors and warnings
...
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.
issue9082
review297061002
2020-03-01 12:33:53 +01:00
Cédric Krier
bf4e0065c9
Remove domain on status when type is empty
...
The 'in' clause on multiselection fields does not allow 'None' as value.
issue7746
2020-01-28 19:10:46 +01:00
Cédric Krier
83a89ab8ac
Make project status configurable
...
issue7746
review64411002
2020-01-28 11:45:54 +01:00
Sergi Almacellas Abellana
3291eaa6ae
Add missing end dot on translatable strings
...
issue8670
review252211037
2019-09-30 09:39:21 +02:00
Cédric Krier
18b20cfabb
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier
0d3d3f20b1
Improve ModelStorage.copy
...
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default
issue5576
issue7648
review72291002
2018-09-01 01:02:03 +02:00
Cédric Krier
406bc3c5b0
Remove migration before 3.0
...
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier
2ff711bf29
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier
6e231ef317
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:50 +02:00
Cédric Krier
9c741628e2
Use tree mixin
...
issue7383
review42121002
2018-05-12 00:50:28 +02:00
Cédric Krier
d9cd817dac
Order timesheet setters
...
The timesheet date must be set after the creation of timesheet work.
issue7090
review36111002
2018-04-05 19:19:36 +02:00
Cédric Krier
55a4aa40f4
Always raise exception in table handler
...
issue7175
review40161002
2018-03-15 00:45:43 +01:00
Cédric Krier
7081bc2144
Add check_recursion validation on work
...
issue6608
review37511002
2017-07-10 23:55:13 +02:00
Cédric Krier
e4a7c8ac9c
Show effort and progression also on project
...
issue6345
review30141002
2017-03-13 22:58:34 +01:00
Cédric Krier
12cb56ecc6
Remove unused TimesheetWork in copy
2017-03-09 16:05:20 +01:00
Sergi Almacellas Abellana
5a26a2820e
Prevent setting current record as parent
...
issue5941
review26781003
2016-10-13 09:43:19 +02:00
Sergi Almacellas Abellana
fca2b948ed
Use sequence_ordered
...
issue5105
2016-09-13 14:08:31 +02:00
Sergi Almacellas Abellana
4bc707f9d4
Don't check_access when deleting timesheet works from projects
...
issue5840
review21241003
2016-09-12 11:24:45 +02:00
Cédric Krier
f1fff63d30
Use origin on timesheet work and make timesheet available editable
...
issue5599
review25361002
2016-06-24 09:29:57 +02:00
Nicolas Évrard
60cb4c7d99
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:55:13 +01:00
Sergi Almacellas Abellana
5f6e8e81c5
Remove unused method search_comany
...
issue5295
From changeset 636dd8830398
review19841002
2016-02-07 11:39:30 +01:00
Cédric Krier
eba34d639a
Add digits to total_progress and round it
...
issue5096
review22591002
2015-11-10 13:03:57 +01:00
Cédric Krier
a3f98d5194
Test in copy/delete if timesheet work is filled
...
changeset 636dd8830398 removed the required on work so copy and delete must
test if the field is filled before using it.
issue5040
review23541002
2015-10-18 16:48:28 +02:00
Cédric Krier
c3e868b4af
Remove usless default method
...
issue4991
review23441002
2015-10-01 22:40:44 +02:00
Cédric Krier
c0eecaf938
Add progress of work
...
issue4954
review16591002
2015-09-24 15:46:08 +02:00
Cédric Krier
818edc5c74
Improve speed of sum_tree
...
- add a generic Function field getter: get_total
- use SQL query to construct parents dictionary
issue4972
review20401002
2015-09-17 11:18:56 +02:00
Cédric Krier
53dacc3ecd
Use sum_tree to compute duration
...
As the timesheet tree is no more the same as the project tree.
issue4970
review19461002
2015-09-17 09:29:03 +02:00
Cédric Krier
89d6c7971d
Fix wrong join in migration of Work.parent
...
issue4938
2015-09-16 17:42:08 +02:00
Cédric Krier
15733cff51
Uses own parent, name for work
...
This is to simplify the tree structure of the works.
issue4938
review17431002
2015-09-07 14:00:31 +02:00
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