Commit Graph

70272 Commits

Author SHA1 Message Date
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Christophe Matthieu 53f168daaf [FIX] hr_holidays: traceback when the user change remaining_leaves value. Wrong reference python object: holiday_obj
bzr revid: chm@openerp.com-20130415093726-x2lsmf54xiqc0lng
2013-04-15 11:37:26 +02:00
Launchpad Translations on behalf of openerp c65d4c6441 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130413053844-gkqad498rnyerawp
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414051642-ld3j9vzqppxmvd44
2013-04-14 05:16:42 +00:00
Launchpad Translations on behalf of openerp 22daaf3633 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130412052106-dk5gnynho4ng3vpf
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414051220-i54sas7x9m3q0fh6
2013-04-14 05:12:20 +00:00
Thibault Delavallée 4c4c48dc72 [MERGE] [FORWARD] Forward port of addons 7.0 until revision 9008
bzr revid: tde@openerp.com-20130411140957-tboxywmic8rxs4ns
2013-04-11 16:09:57 +02:00
Thibault Delavallée f728ec93fd [FIX] email_template: fixed errors due to template_id now being a many2one, not an int anymore.
bzr revid: tde@openerp.com-20130411134119-q1o71pn34v8u49jy
2013-04-11 15:41:19 +02:00
Thibault Delavallée 4da68cbc22 [FORWARD] Forward port of addons 7.0 until revision 9008
bzr revid: tde@openerp.com-20130411124446-73gzyw3eo925w3dv
2013-04-11 14:44:46 +02:00
Thibault Delavallée ee844c0ac6 [FIX] crm: fixed on_change_user that was crashing because
refers to a default_section_id field that is added in sale_crm bridge module.
New behavior is : one of the team user_id is a member (crm), or
default_section_id if defined or default behavior (sale_crm)

bzr revid: tde@openerp.com-20130411123356-kc8ty16i71nwgzsm
2013-04-11 14:33:56 +02:00
Thibault Delavallée f8a2299525 [MERGE] [FIX] mail, email_template: fix attachment duplication and clean attachment management
The way attachments are linked to the document has been cleaned. Posting method message_post may receives 2 arguments:
- attachment_ids: those linked to the wizard model (mail.compose.message) are linked to the document (res_model, res_id)
- attachments: the tuples are used to create new attachments linked to the document
The wizard does not set the res_model and res_id of attachments anymore, delegating this job to message_post.

The mail.message and mail.compose.message now use their respective attachment_ids field when possible. This is done instead of reading/creating new attachments based on the attachments tuple each time a mail.compose.message is processed. Email templates now also use attachment_ids, in particular when generating emails, instead of using the attachments tuple. Only reports are still generated on the fly and put into attachments instead of attachment_ids.

A cron job has been added to unlink 'lost' attachments. Those are attachments:
- linked to 'mail.compose.message'
- with res_id=0 (due Chatter used in minimal mode or reports generated by templates before the wizard has an ID)
- with no activity for more than one day (create_date and write_date)

bzr revid: tde@openerp.com-20130411112033-mqph9vjlcjkoolfs
2013-04-11 13:20:33 +02:00
Thibault Delavallée 9e4486ae52 [FIX] mail: fixed missing conflict resolution
bzr revid: tde@openerp.com-20130411104659-ik62af6wubzu5j6q
2013-04-11 12:46:59 +02:00
Thibault Delavallée 8c7cf300eb [MERGE] [FIX] mail: bettersuggested recipients based on email address. It tries to find a partner that is in the related document followers, or a user, or the first partner with matching email.
bzr revid: tde@openerp.com-20130411104151-wi5ru54b362pv957
2013-04-11 12:41:51 +02:00
Thibault Delavallée fe2ea997a2 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130411103645-rmr3sa8p9ropx2gc
2013-04-11 12:36:45 +02:00
Thibault Delavallée f994529725 [IMP] mail: finding partner based on email: improved code for suggested partners, added somme comments and tests.
bzr revid: tde@openerp.com-20130411101720-mumz152dsxvv1xbj
2013-04-11 12:17:20 +02:00
Raphael Collet 385f4dbaaa [MERGE] Avoid error-hiding calls like registry.get(X) when X is dynamic.
Use registry[X] instead, and test model existence with: X in registry.

bzr revid: rco@openerp.com-20130411075241-0f5u1vzmtzcxwnp4
2013-04-11 09:52:41 +02:00
Raphael Collet ef1cbabe25 [MERGE] Avoid error-hiding calls like registry.get(X) when X is dynamic.
Use registry[X] instead, and test model existence with: X in registry. 
Also make class Registry a subclass of collections.Mapping.

bzr revid: rco@openerp.com-20130411074602-j8w67g6rzlpo0l06
2013-04-11 09:46:02 +02:00
Raphael Collet 894eeef8e0 [MERGE] from trunk
bzr revid: rco@openerp.com-20130411073708-gaxl2332umtedmg6
2013-04-11 09:37:08 +02:00
Raphael Collet 05851d21ba [MERGE] from trunk
bzr revid: rco@openerp.com-20130411073017-x6e4h8xbvmy3ofdw
2013-04-11 09:30:17 +02:00
Quentin (OpenERP) 748681e5d2 [FIX] project_long_term: don't create the project twice if 'use_phases' is thicked.
bzr revid: qdp-launchpad@openerp.com-20130410125046-01n3v3p5pnu78wgs
2013-04-10 14:50:46 +02:00
Quentin (OpenERP) 241b9ee07a [IMP] analytic: add the 'visibility tracking' on some fields in the chatter, to log when an important thing is changed
bzr revid: qdp-launchpad@openerp.com-20130410122011-xgih371ewlxc7aq5
2013-04-10 14:20:11 +02:00
Quentin (OpenERP) 904b810665 [MERGE] hr & co, demo data: update of the pictures of employees
bzr revid: qdp-launchpad@openerp.com-20130410121608-o6bwoukk4w7p8fsm
2013-04-10 14:16:08 +02:00
Frédéric van der Essen a0a9ae61e7 [IMP] point_of_sale: added barcodes in demo data for a few commonly found products
bzr revid: fva@openerp.com-20130410103238-igbolt8hst05xvi1
2013-04-10 12:32:38 +02:00
Josse Colpaert 3887d1e6fa [FIX] Adapt like issues and tasks
bzr revid: jco@openerp.com-20130410084638-v9yeobgc91yy7lyx
2013-04-10 10:46:38 +02:00
Launchpad Translations on behalf of openerp 75997ddc1c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130410055452-4saqwvwv6cgtil6s
2013-04-10 05:54:52 +00:00
Launchpad Translations on behalf of openerp 4804af59bd Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130410052138-0ij72v89o1n91jen
bzr revid: launchpad_translations_on_behalf_of_openerp-20130410052154-hwz5qpedh7ek2p3d
2013-04-10 05:21:54 +00:00
Frédéric van der Essen 174ef7b490 [MERGE] adding a rounding method that is compliant with the server side rounding method
bzr revid: fva@openerp.com-20130409154129-gul9hkn0p4nt24md
2013-04-09 17:41:29 +02:00
Frédéric van der Essen a5e4d757a1 [FIX] add a correct rounding algorithm to be able to duplicate server-side financial computations
lp bug: https://launchpad.net/bugs/1157761 fixed

bzr revid: fva@openerp.com-20130409144414-nqnmkny5cxrmyru1
2013-04-09 16:44:14 +02:00
Cedric Snauwaert e2e851dd07 [FIX]account_payment_report: formatlang expect float value not string
bzr revid: csn@openerp.com-20130409135107-y59zf6x2p85yvgva
2013-04-09 15:51:07 +02:00
Fabien Meghazi 74997ff408 [IMP] res.partner form view, autofocus Contact notebook/page on visibility change
bzr revid: fme@openerp.com-20130409122954-mkene266qvcfe6nr
2013-04-09 14:29:54 +02:00
Fabien Meghazi 905d13671b [FIX] Do not autofocus Notebook pages by default
bzr revid: fme@openerp.com-20130409122852-f4ikugl83otx8423
2013-04-09 14:28:52 +02:00
Quentin (OpenERP) 8c8bfd706b [FIX] purchase, sale_stock: fix computation of date_planned when no timezone is defined for the user
bzr revid: qdp-launchpad@openerp.com-20130409122530-svv1kpk57s2nrsa9
2013-04-09 14:25:30 +02:00
Cedric Snauwaert a7bf53ebaa [FIX]error introduce in revid:odo@openerp.com-20130405151451-anjsdt18gmsxr01k
function date_to_datetime should return a date in server datetime format

bzr revid: csn@openerp.com-20130409091433-4u3nxejdrti7czu3
2013-04-09 11:14:33 +02:00
Launchpad Translations on behalf of openerp 6fe10fc8e5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055857-v475gufg9pm5zbqy
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055920-gtfw1ljrgaej1u0u
bzr revid: launchpad_translations_on_behalf_of_openerp-20130406063645-b7q6s71zvtm9orxm
bzr revid: launchpad_translations_on_behalf_of_openerp-20130407060119-7ojh5lykuwm3ydbn
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055924-46ylmw1wqri80wgs
2013-04-09 05:59:24 +00:00
Quentin (OpenERP) 9f25ba0d78 [MERGE] point_of_sale: prohibit the use of bank journal that aren't of type 'bank' or 'cash' as payment method in the pos
bzr revid: qdp-launchpad@openerp.com-20130408142449-w0wemrmds3ikc46v
2013-04-08 16:24:49 +02:00
Quentin (OpenERP) 631759a2a9 [FIX] report, trml2pdf: allow to use <pageNumber/> tag under a flowable area (<place>...<place/>).
bzr revid: qdp-launchpad@openerp.com-20130408132510-7pq0ityec9sl702f
2013-04-08 15:25:10 +02:00
Thibault Delavallée 8b97805621 [FIX] mail: fixed some translation issues.
Document created text was not translatable
Subtype was fetched without context, therefore not translated
Removed odd override of _t introduced in mail_followers at revision 7885

bzr revid: tde@openerp.com-20130408092447-3ri41v6xluuj0wha
2013-04-08 11:24:47 +02:00
Launchpad Translations on behalf of openerp eb3ffc52ed Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130406063640-151b9f95w2tgiifb
bzr revid: launchpad_translations_on_behalf_of_openerp-20130407060111-hobhqctome9qtz6c
bzr revid: launchpad_translations_on_behalf_of_openerp-20130408062055-hzgkrbw8lvkfphxe
2013-04-08 06:20:55 +00:00
Launchpad Translations on behalf of openerp 161841af7e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130406063615-7i83z5nw8t61j74f
bzr revid: launchpad_translations_on_behalf_of_openerp-20130407060018-f3clm2r44u1qf71g
bzr revid: launchpad_translations_on_behalf_of_openerp-20130408062007-qrme94qjqgan9ie9
2013-04-08 06:20:07 +00:00
dle@openerp.com a27dd438a7 [REVERT]base_import: revert of last change, because break tests and needs review
bzr revid: dle@openerp.com-20130405182351-0qfqd5klz9g25n9m
2013-04-05 20:23:51 +02:00
dle@openerp.com 5819cefd4b [FIX]base_import: get_fields now displays database id of the current model imported in normal fields
bzr revid: dle@openerp.com-20130405175827-58ahjgprju2gf4p9
2013-04-05 19:58:27 +02:00
Quentin (OpenERP) 8dea4ca3aa [MERGE] crm: adding onchange on user_id field in opportunity form view in order to fill automatically the sales team
bzr revid: qdp-launchpad@openerp.com-20130405154143-bccw695tadw0o5pi
2013-04-05 17:41:43 +02:00
Olivier Dony 3b1c553cc8 [MERGE] OPW 590100: stock: fix stock.picking.in and stock.picking.out that did not apply stock.picking record rules in all cases
lp bug: https://launchpad.net/bugs/1104163 fixed

bzr revid: odo@openerp.com-20130405153021-t0svhrbryl8r0bin
2013-04-05 17:30:21 +02:00
Thibault Delavallée aaed0ccd43 [MERGE] Alias Visibility and Salesteams View. Improve the display of alias in form views and in empty list help messages. Improve the use, visibility and display of salesteams.
Add support for 'no result' help message in kanban views.
Add css for empty list in kanban views + generic display of mail aliases.

bzr revid: tde@openerp.com-20130405152131-4auticfaj24wbpqx
2013-04-05 17:21:31 +02:00
Thibault Delavallée 1fe0a9afe9 [MERGE] Alias Visibility and Salesteams View. Improve the display of alias in form views and in empty list help messages. Improve the use, visibility and display of salesteams.
This revision adds a configuration in Settings/Sales: enable the use of sales team. If not enabled, users have access to Leads and Opportunities menus; Sales Teams menu is hidden, as well as all fields related to sales teams. If enabled, a Sales Teams menu is added that works as the Project menu. The new sales Teams kanban view allows to have an overview of the sales team (leads, opportunities, quotations, sales orders, invoices). Clicking on a link of the kanban vignette redirect to the related list/kanban view, filtered by the chosen sales team.

This revision also improves the display of help message (also shown for empty kanban views) for leads, opportunities, tasks, issues, applicants. It displays the current sales team / project / job alias, or a default alias if no context is provided.

bzr revid: tde@openerp.com-20130405151914-8892yfmsmr2xwbbk
2013-04-05 17:19:14 +02:00
Olivier Dony ed09272799 [MERGE] OPW 590221: sale_stock,purchase: fix timezone conversion error when scheduling delivery/procurement based on SO/PO date
The conversion code is duplicated in sale_stock and purchase
instead of being factored out in the fields.datetime class
because as of v7.0 users are able to selectively update
a single module without necessarily updating the base module
or the framework. This will be improved in next stable version.

lp bug: https://launchpad.net/bugs/1153107 fixed

bzr revid: odo@openerp.com-20130405151451-anjsdt18gmsxr01k
2013-04-05 17:14:51 +02:00
Thibault Delavallée 4d3ddf7a7a [MERGE] Alias Visibility and Salesteams View. Improve the display of alias in form views and in empty list help messages. Improve the use, visibility and display of salesteams.
ir_action:
- removed size on char fields
- help is now somewhat dynamic; it calls get_empty_list_help on the related model that could be overridden to display a custom message instead of the generic one defined on the action
BaseModel:
- added get_empty_list_help method, that basically returns the help that is given into parameter. Its purpose is to be overridden by models that should customize the empty list help message

bzr revid: tde@openerp.com-20130405150952-5f7sr2f61obl74yw
2013-04-05 17:09:52 +02:00
Quentin (OpenERP) 2dff36cfa8 [MERGE] procurement, fix of scheduler: there is no need to filter on product that can be pruchased only (we may need to re-stock some components (of BoM) that can't be purchased)
bzr revid: qdp-launchpad@openerp.com-20130405144645-yj03ser7ks5vpwbj
2013-04-05 16:46:45 +02:00
Quentin (OpenERP) 3a06e25894 [MERGE] base_report_designer: Remove double . in numbered bulleted list
bzr revid: qdp-launchpad@openerp.com-20130405135750-ib4fv7dthwqou60h
2013-04-05 15:57:50 +02:00
Quentin (OpenERP) 9a219f241e [MERGE] better use of analytic distribution options on sale & purchase settings that now have an impact only on dedicated invoice view
bzr revid: qdp-launchpad@openerp.com-20130405135126-mnzv9o5dbiflvfo0
2013-04-05 15:51:26 +02:00
Christophe Simonis ecdc3b1873 [FIX] web: company_logo does not try to load the pool + failback correctly if the database does not exists or is not an openerp database
bzr revid: chs@openerp.com-20130405134747-7rkmz5d4r0buhhxj
2013-04-05 15:47:47 +02:00
Josse Colpaert 4bb06462d7 [FIX] Check that payment method journal is of type cash or bank
bzr revid: jco@openerp.com-20130405134438-86l1ph7192owwrol
2013-04-05 15:44:38 +02:00