Commit Graph

71104 Commits

Author SHA1 Message Date
Launchpad Translations on behalf of openerp 19ba8c54c9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140214074449-flu4n6hfh9nua9t3
bzr revid: launchpad_translations_on_behalf_of_openerp-20140214074835-2p2r1vb6ucynbspm
2014-02-14 07:48:35 +00:00
Denis Ledoux 856c60d181 [FIX] account: move_line_quick_add js, set the domain in the dataset (for instance, for export tool) + performance improvement (no need to re-compute journal list and period list each time a search is done)
bzr revid: dle@openerp.com-20140213180459-mln0btlduc1fox0x
2014-02-13 19:04:59 +01:00
Olivier Dony 07c2c5ddd8 [FIX] base_vat: support Irish Tax numbers introduced in 2013
This is a temporary fix until upstream is fixed.
References: 
- http://en.wikipedia.org/wiki/Personal_Public_Service_Number
- https://www.welfare.ie/en/Pages/Extension-of-the-Personal-Public-Service-Number-Range.aspx

bzr revid: odo@openerp.com-20140213141246-t56sx1t8x4riey4w
2014-02-13 15:12:46 +01:00
Denis Ledoux 234a27091e [FIX] base_import: auto_install True
Import feature should now be regarded as an opt-out feature:
Available by default, but you can disable it if you do not want it.

bzr revid: dle@openerp.com-20140213160003-ljtvzg4pr4iai9i1
2014-02-13 17:00:03 +01:00
Martin Trigaux ce778f2000 [MERGE] [FIX] css: Fixed the issue of statubar not aligned with buttons in chrome browser.
bzr revid: mat@openerp.com-20140213145755-txvtwqbfc83vnw9o
2014-02-13 15:57:55 +01:00
Martin Trigaux 11c7e85a85 [MERGE] [FIX] property fields: in _fnct_write call, make sure the removal of older properties applies only to current company and not to any properties found by the user. (opw 592328)
This was problematic when the admin or a mutlicompany user in parent company set a value for a property field on any record shared through companies. The change would remove the property already set on child companies instead of only replacing the current value.

The test requires previous revision (rev-id mat@openerp.com-20140213121853-mbbk6pkya92hy4xd) of server to avoid commiting changes in _field_create call.

bzr revid: mat@openerp.com-20140213134838-sia2s9vybq5oep65
2014-02-13 14:48:38 +01:00
Martin Trigaux 7b41032e2a [IMP] move test on property fields to his own test class
bzr revid: mat@openerp.com-20140213133254-ahzac9o009su3d2x
2014-02-13 14:32:54 +01:00
Martin Trigaux e201ea3190 [ADD] tests checking the properties fields are not overwritten by changes in parent companies
bzr revid: mat@openerp.com-20140213131009-25knm17hie7uzeko
2014-02-13 14:10:09 +01:00
Martin Trigaux 21842a4fc4 [MERGE] sync with 7.0 (getting needed orm revision)
bzr revid: mat@openerp.com-20140213130150-9ltjazqiru5apv5k
2014-02-13 14:01:50 +01:00
Martin Trigaux 6e99d7a6cb [MERGE] [FIX] remove useless cr.commit in fields creation
This is require to be able to create revertable tests adding new fields

bzr revid: mat@openerp.com-20140213121853-mbbk6pkya92hy4xd
2014-02-13 13:18:53 +01:00
Martin Trigaux ff389d8478 [FIX] remove useless cr.commit in fields creation
This is require to be able to create revertable tests adding new fields

bzr revid: mat@openerp.com-20140213120349-a0p3bist5l5uyg6b
2014-02-13 13:03:49 +01:00
Thibault Delavallée 91305885e7 [MERGE] [FIX] fetchmail: more coherent and robust behavior of fetchmail. Notably, do not discard the whole email stack or stop after first crashed email processing.
Featuring:
- [FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch, revid:odo@openerp.com-20120727150051-e1q0m92tyrazz82f. Purpose: some fixes and more robuts handling of incoming emails
- [IMP] mail: mail_thread: message routing: raise exceptions instead of using asserts. Indeed assert are statements meant to be used when developping, for debug purpose. In a production environment it is safer to use real exceptions that can be managed accordingly.
- [FIX] mail: fixed tests, no more AssertionError, but ValueError
- [IMP] fetchmail: try / except each email processing. This allows to print an exception in the logs for every failed email processing, without crashing the whole stack. Any failed or succeeded email is set as seen, to avoid crashing every time the scheduler runs.

bzr revid: tde@openerp.com-20140213115922-33vxgj7nfy86ashw
2014-02-13 12:59:22 +01:00
Mohammed Shekha (OpenERP) a8943b416a [FIX]Web, Statusbar: Fixed the issue of statubar in chrome is aligned, it is aligned in inline block.
bzr revid: msh@openerp.com-20140213115556-irdodahpw0atgy5u
2014-02-13 17:25:56 +05:30
Thibault Delavallée 0f111f7b96 [FIX] fetchmail: typos in logger messages
bzr revid: tde@openerp.com-20140213112946-i351aazw4r2ezfz4
2014-02-13 12:29:46 +01:00
Martin Trigaux 3668f09108 [IMP] avoid changing the API by passing the company_id in context
bzr revid: mat@openerp.com-20140213100836-wte9zec4easb0cmw
2014-02-13 11:08:36 +01:00
Thibault Delavallée 4638d7386a [MERGE] Sync with upstream (7.0)
bzr revid: tde@openerp.com-20140213095746-qpa6y0r3umxy4oul
2014-02-13 10:57:46 +01:00
Thibault Delavallée ec5291c130 [IMP] fetchmail: try / except the processinf of each email and log any exception
found during processing. This way, all emails in the queue are managed and
all failed emails have their own exception in the logs, allowing easier
debugging.
Note that a failed email is set as seen to avoid processing it every time
the scheduler runs.

bzr revid: tde@openerp.com-20140213095717-tcwgkl143i3ujw8h
2014-02-13 10:57:17 +01:00
Martin Trigaux 6f8811e7f6 [MERGE] sync with 7.0
bzr revid: mat@openerp.com-20140213095713-b1ys0nu8u7o8ybyr
2014-02-13 10:57:13 +01:00
Thibault Delavallée dca7f71d71 [DOC] mail_thread: docstrings to add raised exceptions in message_process and message_route
bzr revid: tde@openerp.com-20140213090122-0gwin1pjigwu42sz
2014-02-13 10:01:22 +01:00
Martin Trigaux 409c3cfe9f [FIX] data: _.find (prefered to older _.detect) may return undefined if no match and would trow an error when applying .values
Instead returns undefined which is handled below.
This does not solve the issue when records are not loaded properly but gives a better information on the reason.

bzr revid: mat@openerp.com-20140213085008-pnq4r0ebfl072u78
2014-02-13 09:50:08 +01:00
Launchpad Translations on behalf of openerp faf6d33bc0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140213064742-xiotlx8wzfhexnhc
2014-02-13 06:47:42 +00:00
Launchpad Translations on behalf of openerp e2d3fa0a40 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140213064711-5yclxgkdvqsqbldv
2014-02-13 06:47:11 +00:00
Denis Ledoux 1e21c3ea11 [FIX]account_voucher: do not set account_id to False during onchanges
bzr revid: dle@openerp.com-20140212173711-nvx2gt1bboyey4qg
2014-02-12 18:37:11 +01:00
Martin Trigaux 0c122c32ce [MERGE] [FIX] image tools: do not crop an image when resizing it, use reduce the size instead and add transparency background (opw 593992)
bzr revid: mat@openerp.com-20140212161603-3u3a47yiruh1jlja
2014-02-12 17:16:03 +01:00
Thibault Delavallée bc0232cee6 [FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch.
Revid: revid:odo@openerp.com-20120727150051-e1q0m92tyrazz82f
Purpose: some fixes and more robuts handling of incoming emails

bzr revid: tde@openerp.com-20140212160857-s889npk2q133xvy2
2014-02-12 17:08:57 +01:00
Martin Trigaux 94b3b0d6f6 [FIX] image tools: do not crop an image when resizing it, use reduce the size instead and add transparency background (opw 593992)
bzr revid: mat@openerp.com-20140212155104-zc6hhkzqw6711e9m
2014-02-12 16:51:04 +01:00
Thibault Delavallée e09f5cd264 [FIX] mail: fixed tests, no more assertionerror, but valueerror
bzr revid: tde@openerp.com-20140212153141-ajwmd26of69tfoer
2014-02-12 16:31:41 +01:00
Thibault Delavallée 150d5a9e18 [IMP] mail: mail_thread: message routing: raise exceptions instead of using asserts.
Indeed assert are statements meant to be used when developping, for
debug purpose. In a production environment it is safer to use real
exceptions that can be managed accordingly.

bzr revid: tde@openerp.com-20140212152737-c7q339psd9hi4iwd
2014-02-12 16:27:37 +01:00
Denis Ledoux 4ca9ae11a5 [FIX] account_voucher: account_id always visible on sales & purchase receipts
account_id is mandatory, and is set thanks to an onchange of partner_id. But partner_id is not required, therefore, if you do not set a customer/supplier, there is no
     account_id set by default.

On the purchase, the account_id was always invisible. Therefore, it was impossible to set the account_id if you did not set any supplier
On the sale, the account_id was invisible if you set the pay_now to pay later. Therefore, it was impossible to set an account_id if you did not set any customer and set pay later.

Anyway, now, account_id is always displayed, so the user can change the value of account_id if the default value provided is not was he wants, whatever the value of the other fields

bzr revid: dle@openerp.com-20140212142737-ox2l9twg3x6ywvqg
2014-02-12 15:27:37 +01:00
Christophe Simonis f4a61d46d0 [FIX] pad: hide chatter in fullscreen mode
lp bug: https://launchpad.net/bugs/1267108 fixed

bzr revid: chs@openerp.com-20140212134747-moiyebzdti4ieyc4
2014-02-12 14:47:47 +01:00
Denis Ledoux 64ead8b005 [FIX] point_of_sale: sales summary report displays actual amount of taxes, instead of displaying the amount where the taxe is applied
bzr revid: dle@openerp.com-20140212121408-4tv8ca1ukqempx1k
2014-02-12 13:14:08 +01:00
Olivier Dony 5d4f139df2 [FIX] base_action_rule: attempt to reuse creator language when evaluating action filters
Some filters needs to be evaluated with the same
language as their author, e.g. when searching on
translatable field values. When a time-based
action is processed by the scheduled task,
we should thus attempt to reuse the same
language as the author of the corresponding
filter.

bzr revid: odo@openerp.com-20140212113924-77sh4oj6dl2qwqka
2014-02-12 12:39:24 +01:00
Denis Ledoux b6e708c1be [FIX]point_of_sale: Mode of payment displayed browse_record object instead of the name of the method payment
bzr revid: dle@openerp.com-20140212113004-d9eammlp5gtm2m2v
2014-02-12 12:30:04 +01:00
Launchpad Translations on behalf of openerp 9554c144ff Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140212062357-8n13ec90bnclm1ek
2014-02-12 06:23:57 +00:00
Launchpad Translations on behalf of openerp c438e6e8a9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140211064034-ghuxxk02n715othj
bzr revid: launchpad_translations_on_behalf_of_openerp-20140212062254-0hbn6k9636zlrg4k
2014-02-12 06:22:54 +00:00
Martin Trigaux 3f158ebe38 [MERGE] [FIX] pricelist: correctly take into account uom when computing pricelists based on supplier price on product form (opw 595881)
The previous behaviour used the uom of the product while it is not necessary the one selected (eg: by default the purchase unit of measure for purchase orders).
This was an issue especially when having a different uom with supplier info lines setting degressive prices. The price should be computed based on selected uom and not the product uom.

bzr revid: mat@openerp.com-20140211152703-twnzco2dwxeqt8hz
2014-02-11 16:27:03 +01:00
Martin Trigaux ebdb230699 [FIX] pricelist: correctly take into account uom when computing pricelists based on supplier price on product form (opw 595881)
The previous behaviour used the uom of product while it could be a different one selected (by default the purchase unit of measure for purchase orders).
This was an issue especially when having different uom with supplier info lines setting degressive prices. The price should be computed based on selected uom and not the product uom.

bzr revid: mat@openerp.com-20140211145703-9uut4hw9aqh7326o
2014-02-11 15:57:03 +01:00
Launchpad Translations on behalf of openerp c00c424221 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140211064129-f1q7m95fq4tplc1s
2014-02-11 06:41:29 +00:00
Denis Ledoux 8092693eec [FIX] point_of_sale: distraction error from revision 9814 revid:dle@openerp.com-20140206163444-ckcmurcwk2vhi5vp, missing .id in order to compare company for taxes
bzr revid: dle@openerp.com-20140210160645-ww7af7sbkpjf6oss
2014-02-10 17:06:45 +01:00
Martin Trigaux 69f18925ff [MERGE] [FIX] html_sanitize: partial backport of trunk revision 5047 (opw 603452).
Unescape elements that have been wrongly escaped.

Some elements (eg: 'href' tag in links) are sanitised in templates which prevents the execution of mako templates.

bzr revid: mat@openerp.com-20140210152806-rl5h3twgq8dd203d
2014-02-10 16:28:06 +01:00
Martin Trigaux e328c0a40e [FIX] html_sanitize: partial backport of trunk revision 5047.
Unescape elements that have been wrongly escaped.

Some elements (eg: 'href' tag in links) are sanitised in templates which prevents the execution of mako templates.

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

bzr revid: mat@openerp.com-20140210144023-9sp8cqn07ta5o64y
2014-02-10 15:40:23 +01:00
Denis Ledoux 749e05ccb8 [FIX] close autocomplete listing on input
Closing previously occured on search request (so that a user wouldn't be able
to select "old" data on new search request), but ``search`` is only triggered
after the search delay. Worked when delay was 0, with it being moved to 250 a
user can get results matching the previous search instead of the current one.

Trigger a closing of the current results list on any ``input`` event, which is
when text is entered in any of the searchview's ``InputView``

bzr revid: dle@openerp.com-20140210140032-06dnlxepcc5ae21f
2014-02-10 15:00:32 +01:00
Denis Ledoux 6e3d193517 [FIX] sale, sale_stock: send by email button visible when sent, progress or manual
+ remove 'invoiced' from statusbar_visible, as there is no such state
+ proper inherit in sale_stock form view

bzr revid: dle@openerp.com-20140210134603-ck0jr56xhl8xgzg2
2014-02-10 14:46:03 +01:00
Thibault Delavallée 759ed5bbb6 [IMP] mail: subscription: if no-one to (un)subscribe, already return. This is not
necessary for computation, but saves some browse / access right checking.

bzr revid: tde@openerp.com-20140210115827-2y451i0edgve59mi
2014-02-10 12:58:27 +01:00
Martin Trigaux 54a1ffc480 [FIX] mail: priority -10 on message_follower_ids to make sure executed before other function field that may use the followers (eg: note.note for access rights)
bzr revid: mat@openerp.com-20140210083130-ag95lqwlpkv7ceqc
2014-02-10 09:31:30 +01:00
Launchpad Translations on behalf of openerp 8d85c23e4a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065003-9soyulgvssk8n5ci
bzr revid: launchpad_translations_on_behalf_of_openerp-20140208071621-b018rnkhyxmmm5jk
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065224-kih7tx56elds0zok
bzr revid: launchpad_translations_on_behalf_of_openerp-20140210055324-raxopm5ej680oc73
2014-02-10 05:53:24 +00:00
Olivier Dony f7c1afffcb [FIX] mail.thread: avoid tracking multiple temporary changes during copy
bzr revid: odo@openerp.com-20140206173251-1njroiu08fzgdbyp
2014-02-06 18:32:51 +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
Launchpad Translations on behalf of openerp f6696383d6 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140207071400-b3u1081zn9icp7xw
2014-02-07 07:14:00 +00:00