Commit Graph

801 Commits

Author SHA1 Message Date
Martin Trigaux 641c25b2e6 [FIX] project: typo 2015-04-24 11:19:34 +02:00
Josse Colpaert 6dcccae568 [FIX] project: use selected unit of measure in gantt display
Hack to use working time unit in gantt view. Similar to 533399f for project.task
Fixes lp:1108913, opw 613979
2015-04-24 10:53:54 +02:00
Martin Trigaux 1219b56bcc [FIX] project: change view according to project uom
The working time unit can either be hours or days. In case of days, should
replace the references to hours in the view to days. In case of days, use float
field instead of float_time.

Using the string 'Hours' as a way to determine the unit is too weak as:
1. it does not work in other language than english
2. if the unit is renamed (*cough* 1626eca *cough*), it will fail as well

Using the object with context to compare strings in the user language.
lp:1080191, opw 595397
2015-03-31 16:01:14 +02:00
Martin Trigaux f7234f3cea [FIX] project: correctly set progress of task
When setting a task as done, the state is done and the progress written to 100%.
If this task is reopened, the progress was not resetted as the stage is changed
but not the state (still done).
Partially backport behaviour of 8.0 (8fbfc997) by using the fold attribute
instead of the state to reset the progress.
opw 597688
2015-03-31 14:12:14 +02:00
odoo-tac 209ce6f48c [FIX] Fixed a typo in project.py exception message 2015-03-06 17:11:57 +01:00
Olivier Dony 4fe43d9ac6 [FIX] project,project_issue: missing indexes on stage/state/project_id/user_id
bzr revid: odo@openerp.com-20140402110700-h3ryoroibj1m92ig
2014-04-02 13:07:00 +02:00
Martin Trigaux 830e2d00a9 [MERGE] [FIX] project: function field 'doc_count' is of type integer, not int, courtesy of Yanina Aular (Vauxoo)
bzr revid: mat@openerp.com-20140328114737-bk29fqfdyabx4r65
2014-03-28 12:47:37 +01:00
Yanina Aular 204ab9f609 [PEP8]
bzr revid: yanina.aular@vauxoo.com-20140326223329-o0dlgynicv0vq0t1
2014-03-26 18:03:29 -04:30
Denis Ledoux 6d60e0ee29 [FIX] project: on project template duplication, keep original tasks stages
bzr revid: dle@openerp.com-20140325104921-x8zjx5p71l1o3uif
2014-03-25 11:49:21 +01:00
Olivier Dony 9ac5d91fdb [FIX] project.copy(): avoid preparing useless children data to copy, as they are discared in analytic.copy. Duplicating children is handled by duplicate_template().
bzr revid: odo@openerp.com-20140206172702-vxdhemegc4yoqzsv
2014-02-06 18:27:02 +01:00
Olivier Dony fab4ad5913 [FIX] project.task: simplify delegated tasks remapping after task copy + avoid write() call if not necessary
This avoids recomputing function fields if not
necessary.

bzr revid: odo@openerp.com-20140206171028-p7hpc0x9jpfnb7jv
2014-02-06 18:10:28 +01:00
Martin Trigaux 56dc173361 [FIX] _auto_init: return a value to _auto_init calls. Backport of trunk revision 8679
bzr revid: mat@openerp.com-20140107145142-zm48pcjvqp42cfjg
2014-01-07 15:51:42 +01:00
Cecile Tonglet dabb11ab88 [FIX] migrate_to_alias() of mail.alias didn't care about result value of _auto_init
bzr revid: cto@openerp.com-20140106133600-o7a2p3pr1zlvjezb
2014-01-06 14:36:00 +01:00
Xavier ALT 73dfa69e34 [FIX] project: fix task progress not correctly updated when reopening a task
bzr revid: xal@openerp.com-20131220091823-o9uvvlo6hdh4xukw
2013-12-20 10:18:23 +01:00
Xavier ALT 3f7f02d508 [FIX] project: fix error on ``schedule_tasks`` when there is no resource available on project
bzr revid: xal@openerp.com-20131219154546-xlbgqfkc34ndf8kp
2013-12-19 16:45:46 +01:00
Martin Trigaux 3a7c74ca31 [FIX] project: convert int to list for iteration write of account.analytic.account
bzr revid: mat@openerp.com-20131122165504-tmbg0ixhqed4kdkz
2013-11-22 17:55:04 +01:00
Yanina Aular 0dcc62426c [FIX] function field with wrong type int instead of integer
bzr revid: yanina.aular@vauxoo.com-20131115222717-12bplq7rnv3rorbm
2013-11-15 17:57:17 -04:30
Thibault Delavallée 9537e55894 [FIX] hr_recruitment: avoid overriding email_from and email_cc in
message_update. This behavior makes sens only in message_new when
setting initial parameter of the applicant, not when somebody sends
an email on the record.
Removed priority change when there is  a 'priority' key in msg; but
this key is not likely to be present in a parsed email.
Removed updated values change due to a mapping of values present in
the email. This code was a copy-and-paste from crm and did not have
any meaning in hr_recruitment.

Also removed unnecessary code in project, project_issue, crm_helpdesk
and crm_claim for the same reasons as for hr_recruitment.

bzr revid: tde@openerp.com-20131104092731-ixasweoy1dbllbb3
2013-11-04 10:27:31 +01:00
Martin Trigaux 56bb110c46 [FIX] project: set duplicated task in default stage (opw #589907)
bzr revid: mat@openerp.com-20130902121017-xjtnuhf9llqpy7ch
2013-09-02 14:10:17 +02:00
Martin Trigaux cf45a9fa01 [FIX] project: correct name_search for analytic accounts, use args, name, limit and context
bzr revid: mat@openerp.com-20130828141123-ws38n7353f717not
2013-08-28 16:11:23 +02:00
Olivier Dony baef4d3d92 [FIX] Force safer ondelete=restrict on the `alias_id` _inherits FK on models with a mail.alias parent
The delete-rule was initially set to `cascade` in revision
6897.16.13 revid:odo@openerp.com-20120705141706-5gm5mmqode3bvkuc
because the ORM would not allow anything else for the FK of
an _inherits relationship.
This constraint was later lifted in 7.0 server at revision
4681 revid:odo@openerp.com-20121212210247-emrz5rf9ewcwdggu
so we can now switch to the intended default behavior:
when deleting mail aliases we never want to cascade delete
the child records, as that could lead to unwanted deletions.
On the other hand the aliases are automatically deleted when
the record they belong to is deleted, as a kind of internal
dependency. This is the intended safe way to delete them.

There is a special case when the same alias is manually set
on multiple records, in which case you will not be able to
delete any of those records. This is an acceptable exception
and should be manually handled if ever needed, by temporarily
linking the records to delete to new dummy aliases.

bzr revid: odo@openerp.com-20130827150708-62hqk8p7twd527n0
2013-08-27 17:07:08 +02:00
Cecile Tonglet 2c2ac536ce [IMP] Use the migration function migrate_to_alias of object mail.alias on model project.project
bzr revid: cto@openerp.com-20130823122955-5bbn5ivdiqxti5py
2013-08-23 14:29:55 +02:00
Quentin (OpenERP) 962dedda51 [FIX] project: defined the write_date field in project.task so that it can be reused in date filters in base_action_rule module
bzr revid: qdp-launchpad@openerp.com-20130617133825-2rfo9z27858qalcb
2013-06-17 15:38:25 +02:00
Thibault Delavallée f95572d649 [FIX] project: removed old code that was messing with followers intorduced at revision 8435.
bzr revid: tde@openerp.com-20130626103756-kbbrp87gn2h5160h
2013-06-26 12:37:56 +02:00
Thibault Delavallée 4ee8b2836c [FIX] Fixed last commit.
bzr revid: tde@openerp.com-20130621102021-mnozkbmz11dg5k9z
2013-06-21 12:20:21 +02:00
Thibault Delavallée 67e4eff42b [CLEAN] Some code cleaning before merging.
bzr revid: tde@openerp.com-20130621093732-qc9ltxfiemmi421s
2013-06-21 11:37:32 +02:00
Thibault Delavallée 9005541f99 [FIX] crm, project.task, project.issue, hr_recruitment: fixed quick create in kanban, simplified a bit the code in the various create overrides.
bzr revid: tde@openerp.com-20130619114633-pb0rtz0kivlrabcx
2013-06-19 13:46:33 +02:00
Christophe Matthieu 9d9e3d2ef8 [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607113829-1mi6jk18c2v3jjhn
2013-06-07 13:38:29 +02:00
nicolas.bessi@camptocamp.com c3f7fbbf1f [FIX] project name search if aa id != project id
lp bug: https://launchpad.net/bugs/1186146 fixed

bzr revid: nicolas.bessi@camptocamp.com-20130531073631-dthwxiyp8mnmtkfr
2013-05-31 09:36:31 +02:00
Martin Trigaux d626d3cb61 [MERGE] backport saas-1 rev 8728
[FIX] mail, project, project_issue, crm_lead: fixed 'XX Created' subtype not triggered because of condition
based on state=new and not state=draft.
For tasks, issues and leads, no generic 'Document created' message is posted anymore
because of the 'XX Created' message with subtype automatically logged.
Generic creation message is logged before automatic subscription to enable
message pushing to responsibles.

bzr revid: mat@openerp.com-20130529143022-wy76srwb2nwkspe3
2013-05-29 16:30:22 +02:00
Quentin (OpenERP) b6a4e2fc5f [FIX] project: do not hide tasks from template project in the project kanban and if we open those tasks from the project template
bzr revid: qdp-launchpad@openerp.com-20130516121306-3d24o7z9y8odmvqh
2013-05-16 14:13:06 +02:00
Cedric Snauwaert 231103feeb [FIX]project: show tasks of project that are in template state when clicking on the show task button from the project.
bzr revid: csn@openerp.com-20130516101616-g4unvwc2e1dxb5dc
2013-05-16 12:16:16 +02:00
Pinakin Nayi (OpenERP) 56afde0c84 [FIX]project: if there is no any project manager and try to schedule task its give traceback
bzr revid: pna@tinyerp.com-20130429060231-epygcrs2073f23ny
2013-04-29 11:32:31 +05:30
Thibault Delavallée ef210bd489 [FIX] project: default visibility is employees only. Updated demo data by the way.
bzr revid: tde@openerp.com-20130416141145-3tsaz7u51xt80rer
2013-04-16 16:11:45 +02:00
Thibault Delavallée b6223ecb7f [FIX] [ADD] project, project_issue, portal_project, portal_project_issue: improved privacy_visibility selection of project.project; improved access rules; added tests to enforce them.
bzr revid: tde@openerp.com-20130412143719-ztjo06r900l024dm
2013-04-12 16:37:19 +02:00
Pinakin Nayi (OpenERP) b20b9aa198 [FIX]project:when try to duplicate task or project than the state of task is not set to default
bzr revid: pna@tinyerp.com-20130319060954-dhk9vgtkpnayt1cv
2013-03-19 11:39:54 +05:30
Quentin (OpenERP) 96267bdfce [FIX] project: when writing on several projects, don't erase the name of all projects with the last one's name! stupid me.
bzr revid: qdp-launchpad@openerp.com-20130306172856-35dmxn7efydr5xyf
2013-03-06 18:28:56 +01:00
Quentin (OpenERP) 7ec52bb84b [FIX] crm: at lead creation, take into account the type given in vals to find the stage_id (if not provided) + refactoring of create() of tasks, project issues and leads
bzr revid: qdp-launchpad@openerp.com-20130115100353-z35mqrwij936n54s
2013-01-15 11:03:53 +01:00
Olivier Dony ad70edb40b [FIX] mail_thread subclasses: message_new must not override the explicitly provided ``custom_values``
This was the case before, but was broken involuntarily during the
big mail refactoring for v7. The default values provided by
custom message_new methods should only be used as defaults.

bzr revid: odo@openerp.com-20130110172723-ym7mcmdllcucj0j3
2013-01-10 18:27:23 +01:00
Olivier Dony 77ebf01b1a [FIX] project.issue: incorrect params in super().message_update() call
bzr revid: odo@openerp.com-20130107111701-8tjcqla0u1x4ljcc
2013-01-07 12:17:01 +01:00
Thibault Delavallée 8da57cbd2e [IMP] crm, project, project_issue: reply_to address is now the alias of the parent section, project, project, if any.
bzr revid: tde@openerp.com-20130103170316-8n6d8u0h14dy4x48
2013-01-03 18:03:16 +01:00
Thibault Delavallée 9c6489d9a4 [FIX] crm, project, project_issue: fixed default_stage_id assignment, not overriding values in vals when writing.
bzr revid: tde@openerp.com-20130103101036-eroa3fd31dcqly8i
2013-01-03 11:10:36 +01:00
Quentin (OpenERP) 95dd819251 [FIX] project, project_issue: don't use context if you didn't check it's not equal to None... stupid me
bzr revid: qdp-launchpad@openerp.com-20121228143729-x2n47tfp50uf7se8
2012-12-28 15:37:29 +01:00
Chris Biersbach f96f20e4d3 [FIX] The default stage for issues and tasks is now correctly a draft stage of the project the issue or task belongs to.
bzr revid: cbi@openerp.com-20121228084527-ive0ope41di6bpjn
2012-12-28 09:45:27 +01:00
Thibault Delavallée e3c31cab9e [IMP] track_visibility atribute: moved onto explicit strings.
bzr revid: tde@openerp.com-20121220114730-nip8qaaajr5mqw6s
2012-12-20 12:47:30 +01:00
Thibault Delavallée fa36ac76ee [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121220091908-7qy8excmhe3ussi0
2012-12-20 10:19:08 +01:00
Thibault Delavallée 77be83ca28 [CLEAN] project, sale_stock: removed old chatter and needaction methods, not used anymore. In two words, dead code.
bzr revid: tde@openerp.com-20121219205412-0cco820gzgg5lpzx
2012-12-19 21:54:12 +01:00
Thibault Delavallée 8ab9ac2cf9 [CLEAN] Project: cleaned subtypes, removed auto following that will be added in mail_thread. Updated track_visility parameter.
bzr revid: tde@openerp.com-20121219163941-w7r4egokx9xiwxvl
2012-12-19 17:39:41 +01:00
Quentin (OpenERP) 319908f1f6 [FIX] project: modifying the type of an analytic account wasn't working
bzr revid: qdp-launchpad@openerp.com-20121219134353-bsq71cu1ayvyn2tk
2012-12-19 14:43:53 +01:00
Fabien Pinckaers 065821dfd6 [MOD] use read() instead of browse
bzr revid: fp@tinyerp.com-20121218234907-j672neyvifmo4bur
2012-12-19 00:49:07 +01:00