Commit Graph

5116 Commits

Author SHA1 Message Date
Cedric Snauwaert 33ec8239d1 [FIX]ir_sequence: better args definition
bzr revid: csn@openerp.com-20130517154544-c9jywavo9pnfn4rt
2013-05-17 17:45:44 +02:00
Olivier Dony 8d639576f0 [FIX] modify domain evaluation tests to avoid relying on res.currency entries assigned to companies, as demo data was modified for bug 1111298
lp bug: https://launchpad.net/bugs/1111298 fixed

bzr revid: odo@openerp.com-20130517141726-67utxubzdflsgsnx
2013-05-17 16:17:26 +02:00
Cedric Snauwaert 913a7a6e5c [FIX]ir_sequence: only execute a change on postgresql sequence when really needed and add a field to get an approximation of the current next_number.
bzr revid: csn@openerp.com-20130517124328-kex5katw2tgpgdty
2013-05-17 14:43:28 +02:00
Olivier Dony e608027256 [FIX] openerp/tests/test_mail.py marked executable as it should
lp bug: https://launchpad.net/bugs/993414 fixed

bzr revid: odo@openerp.com-20130517102933-u1u4n2ad5jxnndw5
2013-05-17 12:29:33 +02:00
Olivier Dony 9cff3f2a58 [MERGE] res.currency: default to global currencies in multi-company setup + add proper ir.rule, courtesy of Alexandre Fayolle (Camptocamp)
lp bug: https://launchpad.net/bugs/1111298 fixed

bzr revid: odo@openerp.com-20130517093958-d16k9gceenznm9vp
2013-05-17 11:39:58 +02:00
Cedric Snauwaert ce5c5557a3 [FIX]ir_sequence: fix cryptic error message when prefix/suffix is not in a valid format and update number_next in order for it to have same value as the sql sequence preventing the sql sequence to restart from one if a write is done.
bzr revid: csn@openerp.com-20130517090421-kik3215az48lg02f
2013-05-17 11:04:21 +02:00
Alexandre Fayolle 89efc89651 [FIX] remove company_id from currencies in currency_data.xml
lp bug: https://launchpad.net/bugs/1111298 fixed

bzr revid: alexandre.fayolle@camptocamp.com-20130517080319-ct4j81mc01dr1e2v
2013-05-17 10:03:19 +02:00
cbi@openerp.my.openerp.com 3d9c8b0513 [FIX] missing multi company currency access rules, set currency.company_id to False by default
lp bug: https://launchpad.net/bugs/1111298 fixed

bzr revid: alexandre.fayolle@camptocamp.com-20130517080246-k23d8hd0ks36cr5l
2013-05-17 10:02:46 +02:00
Vishmita Jadeja (openerp) 0ccd535c5d [REV]Revert code
bzr revid: vja@tinyerp.com-20130516062524-777pzwspcyrlasyy
2013-05-16 11:55:24 +05:30
Vishmita Jadeja (openerp) ca1393c968 [Merge]Merge with trunk
bzr revid: vja@tinyerp.com-20130516055218-6zbs25nel5r24pew
2013-05-16 11:22:18 +05:30
Vishmita Jadeja (openerp) 8c9675e75e [IMP]on change of country > If the selected state is of same country then don't change it and if it is of any other country then make it blank
bzr revid: vja@tinyerp.com-20130515133450-db0xs8fmm67t9orj
2013-05-15 19:04:50 +05:30
Quentin (OpenERP) 19c7bfa179 [FIX] base: moving the old timezone formats at the end of selection list to avoid confusing users
lp bug: https://launchpad.net/bugs/1086728 fixed

bzr revid: qdp-launchpad@openerp.com-20130515112536-j5eitvgk8tznhe5i
2013-05-15 13:25:36 +02:00
Vishmita Jadeja (openerp) 6f953c189a [FIX]Improve Code
bzr revid: vja@tinyerp.com-20130515105846-zkflow45bsbhe3ym
2013-05-15 16:28:46 +05:30
Cedric Snauwaert 3892a9fee4 [REF]res_partner: compact code to get tz info
bzr revid: csn@openerp.com-20130515101027-4nc06nr2u41jh1wr
2013-05-15 12:10:27 +02:00
Vishmita Jadeja (openerp) fa9abf91f7 [Merge]Merge with openobject-server
bzr revid: vja@tinyerp.com-20130515095510-rrl5xeen0a1oxzvu
2013-05-15 15:25:10 +05:30
Nimesh Contractor (OpenERP) d0236bd31e [FIX] set defalut customer and add field customer to store value of customer.
bzr revid: nco@tinyerp.com-20130515075140-dql9dhnygtgi7319
2013-05-15 13:21:40 +05:30
Martin Trigaux c22dd59c85 [IMP] use exact writing for fsf address
bzr revid: mat@openerp.com-20130514143254-f9ap1pkh7253xs1g
2013-05-14 16:32:54 +02:00
Martin Trigaux 7f3b9ef9e3 [IMP] use exact writing for fsf address
bzr revid: mat@openerp.com-20130514142926-twja0tqy64s9eo09
2013-05-14 16:29:26 +02:00
Martin Trigaux 810edc8cf9 [IMP] use new fsf address
bzr revid: mat@openerp.com-20130514141619-xd30aqer3f3gii31
2013-05-14 16:16:19 +02:00
Martin Trigaux 4eeac4015c [FIX] fix FSF address
bzr revid: mat@openerp.com-20130514120413-r39mu6lsn04nh5zi
2013-05-14 14:04:13 +02:00
Cedric Snauwaert 1e03e6df78 [FIX]res_partner: change fields selection of tz so that timezone starting with Etc/ are at the end of the selection, that way it's less confusing for the users.
bzr revid: csn@openerp.com-20130514113100-h2oihowcplaba10j
2013-05-14 13:31:00 +02:00
Martin Trigaux 8ecd022348 [IMP] clean permissions and shebang in files
bzr revid: mat@openerp.com-20130514103333-puuj4kmxq3bwzwec
2013-05-14 12:33:33 +02:00
Launchpad Translations on behalf of openerp 725bb2aa22 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130508061745-3w2v8zqbedx53bx0
bzr revid: launchpad_translations_on_behalf_of_openerp-20130513064606-6ynxgbs7f50s891m
bzr revid: launchpad_translations_on_behalf_of_openerp-20130514062531-mifd04b012g1kcz4
2013-05-14 06:25:31 +00:00
Launchpad Translations on behalf of openerp 2b7861f8c7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130510055158-ly4kl4owfmuigcs4
2013-05-10 05:51:58 +00:00
Dharmraj Zala (OpenERP Trainee) 7542d8885d [FIX] set ondelete restrict on state and country.
bzr revid: nco@tinyerp.com-20130509113615-u2xedxu5ihn9lqh9
2013-05-09 17:06:15 +05:30
Raphael Collet ab6480dd0c [FIX] res_config tests: isinstance(x, long) is False when x is an int!
bzr revid: rco@openerp.com-20130508153207-0j8m0eiia2rvwmtf
2013-05-08 17:32:07 +02:00
Jagdish Panchal 2d969879de [MERGE] Merge with lp:~openerp-dev/openobject-server/trunk-addons29
bzr revid: jap@tinyerp.com-20130508111549-ttwq2e601pm33yxi
2013-05-08 16:45:49 +05:30
Quentin (OpenERP) 4d519be0b4 [IMP] base, res_currency: added an indirection on _current_rate() function to allow a clean overwriting
bzr revid: qdp-launchpad@openerp.com-20130507120149-p2m4ug20nfny234v
2013-05-07 14:01:49 +02:00
Christophe Simonis 23f326328a [IMP] openerp.modules.migration: lint file; remove unused imports, reorder imports, reformat literal dict creation
bzr revid: chs@openerp.com-20130508105056-v4arz8d2kem5sngi
2013-05-08 12:50:56 +02:00
Christophe Simonis 4897f1740e [FIX] openerp.modules.migration: do not shadow AttributeError that may occure when executing the migrate() function
bzr revid: chs@openerp.com-20130508104658-d2553vdx0etiuhpk
2013-05-08 12:46:58 +02:00
Olivier Dony 54ad990e48 [MERGE] Forward-port of 7.0 bugfixes up to rev.4970
revision-id: odo@openerp.com-20130507104025-em6w03pcxeq92az9

bzr revid: odo@openerp.com-20130507112024-p3cukmwp7d8xm2e0
2013-05-07 13:20:24 +02:00
Olivier Dony 82e4bb826a [FIX] ir.ui.menu: safer eval of action contexts when computing needaction
Unchecked eval of a context may fail for various reasons,
such as the use of client-side variables like `active_id`

bzr revid: odo@openerp.com-20130507104025-em6w03pcxeq92az9
2013-05-07 12:40:25 +02:00
Quentin (OpenERP) 0d21c3eba3 [IMP] modules loading: log as INFO test files because, if they are logged as TEST, the loading statement get lost in the mass of real TEST logs in case there are a lot of test files (more visible that way) + there are no reason to special case these files
bzr revid: qdp-launchpad@openerp.com-20130507092422-co9w0qug8k9zw16n
2013-05-07 11:24:22 +02:00
Olivier Dony dc37c9ffcf [FIX] tools.safe_eval: inconsistent indentation
bzr revid: odo@openerp.com-20130507084919-zovnqiv0axc3ikr3
2013-05-07 10:49:19 +02:00
Olivier Dony da8670411a [MERGE] Forward-port of 7.0 fixes up to rev.4968
revision-id: launchpad_translations_on_behalf_of_openerp-20130506063526-tj5l5h3fger6llmw

bzr revid: odo@openerp.com-20130506132823-zn54tcevfltkgjnf
2013-05-06 15:28:23 +02:00
Christophe Simonis 2c4e370b76 [FIX] When using "--stop-after-init", set the return code correctly. A non zero return code reflect the number of databases that fail to load/update
bzr revid: chs@openerp.com-20130506103054-kb91drgkbj3z5799
2013-05-06 12:30:54 +02:00
Launchpad Translations on behalf of openerp a7a4f33d0f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130427063416-maq2j295cuj0d2j4
bzr revid: launchpad_translations_on_behalf_of_openerp-20130429060435-zyumznnykvw92bfg
bzr revid: launchpad_translations_on_behalf_of_openerp-20130501051425-9uhm1n0nmvyus33i
bzr revid: launchpad_translations_on_behalf_of_openerp-20130506063526-tj5l5h3fger6llmw
bzr revid: launchpad_translations_on_behalf_of_openerp-20130501051533-veqndxlj87s13tnp
bzr revid: launchpad_translations_on_behalf_of_openerp-20130502060901-j2v1cs2l31in4q6t
bzr revid: launchpad_translations_on_behalf_of_openerp-20130503062950-h0ojr1tlzqx5nu76
bzr revid: launchpad_translations_on_behalf_of_openerp-20130504071101-jh8a9d3cb8gcz34e
bzr revid: launchpad_translations_on_behalf_of_openerp-20130505060428-4qacudpyuiez39b3
bzr revid: launchpad_translations_on_behalf_of_openerp-20130506063544-ggq3rpht7nsoinxs
bzr revid: launchpad_translations_on_behalf_of_openerp-20130504071108-g8u3u06xpp3g4sks
bzr revid: launchpad_translations_on_behalf_of_openerp-20130506063552-lwxw1ldh3mbflzqf
2013-05-06 06:35:52 +00:00
Vo Minh Thu d6477c23e3 [FIX] long-polling: use start()/stop() instead of serve_forever().
This is done so detecting a possible PPID change works.
(So that the worker dies when its parent dies.)

bzr revid: vmt@openerp.com-20130502125907-2t96a26eo6c09x2f
2013-05-02 14:59:07 +02:00
Tejas Tank e9104c75af Merged Latest.
bzr revid: tta@openerp.com-20130501063402-qaecsju4nhxn0iy8
2013-05-01 12:04:02 +05:30
Christophe Simonis 6dc9530261 [IMP] new version number pattern
bzr revid: chs@openerp.com-20130430142938-1wwwhrnmv1r58pe3
2013-04-30 16:29:38 +02:00
Christophe Simonis a6f724c919 [IMP] parse_version: ignore saas~ componants
bzr revid: chs@openerp.com-20130430142037-zuxzk8vy9td89pv1
2013-04-30 16:20:37 +02:00
Launchpad Translations on behalf of openerp a7323c16ec Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130430052849-9vod5wz4nun7m48e
2013-04-30 05:28:49 +00:00
Xavier Morel de4c781392 [FIX] turns out @model is optional on field when using @search
it's required on @value though.

or on recursive @field calls, but let's just ignore that eldritch horror

bzr revid: xmo@openerp.com-20130429123831-waj3snv8pqcfda1n
2013-04-29 14:38:31 +02:00
Xavier Morel de13720f0e [IMP] rng of field tag in data xml
also fix nonsensical XML files specifying @ref and @model

bzr revid: xmo@openerp.com-20130429122423-qubsy2ccwo5tb8bq
2013-04-29 14:24:23 +02:00
Christophe Simonis 32a8feb361 [VERSION] update version to reflet reality
bzr revid: chs@openerp.com-20130429120826-rhej168qhyai8iqa
2013-04-29 14:08:26 +02:00
ggh-openerp 058c816a8e [IMP] Improved code
bzr revid: ggh@tinyerp.com-20130429105849-2peih2y8kknt65tu
2013-04-29 16:28:49 +05:30
ggh-openerp dd7614e716 [IMP] Remove space before Exclamation marks [!] in Warning
bzr revid: ggh@tinyerp.com-20130429072938-knas9ymmny5o2z0v
2013-04-29 12:59:38 +05:30
Christophe Simonis 46b06bedf7 [IMP] convert: allow to have <act_window> tags with attribute multi="False" set
bzr revid: chs@openerp.com-20130426164022-nf9eldyge783b5r1
2013-04-26 18:40:22 +02:00
Olivier Dony 2f0ac65b59 [FIX] rml2pdf: more incorrect license headers in some source files, reported by Alec Leamas
Mixing LGPL 2.1 and AGPL 3.0 in the same source file
is incorrect, and the AGPLv3 license was added by
mistake: keep only LGPL license and preserve
copypright info.

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

bzr revid: odo@openerp.com-20130426161106-wdb2mw4u541zfwfy
2013-04-26 18:11:06 +02:00
Thibault Delavallée 229bb1333b [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130425143852-vslppf235z2dyhjc
bzr revid: tde@openerp.com-20130426074512-10d3bsx7f0cki2aj
2013-04-26 09:45:12 +02:00
Launchpad Translations on behalf of openerp 4e50f6861f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130426062350-ld4zwiqlk38jvfw1
2013-04-26 06:23:50 +00:00
Olivier Dony ffebb64472 [MERGE] Forward-port of 7.0 fixes up to rev. 4961
rev-id odo@openerp.com-20130425171238-dhgpqbi9nio12vxk

bzr revid: odo@openerp.com-20130424131936-5eb7omkz51arnm81
bzr revid: odo@openerp.com-20130425171444-ycu89d2393f8nnxm
2013-04-25 19:14:44 +02:00
Olivier Dony 20020a7647 [FIX] res.partner: typo would prevent contact from using company address correctly if flag changed without changing/setting company + updated tests to cover this
bzr revid: odo@openerp.com-20130425171238-dhgpqbi9nio12vxk
2013-04-25 19:12:38 +02:00
Olivier Dony c8e8860d08 [FIX] res.partner: make use_parent_address field visible if set, even if parent is missing
This should not be needed but in the initial 7.0 branch
the default for use_parent_address was True so it was
set even on partners that had no parent company.
Now that the fields are read-only when that option
is enabled, it makes the address impossible to
edit. At least by making it visible we give the
user the opportunity of fixing it manually.

Can also be fixed at once with a single SQL
query:
UPDATE res_partner set use_parent_address = false
       WHERE parent_id IS NULL;

bzr revid: odo@openerp.com-20130425163916-ou7jjr6xbopfwvrc
2013-04-25 18:39:16 +02:00
Thibault Delavallée 5f76e998a5 [CLEAN] cleaning: set(list), use directly a set
bzr revid: tde@openerp.com-20130425142801-gwk9xsnhb3r20jji
2013-04-25 16:28:01 +02:00
Thibault Delavallée eb2815a550 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130425104400-13azs2fzf9oyl96m
2013-04-25 12:44:00 +02:00
Thibault Delavallée ccbb8e09a6 [REF] html_email_clean: refactored the algorithm to clean it, specifically about truncature. Now add classes to node when not removing them, to be managed by the web client.
bzr revid: tde@openerp.com-20130425104301-e7mv9o4pcjx6k2cn
2013-04-25 12:43:01 +02:00
Launchpad Translations on behalf of openerp 83fb6fbf02 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130425060541-r1eqpc1djb3vy953
bzr revid: launchpad_translations_on_behalf_of_openerp-20130425060609-9otf0125cci1hjvi
2013-04-25 06:06:09 +00:00
Ronald Portier 4634dd6f8e [FIX] Add __iter__ method to browse_null to prevent server hang.
lp bug: https://launchpad.net/bugs/1172292 fixed

bzr revid: ronald@therp.nl-20130424142958-u5r2mxtxqj9v431h
2013-04-24 16:29:58 +02:00
Olivier Dony 0ee404c054 [FIX] res.partner: always call write() with a list of IDs, a single ID is not valid! (even if it works sometimes)
bzr revid: odo@openerp.com-20130424131625-aeljtyo5yuiyrlcz
2013-04-24 15:16:25 +02:00
Quentin (OpenERP) 6aee197c4b [IMP] ir_model_data: docstring of check_object_reference updated to reflect what it is really doing
bzr revid: qdp-launchpad@openerp.com-20130424120108-d10vqn51hk4djaj1
2013-04-24 14:01:08 +02:00
Quentin (OpenERP) 4ca68886bf [IMP] ir_model_data: added raise_on_access_error as argument to check_object_reference()
bzr revid: qdp-launchpad@openerp.com-20130424101155-1lu2jgceb022oc8u
2013-04-24 12:11:55 +02:00
Quentin (OpenERP) c474a6c9fa [MERGE] forward port merge of server v7 up to revision 4957
bzr revid: qdp-launchpad@openerp.com-20130424100657-qqtqp8jz0un1js49
2013-04-24 12:06:57 +02:00
Antony Lesuisse 77c4a0dd44 [VER] change serie to 8.0
bzr revid: al@openerp.com-20130424100116-873ylmqs1s18tugs
2013-04-24 12:01:16 +02:00
Quentin (OpenERP) 01a3c67183 [REV] revert of commit 4953 that was not appropriate for a stable version. Will be back in trunk
bzr revid: qdp-launchpad@openerp.com-20130424093403-9dk8yap427kbndzi
2013-04-24 11:34:03 +02:00
Olivier Dony 230a06dd70 [FIX] res.partner: correct store trigger for display_name, forward port of addons 7.0 fix
Corresponding addons 7.0 patch: rev. 9057
revision-id: odo@openerp.com-20130423130656-celrtr352yht19ro

bzr revid: odo@openerp.com-20130424091651-7k7x03c5xhe66zsl
2013-04-24 11:16:51 +02:00
Launchpad Translations on behalf of openerp 26e488f2fb Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130424052821-pkggcy9qr4rmhl53
bzr revid: launchpad_translations_on_behalf_of_openerp-20130424052845-9nzv2aje2g99c9eq
2013-04-24 05:28:45 +00:00
Antony Lesuisse 6a2e96bf90 [FIX] workers, listen backlog based on the number of workers
bzr revid: al@openerp.com-20130423222245-i3gw87v7rktsb23y
2013-04-24 00:22:45 +02:00
Christophe Simonis 261dea6fec [MERGE] forward port of server v7 up to revision 4954
bzr revid: qdp-launchpad@openerp.com-20130422093655-txqmbalod6qmw1s6
bzr revid: chs@openerp.com-20130423183723-9kiexdyzdew8iuzm
2013-04-23 20:37:23 +02:00
Christophe Simonis 60f0bd08ee [FIX] expression: allow creating child_of expression even if "id" field has been redefined, courtesy of Gustavo Adrian Marino
lp bug: https://launchpad.net/bugs/1030942 fixed
lp bug: https://launchpad.net/bugs/1131992 fixed

bzr revid: chs@openerp.com-20130423181926-yk628txd6yiybtko
2013-04-23 20:19:26 +02:00
Thibault Delavallée 78ac31e260 [IMP] html_email_clean: now handles maximum character number truncature.
bzr revid: tde@openerp.com-20130423153727-tv0neudvlalaepu2
2013-04-23 17:37:27 +02:00
Thibault Delavallée f97bd8bd63 [REF] html_email_clean: refactoring of the algorithm, now better taking into account hotmail / msoffice emails. Added tests.
bzr revid: tde@openerp.com-20130423144903-he22jz9zs6nc6dsd
2013-04-23 16:49:03 +02:00
Tejas Tank 8856845b76 Merged Latest.
bzr revid: tta@openerp.com-20130423112355-2y1v4an50mahb2iz
2013-04-23 16:53:55 +05:30
Quentin (OpenERP) a98ae1d753 [IMP/FIX] ir_model_data: added check_object_reference() in order to return a value only if the uid has read access on the targeted object. It avoids raising access rights errors further in the process and prevents duplicating that same code in all addons
bzr revid: qdp-launchpad@openerp.com-20130423103706-u4wk2y65kam587c6
2013-04-23 12:37:06 +02:00
Launchpad Translations on behalf of openerp 6b04a532b8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130423060902-2j8xouki50aemi14
bzr revid: launchpad_translations_on_behalf_of_openerp-20130423061017-5os2p9ztugb6jjph
bzr revid: launchpad_translations_on_behalf_of_openerp-20130423061019-n2660taj1o9os75c
2013-04-23 06:10:19 +00:00
Olivier Dony 41146460c0 [FIX] rml2html: incorrect license headers in some source files, reported and contributed by Alec Leamas
Mixing LGPL 2.1 and AGPL 3.0 in the same source file
is incorrect, and the AGPLv3 license was added by
mistake: keep only LGPL license and preserve
copypright info.

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

bzr revid: odo@openerp.com-20130422170420-in1wo45v3q8q0fhr
2013-04-22 19:04:20 +02:00
Launchpad Translations on behalf of openerp d88a20ecf8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130419052412-h26bmq8wdgeqmbtl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130421043759-n50olbu0m98tgdcn
2013-04-21 04:37:59 +00:00
Ishwar Malvi (OpenERP Trainee) d45ee609b4 [IMP] when create company from the supplier it should be set supplier.
bzr revid: nco@tinyerp.com-20130419084218-e3pflb3jqq6kihfa
2013-04-19 14:12:18 +05:30
Nimesh Contractor (OpenERP) ecd9f70e43 [MERGE] with trunk.
bzr revid: nco@tinyerp.com-20130419045614-310553g6jhnx07uz
2013-04-19 10:26:14 +05:30
Christophe Matthieu 33ae814ff6 [IMP] tools convert: allow to use relative delta in xml file
bzr revid: chm@openerp.com-20130418151827-coda7ldtjd7hw7to
2013-04-18 17:18:27 +02:00
Quentin (OpenERP) 9a21f819b6 [FIX] ir_translation: fixed erro 'context_wo_lang is not defined'
bzr revid: qdp-launchpad@openerp.com-20130418114627-unmfdu6010hyc8xx
2013-04-18 13:46:27 +02:00
Christophe Matthieu 23ec2a7383 [IMP] ir_ui_menu: trunk to 7.0 dynamic counters
bzr revid: chm@openerp.com-20130417132339-1d1xkb1lriuvkx9m
2013-04-17 15:23:39 +02:00
Quentin (OpenERP) 96a60e42c6 [FIX] ir_translation: fix in new methods made to improve the usability, see previous commit
bzr revid: qdp-launchpad@openerp.com-20130417121718-jfwi2f3gn0tum9xa
2013-04-17 14:17:18 +02:00
Ishwar Malvi (OpenERP Trainee) d0920dea50 [IMP] when create contact of a supplier it should be supplier instead of customer.
bzr revid: nco@tinyerp.com-20130417113119-ilgy4k945h31azod
2013-04-17 17:01:19 +05:30
Vishmita Jadeja (openerp) 3f0b9ceb57 [Merge]Merge lp:openobject-server
bzr revid: vja@tinyerp.com-20130417094709-l6butz9hlq27ftd1
2013-04-17 15:17:09 +05:30
Vishmita Jadeja (openerp) e992bb8af8 [Merge]Merge lp:openobject-server
bzr revid: vja@tinyerp.com-20130417094236-kih1h8m4hv7b1jeq
2013-04-17 15:12:36 +05:30
Quentin (OpenERP) 5734172c71 [FIX] base, res_company: added a missing context when calling write(), apparently needed for OPW: 586824
bzr revid: qdp-launchpad@openerp.com-20130417092321-17vj33w2bp2bumo8
2013-04-17 11:23:21 +02:00
Launchpad Translations on behalf of openerp f203d2426b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130417055707-rpdalm7k5efoagz6
bzr revid: launchpad_translations_on_behalf_of_openerp-20130417055742-p9nxg3t2tb0553wn
2013-04-17 05:57:42 +00:00
Launchpad Translations on behalf of openerp 6a2da1c2f7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130421053215-jdbdrur8vk4zu5tc
bzr revid: launchpad_translations_on_behalf_of_openerp-20130420064852-b6bt9syb79h1x16m
bzr revid: launchpad_translations_on_behalf_of_openerp-20130421053233-g4dbsfidsqrs301v
bzr revid: launchpad_translations_on_behalf_of_openerp-20130421053237-8jhzy2qe55bb766x
2013-04-21 05:32:37 +00:00
Quentin (OpenERP) 7fda7e1dbd [FIX] ir_sequence: the field company_id does not exist in res.company, and thus cannot be used as sorting criterion in search()
bzr revid: qdp-launchpad@openerp.com-20130419154920-ipddx1mszl2c5az4
2013-04-19 17:49:20 +02:00
Quentin (OpenERP) d621d26516 [FIX] orm, _generate_order_by(): allow to order by LOG_ACCESS_COLUMNS even if the column is not defined again in self._columns. Raising an error instead of silently skipping the order_by
bzr revid: qdp-launchpad@openerp.com-20130419145417-2tix8ynmx51qiqkf
2013-04-19 16:54:17 +02:00
Launchpad Translations on behalf of openerp 6a600ff311 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130420064840-ctlb3ywgmfytczfj
2013-04-20 06:48:40 +00:00
Olivier Dony 360b549677 [MERGE] res.partner: many important fixes for contact/company management and address management, see bug 1160365
- Fix autosync of accounting/invoicing-related fields on contacts, just as if they were actually modeled as fields.related to the parent commercial entity. This starts with the addition of the new functional field `commercial_partner_id`, to locate the commercial entity for any partner. The commercial entity is defined as the first ancestor (starting at the partner itself) that is either marked `is_company` or has no parent.

- Corrected autosync of address fields (bug 1160425). Also included in the same patch, because those two mechanisms are closely related and share some parts of the implementation. "use_parent_address" now defaults to False, and auto-sync only happens downstream, except for a special case when creating a new company and a new contact at the same time

- `is_company` does not reset the parent_id field anymore, to allow for multi-level structures. The `parent_id` field now also stays visible if it has a non-empty value

- the `email`, `phone`, `fax`, `mobile`, `lang`, etc. that were sometimes synced when changing parent company are now properly left alone

- res.partner.address_get() now defaults to the partner being looked up rather than company when no match is found at all and no "default" exists. This avoids losing the contact info on invoices when a new contact+company pair is created.

- the embedded contact creation mini-form was updated to include the address fields and the `type` field

- res.partner.name_get now return "Company, Contact" rather than "Contact (Company)" to make it clearer that the company is selected as well.

- Added warning message when changing the Company of a Contact that already has a company, so it is clear that it should only be done if the Company was incorrect - in other cases a new contact must be created under the new company.

- Fixed search domains using "child_of" to also include deactived records, so that using this operator in the search view of business documents returns the expected results.

- fixed propagation of "is_supplier" flag when creation a parent company for a contact created on the fly on a Purchase Order, and when adding contacts to an existing Supplier Company

lp bug: https://launchpad.net/bugs/1160365 fixed
lp bug: https://launchpad.net/bugs/1122363 fixed
lp bug: https://launchpad.net/bugs/1160425 fixed

bzr revid: odo@openerp.com-20130420032529-pvv6vuelp84bt26j
2013-04-20 05:25:29 +02:00
Olivier Dony 16b38a053a [FIX] res.partner: fix invisible attrs on Contacts tab, empty o2m field results in `[]`, not `False`
bzr revid: odo@openerp.com-20130420004713-0cblmquf4t6i2n0r
2013-04-20 02:47:13 +02:00
Olivier Dony 18ee18244f [FIX] test_expression: assertion was too sensitive to exact parameters
Now that res.partner.child_ids has an extra domain
attribute the exact number of parameters of queries
using `child_ids` in the WHERE clause is different.

bzr revid: odo@openerp.com-20130419173159-ef1onm3823hsi77n
2013-04-19 19:31:59 +02:00
Olivier Dony 9b9c3fa59c [FIX] res.partner.name_get: partners marked as "is_company" should appear as standalone
This is more consistent with the way we expect reporting
to work, and will also ensure that these companies
appear right above their contacts in search order
(which will match name_get)

bzr revid: odo@openerp.com-20130419164728-25312wtyzt9h6egw
2013-04-19 18:47:28 +02:00
Olivier Dony 83feb1c46f [REVERT] res.partner: undo change of ordering in name_search result, to be addressed via a stored display_name field (temporarily added by account_report_company module in 7.0)
bzr revid: odo@openerp.com-20130419164447-wrmfghxi44au3273
2013-04-19 18:44:47 +02:00
Olivier Dony cfb53f1aad [FIX] res.partner: search using 'child_of' should include inactive children
This is necessary for 2 reasons:
- when searching on Business documents the search domain will be
  [('partner_id', 'child_of', 'ACME')] in order to match all
  descendants, and it must match inactive children as well
- in other cases like for resolving IDs to update via store
  triggers, it is necessary that 'child_of' returns inactive
  children too.

The implementation is tricky because the ORM automatically 
transform 'child_of' domains into recursive searches with
[('parent_id', 'in', ids)], which is the same query that the
reverse one2many 'child_ids' will also use to find contacts.
The overridden search() therefore matches this domain pattern
only when there is one criterion (to avoid side-effects in
other cases) and a dummy extra 'domain' was added to the
definition of the 'child_ids' o2m so it won't match.
The net result is that child_ids will not return inactive
children while child_of will return all descendants when
it is the only criterion. This is the expected behavior
whenever child_of is used on res.partner, because
it's safer to always show business documents.
The only side-effects will be for custom/manual search
calls with a single criterion of the form ('parent_id','in', x)
and those can be fixed by adding an extra domain
component ('active','=',True), just like child_ids does.

bzr revid: odo@openerp.com-20130419135756-2kbhwr23lygqdoob
2013-04-19 15:57:56 +02:00
Launchpad Translations on behalf of openerp 230b23e6cb Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130419061733-j4th561m2dju73zo
bzr revid: launchpad_translations_on_behalf_of_openerp-20130419061748-4sz8agg8laqbyu4p
2013-04-19 06:17:48 +00:00
Olivier Dony 3c5559045c [FIX] res.partner: add onchange warning when changing an existing contact's company
bzr revid: odo@openerp.com-20130418153829-rmkd6xo1cajgfer5
2013-04-18 17:38:29 +02:00
Olivier Dony dfbe68e69d [IMP] res.partner: rename commercial_id to commercial_partner_id + make function field inheritable
The name `commercial_partner_id` better reflects its
purpose and the fact that it is a FK to a partner.


An extra indirection through a lambda function was
also added to the definition of the function field
to make it possible to override it in other modules
(otherwise the function is passed by copy directly
and cannot be inherited later)

bzr revid: odo@openerp.com-20130418144533-owupfwn6h83q432x
2013-04-18 16:45:33 +02:00
Antony Lesuisse 4f87484805 [FIX] ir.cron add a safeguard mecanism against version mistach when polling
bzr revid: al@openerp.com-20130418010410-0zz1zkexnjzjp3si
2013-04-18 03:04:10 +02:00
Olivier Dony 06cd0a1c7f [FIX] res.partner: avoid hiding `parent_id` and `child_ids` fields if they are set, irregardless of the rest of the `is_company` flag
This prevents hiding real data and also allows creating more
complex/flexible structures by setting the values of these
fields before or after setting is_company, to reach the
desired result.

bzr revid: odo@openerp.com-20130416093403-9m484d30qqq5ab8l
2013-04-16 11:34:03 +02:00
Olivier Dony d734bf58cc [FIX] res.partner: name_get: return "Company, Contact" rather than "Contact (Company)" to make it clearer that the company is selected as well
bzr revid: odo@openerp.com-20130416093121-t5soophs2aui8rzq
2013-04-16 11:31:21 +02:00
Quentin (OpenERP) d2e71a65e1 [IMP] ir_translation: GUI improve in order to be able to change the english value of a model field (eg: a product name) directly in the translation window + small refactoring in order to test 'if context is None' rather than 'if not context' (see lp bug 525808)
bzr revid: qdp-launchpad@openerp.com-20130416091501-sgm3gdm80oxajahz
2013-04-16 11:15:01 +02:00
Olivier Dony 2c6d69e0f1 [FIX] res.partner: propagate `is_supplier` property when creating parent or child partner for a supplier
This is not necessary for the `is_customer` flag, as it is
always True by default (customers are created more frequently).
Passing the field value via an invisible field in the mini
contact form is necessary because context `default_*` values are
automatically discarded by the ORM when creating o2m
or m2m records (as they are supposed to apply to a different model).

bzr revid: odo@openerp.com-20130416091027-y7iwvpjhowg53lry
2013-04-16 11:10:27 +02:00
Stephane Wirtel 294e675f8b [MERGE] After the installation, reload the Apps interface if the modules are not
on the local repo of the addons.

bzr revid: stw@openerp.com-20130416080120-2xbxilnaw2j3i0lu
2013-04-16 10:01:20 +02:00
Launchpad Translations on behalf of openerp 46e5767367 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130416052714-8akmv4r170byjx0k
2013-04-16 05:27:14 +00:00
Olivier Dony f985391ba0 [MERGE] Sync with 7.0
bzr revid: odo@openerp.com-20130415181836-cmq936wu0w7alwky
2013-04-15 20:18:36 +02:00
Olivier Dony 8efd16f25a [FIX] res.partner, orm._check_recursion: prevent recursive partner structures + fix false positives in check_recursion()
- res.partner must prevent creating loops in partner
hierarchies, and this can be done easily with an
extra _constraint using the ORM's builtin _check_recursion

- _check_recursion's implementation incorrectly
assumed that the provided 'ids' were unrelated
(not part of a common hierarchy).

- add tests for _check_recursion via extra
tests on res.partner structure
(explains why both patches are in the same
commit)

bzr revid: odo@openerp.com-20130415171732-aj3j2e2mycvzf4kp
2013-04-15 19:17:32 +02:00
Stephane Wirtel cff29fa888 [MERGE] Upstream
bzr revid: stw@openerp.com-20130415154400-fq7ydj6q1y07n02w
2013-04-15 17:44:00 +02:00
Christophe Simonis ef062c086b [FIX] typo in method name in apps.js
bzr revid: chs@openerp.com-20130415144708-ezj5xeuo3yylb5em
2013-04-15 16:47:08 +02:00
Xavier Morel 5fd1e56566 [FIX] incorrect view in super() call
super() finds the MRO parent of the provided class to resume the
execution chain from there, so the class being defined should be
provided.

Here view called super(osv.osv, self).create so if osv.osv (Model) had
a create() defined (which luckily it does not) it would've been
skipped.

bzr revid: xmo@openerp.com-20130415105744-cfx47t01oc7loyes
2013-04-15 12:57:44 +02:00
Cedric Snauwaert 56badfcb46 [REF]ir_translation: improve _get_src and _set_src function
bzr revid: csn@openerp.com-20130415100914-wm0wqhgg5mou2wxs
2013-04-15 12:09:14 +02:00
Launchpad Translations on behalf of openerp c13ceba6b9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130412060536-q07q8ed9v8ldi2kv
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414055031-dgknuaf8a4dhgt16
bzr revid: launchpad_translations_on_behalf_of_openerp-20130413063110-rtd3r7hxe54yb8eq
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414054933-k6o13mitp3dl62xq
bzr revid: launchpad_translations_on_behalf_of_openerp-20130415060648-klbxmc1afr5jq4vb
bzr revid: launchpad_translations_on_behalf_of_openerp-20130412060533-fq4nwi1i6h39y7pl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130413063146-745583mwivnzgjqj
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414055028-v2dnk713g9ydbvpo
bzr revid: launchpad_translations_on_behalf_of_openerp-20130415060722-gvarcrrppfcq777a
2013-04-15 06:07:22 +00:00
Quentin (OpenERP) 3f1d969e51 [FIX] module, technical reference guide report: don't print fields having the same name than another on another object that have been modified in that module. + small refactoring
bzr revid: qdp-launchpad@openerp.com-20130412133214-s92o4gcfwfu7yfbp
2013-04-12 15:32:14 +02:00
Quentin (OpenERP) 7f4d6299cc [FIX] res_bank: good naming of the keyword parameters of fields_get()
bzr revid: qdp-launchpad@openerp.com-20130412133008-d5l6yxm8v7in9i9x
2013-04-12 15:30:08 +02:00
Quentin (OpenERP) f354be38a3 [FIX] module, technical reference guide report: print only the that have been added, not all the fields of the modified objects
bzr revid: qdp-launchpad@openerp.com-20130412125754-qfu30oxc7yrsrrzv
2013-04-12 14:57:54 +02:00
Cedric Snauwaert 2455ef9463 [FIX]ir_translation: replace source field to show value of the term stored in db and reflect change directly
in db when changing source value

bzr revid: csn@openerp.com-20130412124914-8epmco1z37ge1oui
2013-04-12 14:49:14 +02:00
Launchpad Translations on behalf of openerp 63167859c1 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130410055405-w3d7pmwo87vl44eu
bzr revid: launchpad_translations_on_behalf_of_openerp-20130411144320-1vmytr6rwujytg83
bzr revid: launchpad_translations_on_behalf_of_openerp-20130412060508-w8b9st5nhhzb0hh0
2013-04-12 06:05:08 +00:00
Olivier Dony c5e4faa7dc [FIX] res.partner: make the computed display_address use all address fields, including extra/custom ones
lp bug: https://launchpad.net/bugs/1122363 fixed

bzr revid: odo@openerp.com-20130411191110-5q7vd77m0e78dg8u
2013-04-11 21:11:10 +02:00
Olivier Dony e78ed60a5a [FIX] res.partner: make _address_fields method conform to its documented return type (detected by Nhomar Hernandez)
This will make overriddes more straightforward.

bzr revid: odo@openerp.com-20130411190050-8vhx9laialsyrm3r
2013-04-11 21:00:50 +02:00
Christophe Simonis b01528e3f0 [FIX] res_config: add missing import lost during previous commit
bzr revid: chs@openerp.com-20130411183634-pmg5cn82f8s174y1
2013-04-11 20:36:34 +02:00
Christophe Simonis 841cf5aaad merge upstream
bzr revid: chs@openerp.com-20130411154519-xvepmjrm4ibqddx7
2013-04-11 17:45:19 +02:00
Raphael Collet 05851d21ba [MERGE] from trunk
bzr revid: rco@openerp.com-20130411073017-x6e4h8xbvmy3ofdw
2013-04-11 09:30:17 +02:00
Olivier Dony 59fe76f24c [FIX] res.partner form: switch default `use_parent_address` to False in kanban contact too, replace by defaults for address fields
We should never turn the `use_parent_address` option on
unless the user explicitly wants to use it. It makes
further editing more convoluted (need to go to the
company address) and is really an advanced feature.

It was only set by via context defaults when adding
contacts to a company ; we can replace that with a
set of defaults that will copy the company address
fields to the contact. Users can still switch to
automatic synchronization if they really want it,
or simply further edit the address of the contact.

Also fixed the layout of the mini-form view, now
using a simpler vertical layout with address at
bottom, since the main info of a contact needs
to be entered first.

bzr revid: odo@openerp.com-20130410170101-t9covdj6nmyn44jf
2013-04-10 19:01:01 +02:00
Olivier Dony 5a222c8f90 [FIX] res.partner form view: remove now useless oe_inline class so `company` field can take 100% width of parent div
bzr revid: odo@openerp.com-20130410154242-kkgrthb5cb11d49d
2013-04-10 17:42:42 +02:00
Olivier Dony 8468af8606 [FIX] res.partner.name_search: make sure companies always come before contacts when both match
bzr revid: odo@openerp.com-20130410152309-u4dn8bxssvcwdc8c
2013-04-10 17:23:09 +02:00
Christophe Matthieu a1f1782cc0 [IMP] res_partner, res_users: small change in views
bzr revid: chm@openerp.com-20130410130145-qhtvhx6lrl3gt3x5
2013-04-10 15:01:45 +02:00
Olivier Dony 9bec1595bd [FIX] res.partner address sync: `type` field should not be synced wih other address fields
It is valid to use the parent address but still set a different
type of address - the name, email, phone, etc. could be different.

bzr revid: odo@openerp.com-20130410123229-9l60sbcks3tpmy7x
2013-04-10 14:32:29 +02:00
Olivier Dony 9dbe29b2b5 [FIX] res.partner.address_get: default to partner being looked up rather than company when no match is found at all (and no "default" exists)
Using the commercial entity is not a very good default choice
in many cases. If a new contact is created on-the-fly for a
new document (e.g. sales order), his/her company may be an
empty shell and/or a large corporation that should not be
directly used for e.g. billing/invoicing purposed.
Once a contact/company is set to "invoicing" or "delivery"
we use it, but in other cases we stick to the provided
partner/contact as a saner default.
This should not change anything for cases where advanced
contact management is used and proper address types are
set.

bzr revid: odo@openerp.com-20130410121536-vm93o6vxhi3b8feu
2013-04-10 14:15:36 +02: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
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
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) 70fbc25d93 [IMP] base, res_partner and contacts management: improve usability and user experience.
1) whennever a contact is created from a parent record: allow to set a dedicated address
2) move the use_parent_address field near the address

bzr revid: qdp-launchpad@openerp.com-20130408155934-bk2apzq1gcktqr6m
2013-04-08 17:59:34 +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
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
Olivier Dony 2bf1034cd2 [FIX] res.partner: autosync of commercial fields and address fields + correct views accordingly + basic tests
* Commercial fields (bug 1160365)

Fix autosync of accounting/invoicing-related fields on contacts,
just as if they were actually modeled as fields.related to the
parent commercial entity.
This starts with the addition of the new functional field
`commercial_id`, to locate the commercial entity for any partner.
The commercial entity is defined as the first ancestor (starting
at the partner itself) that is either marked `is_company` or has
no parent. [This is Part A of the solution on bug 1160365].

Then, whenever a partner is created or modified:
- if it is a commercial entity, the commercial fields are synced
downstream to all its descendants, stopping at company boundaries.
- if is is not a commercial entity, the commercial fields are
synced from its parent commercial entity.
The list of fields to sync is determined by calling the new
res.partner method `_commercial_fields()` which can be easily
extended by any module that adds commercial fields on res.partner.
A utility method `open_commercial_entity()` was added to
res.partner to make it easy to include a button for editing the
parent commercial entity, to be displayed instead of now-hidden
commercial fields.
[This is part B of the solution on bug 1160365]

The res.partner.address_get() method (used to find child partners
of certain types, e.g. "invoice") was udpated to take the new
"commercial entity" notion into account: it will now look for
matches in children but also parents and siblings that are part
of the same "commercial entity". The default partner `type` is
now "contact" to reflect the new model ; "default" is
inappropriate because it is a wildcard and would stop the type
lookup early.
[This composes parts C and D of the solution on bug 1160365]

Note: This fix comes with a matching addons fix to implement
module-specific extensions of part B, as well as part E of the
solution.


* Address fields (bug 1160425)

Corrected autosync of address fields is also included in the
same branch, because those two mechanisms are closely related
and share some parts of the implementation.

The `use_parent_address` field now defaults to False (except
in the mini-kanban view of contacts on a partner form), and
the autosync of address fields has been modified to only work
downstream and never update a parent company if a child contact
is modified. Instead, the address fields are now displayed
readonly on contacts that use the parent address, with a button
to edit the parent address (new method open_parent(), similar
to open_commercial_entity() but opening the direct parent).

To make the initial creation of a contact + company pair,
a special case was added: when a new contact is created for
a company that has no other contact and no address, the
address of the contact is assumed to be that of the company
so it is moved to the company, then the `use_parent_address`
flag is enabled on the contact, and the `is_company` flag on
the company. This covers a use case where contact and
company are created on-the-fly when creating a new document.

Many logical flaws in the autosync of address fields have been
corrected and are now covered by unit tests.


* Misc related fixes

- checking `is_company` does not reset the parent_id field
anymore, to allow for multi-level structures. The field is
still hidden automatically because having an empty "Company"
field on the form view of a company is quite suprising), but
this UI behavior is easily customized;
- the `email`, `phone`, `fax`, `mobile`, `lang`, etc. that
were sometimes synced when changing parent company are now
properly left alone;
- the `use_parent_address` field is now always visible next
to the parent_id field when a parent is set

lp bug: https://launchpad.net/bugs/1160425 fixed
lp bug: https://launchpad.net/bugs/1160365 fixed

bzr revid: odo@openerp.com-20130408013742-tm8w0w0nmunanokk
2013-04-08 03:37:42 +02:00
Fabien Pinckaers fee9494b4b [IMP] module view
bzr revid: fp@openerp.com-20130407122517-zkwmkr17bb7q6p3a
2013-04-07 14:25:17 +02:00
Fabien Pinckaers 8e45eea5d1 [IMP] merge from fva + small changes in .py loading
bzr revid: fp@openerp.com-20130406144259-2gg6hte6dueaxcwt
2013-04-06 16:42:59 +02:00
Thibault Delavallée 2ab15ddeaf [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130405110750-1dd4y02xz3wb6ill
bzr revid: tde@openerp.com-20130405133237-n7k66b3w0b3a17o3
2013-04-05 15:32:37 +02:00
Thibault Delavallée 58ccbfc184 [FIX] service/model.py: fixed missing import of psycopg error OperationalError added when merging 7.0 into trunk.
bzr revid: tde@openerp.com-20130405133203-ijustxnwkabw3no6
2013-04-05 15:32:03 +02:00
Dharmraj Zala (OpenERP Trainee) 363c4ab2a9 [FIX]Improved field int res_user_view.xml tree view
lp bug: https://launchpad.net/bugs/1164561 fixed

bzr revid: dizzy.zala@gmail.com-20130405071522-xmpa556spxe95i5b
2013-04-05 12:45:22 +05:30
Vo Minh Thu 307ca374d6 [MERGE] forward merge 7.0 until revision 4919.
bzr revid: vmt@openerp.com-20130404130704-24vsmczw34cssytd
2013-04-04 15:07:04 +02:00
Launchpad Translations on behalf of openerp 5a4be3d44c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130403150224-6o2tq7pqtgax4o8w
bzr revid: launchpad_translations_on_behalf_of_openerp-20130404145635-l4x86488xak0gwr1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130404145655-30mhci39kbd5n7dq
2013-04-04 14:56:55 +00:00
Thibault Delavallée bef293af4b [IMP] res_partner: customers is now sequence 2, because salesteam will be 1.
bzr revid: tde@openerp.com-20130404115719-glq8uqgvyvhm0ukd
2013-04-04 13:57:19 +02:00
Raphael Collet b99398fa29 [IMP] registry: make class Registry inherit from abstract class collections.Mapping
bzr revid: rco@openerp.com-20130404102524-innz9qu824yfds4b
2013-04-04 12:25:24 +02:00
Thibault Delavallée 21004c4176 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130402081304-thg3kecg8lvplo0p
bzr revid: tde@openerp.com-20130404090144-zblaozhwig9f2e3s
2013-04-04 11:01:44 +02:00
al@openerp.com c532e3da9e [FIX] workers limit cron memory usage
bzr revid: al@openerp.com-20130405001112-gknqvx0iyjmu1ona
2013-04-05 02:11:12 +02:00
Thibault Delavallée 347b2a7604 [MERGE] [FIX] tools: mail: html2plaintext better manages carriage returns.
lp bug: https://launchpad.net/bugs/1159782 fixed

bzr revid: tde@openerp.com-20130403083237-a406615qs8pe1jon
2013-04-03 10:32:37 +02:00
Antony Lesuisse 051885fd88 [MERGE] workers cron each job should be considered as one request
bzr revid: al@openerp.com-20130403013833-4599683ji5tztevd
2013-04-03 03:38:33 +02:00
Vo Minh Thu 27ab383508 [FIX] loading: typo.
lp bug: https://launchpad.net/bugs/1162753 fixed

bzr revid: vmt@openerp.com-20130402092914-cqrjxveg66gbpm3s
2013-04-02 11:29:14 +02:00
Vo Minh Thu 9c4f0bf9d8 [FIX] service.db: forgot to remove the indicing when pooler.get_pool() was replaced.
lp bug: https://launchpad.net/bugs/1162681 fixed

bzr revid: vmt@openerp.com-20130402091852-9hsatm95ej53lllg
2013-04-02 11:18:52 +02:00
Christophe Matthieu d9e503ad6f [IMP] res_user: remove overwrite of create who change company_id value
bzr revid: chm@openerp.com-20130402084255-gapusfwxuyu2cfs1
2013-04-02 10:42:55 +02:00
Christophe Matthieu aa048ed5e9 [IMP] res_partner: remove write change
bzr revid: chm@openerp.com-20130402082728-rlrd8wy5dy4o87n9
2013-04-02 10:27:28 +02:00
Christophe Matthieu a423e08fee [IMP] res_partner: remove has_user_ids
bzr revid: chm@openerp.com-20130402082052-99wun0xuf6g4heh4
2013-04-02 10:20:52 +02:00
Thibault Delavallée 140ba0a6a7 [FIX] ir_action: no string but var.
bzr revid: tde@openerp.com-20130402081234-v6w6oga8q4y23yy4
2013-04-02 10:12:34 +02:00
Launchpad Translations on behalf of openerp 252bcc802f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060824-pc5f2pj14gj0ak27
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055726-frtzw3gc9ut4wx4y
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053127-tolr13p1b3bhjny1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054749-t3x0zc7qk3n4man2
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060920-k0cnlpk0rxcli841
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055741-loojniiz6du9upat
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053211-yvt1h32v41rs6jje
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054814-fwg742kzhsupr6kc
bzr revid: launchpad_translations_on_behalf_of_openerp-20130329051100-3ul1k4qwwm2f49gt
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060923-wch1f8ndmb15nu6x
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055759-aj1nc93t9420lov0
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053215-kqqgqefzp95fa1tk
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054817-k33rri349nc2ioiz
2013-04-02 05:48:17 +00:00
Launchpad Translations on behalf of openerp 3450d73332 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331052742-dbyi02qcz3pizf30
2013-03-31 05:27:42 +00:00
Christophe Matthieu 600f03b294 [FIX] html2plaintext: bug 1159782
bzr revid: chm@openerp.com-20130329154130-56wjtfrj41eatxl6
2013-03-29 16:41:30 +01:00
Christophe Matthieu 40844a0645 [MERGE] from trunk
bzr revid: chm@openerp.com-20130329143357-t9jh49676giyxhwe
2013-03-29 15:33:57 +01:00
Raphael Collet 09be864f1d [IMP] replace all tests like 'registry.get(X)' by 'X in registry' where X is non static
bzr revid: rco@openerp.com-20130329140723-dnrl02saky570xg0
2013-03-29 15:07:23 +01:00
Raphael Collet d3657d858f [IMP] registry: add convenience operators ('in' and 'iter') on registry objects
bzr revid: rco@openerp.com-20130329135853-woi26cl2yiofv7h2
2013-03-29 14:58:53 +01:00
Xavier ALT 43cc95ce2b [FIX] partner: fix update for company address
* when writing an empty value to ADDRESS_FIELDS, that value
    should also be propagated by update_address()

  * when creating a contact from a company form view, even with
    'use_company_address', company's contact address remains empty. We
    now force adding missing address fields uppon creation when default
    'use_company_address' is True.

bzr revid: xal@openerp.com-20130329112317-6lat4jx5x2yh18t6
2013-03-29 12:23:17 +01:00
Thibault Delavallée 46091deed9 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130328160812-7ueg65eshcsde0jj
bzr revid: tde@openerp.com-20130329085045-3s9b8oibubphp724
2013-03-29 09:50:45 +01:00
Launchpad Translations on behalf of openerp 42e713aab2 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130328052132-4jmsvd1psrn33q8l
bzr revid: launchpad_translations_on_behalf_of_openerp-20130329050732-0qno0says8riolps
2013-03-29 05:07:32 +00:00
Vo Minh Thu 79bd8db0fd [FIX] WorkerCron: give a chance to process_limit() between each database.
bzr revid: vmt@openerp.com-20130328115905-ddib9g4bbu0kx2wn
2013-03-28 12:59:05 +01:00
Vo Minh Thu fc4d9c8633 [REF] netsvc: always use psutil: it is needed in service.workers (and listed in setup.py).
bzr revid: vmt@openerp.com-20130328110605-2kw367x1om7wzhvm
2013-03-28 12:06:05 +01:00
Vo Minh Thu c3aae0abdb [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130328095006-o01omst9g0uhm0iz
2013-03-28 10:50:06 +01:00
Thibault Delavallée c696445656 [FIX] ir_action: when truing to get get_empty_list_help, be sure the model actually exists. Issue trigered by some tests.
bzr revid: tde@openerp.com-20130328093847-8k4o9vvs4p71a4al
2013-03-28 10:38:47 +01:00
Vo Minh Thu aa18274ef0 [REF] common: removed unused import.
bzr revid: vmt@openerp.com-20130328093438-wkd1k084oqggxnmm
2013-03-28 10:34:38 +01:00
Vo Minh Thu 34e8deeb4e [REM] common: removed login_message() which is not used.
bzr revid: vmt@openerp.com-20130328093018-c4s19buicwwol8y2
2013-03-28 10:30:18 +01:00
Vo Minh Thu 244bca8f6c [REF] common: the previously removed functions were still listed in dispatch().
bzr revid: vmt@openerp.com-20130328092541-zahlbgpidbm2ugfv
2013-03-28 10:25:41 +01:00
Thibault Delavallée 655ef77092 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130328092414-htawc7j3jrxte866
2013-03-28 10:24:14 +01:00
Thibault Delavallée 5c091dd8e2 [CLEAN] BaseModel: moved get_empty_list_help method to a better place in the code; added some comments.
bzr revid: tde@openerp.com-20130328092357-v3grmw9brp9wtfj0
2013-03-28 10:23:57 +01:00
Vo Minh Thu 4ed7ec95b7 [MERGE] removed LocalService("workflow"), Logger class, and TEST log level.
bzr revid: vmt@openerp.com-20130327170639-uamgg7shlmtxgpxv
2013-03-27 18:06:39 +01:00
Vo Minh Thu d6ea526e36 [MERGE] openerp.pooler is deprecated.
bzr revid: vmt@openerp.com-20130327164045-ziw4lj50owdvmfbw
2013-03-27 17:40:45 +01:00
Xavier Morel 39ddcfd94d [REM] broken functions (missing import, removed packages)
Also remove extract_zip_file, only used by broken functions

bzr revid: xmo@openerp.com-20130327162307-zcbbpjojo8lrwnj0
2013-03-27 17:23:07 +01:00
Vo Minh Thu 23d672dfc3 [MERGE] reports: make it possible to use only XML declaration, even with custom parsers.
This makes report registration more uniform, and report rendering be possible
through the ORM (and thus the model service, instead of the report service).

To register a report, always use the database, i.e. a <report> tag within an
XML file. The custom parser, if any, will be specified in the database.
Previously specify a custom parser, the report was declared in Python.

Each model exposes a print_report() method, which will take the report name (as
many report can be defined on a single model) in argument.

bzr revid: vmt@openerp.com-20130327161129-6e7jz7l3lx7z1t18
2013-03-27 17:11:29 +01:00
Vo Minh Thu 255cec154a [IMP] report: let the exceptions bubble up when using eval().
bzr revid: vmt@openerp.com-20130327160420-pxw83283xcro1h52
2013-03-27 17:04:20 +01:00
Quentin (OpenERP) 72efeaa44f [FIX] base, ir.ui.view: added a default value for 'type' field as it's a required functional field without fnct_inv (thus not possible to enter a value). This is needed in order to let people create their views manually via the menuitem
bzr revid: qdp-launchpad@openerp.com-20130327160258-jev32y4t99vj6b5s
2013-03-27 17:02:58 +01:00
Vo Minh Thu 4613a97c01 [REF] trolls.convert: missed an opportunity to reuse a beautiful association list.
bzr revid: vmt@openerp.com-20130327155917-xaepclhoazgw51ef
2013-03-27 16:59:17 +01:00
Xavier Morel 461973b4c9 [IMP] usage of python in convert_csv
* the reduce is equivalent to any
* apply De Morgan law
* misc.ustr is a function, can just pass it directly to map

bzr revid: xmo@openerp.com-20130327155424-dfbo915tl8qhsvqu
2013-03-27 16:54:24 +01:00
Vo Minh Thu 92aace0c13 [DOC] netsvc: typo in docstring.
bzr revid: vmt@openerp.com-20130327155353-5eo7r95e7gbw9c4l
2013-03-27 16:53:53 +01:00
Vo Minh Thu de5c84c0e1 [REF] removed nested import openerp.
bzr revid: vmt@openerp.com-20130327154714-fa3k6gqtsmlt3vx6
2013-03-27 16:47:14 +01:00
Vo Minh Thu ce58e16138 [REF] yaml_import: removed nested import openerp.
bzr revid: vmt@openerp.com-20130327154425-uu1fa01tdhrjt8kn
2013-03-27 16:44:25 +01:00
Vo Minh Thu 7b8f4fe5ee [REF] tests: use the openerp.tests namespace for test-related logging.
bzr revid: vmt@openerp.com-20130327153843-u62ftp74qv01u1ww
2013-03-27 16:38:43 +01:00
Vo Minh Thu 5134bf4b94 [REF] registry: the new_registry() helper is not useful enough, we do not need it at the top-level.
bzr revid: vmt@openerp.com-20130327152322-1bsslx8jicjh26eq
2013-03-27 16:23:22 +01:00
Christophe Matthieu 86ebcc1fdc [IMP] res_user: on change login change email for simplified mode
bzr revid: chm@openerp.com-20130327150144-y7whllsd1sb3l71f
2013-03-27 16:01:44 +01:00
Vo Minh Thu 314a8dab70 [REF] pooler: mark the functions as deprecated.
bzr revid: vmt@openerp.com-20130327141653-p7re4tknkwe1pc80
2013-03-27 15:16:53 +01:00
Chris Biersbach 15bd42f5e5 [FIX] Removes the limit of 64 characters from additional text fields added via the interface
lp bug: https://launchpad.net/bugs/1053511 fixed

bzr revid: cbi@openerp.com-20130327132335-tro1p1n5at042jfb
2013-03-27 14:23:35 +01:00
Christophe Matthieu 0fc5753a43 [IMP] res_user: on change login, change email
bzr revid: chm@openerp.com-20130327132142-xth9hpxtfh3qa3or
2013-03-27 14:21:42 +01:00
Vo Minh Thu 1e7e2ca753 [REF] no longer use openerp.pooler.
Either use openerp.modules.registry.RegistryManager when the full
new() signature is needed, or use openerp.registry().

Replaced also some pool.get() with pool[] because KeyErrors
are better than AttributeErrors on None.

bzr revid: vmt@openerp.com-20130327111014-2i0hlvpy5y5ku7hm
2013-03-27 12:10:14 +01:00
Vo Minh Thu 684bd35442 [REF] registry: begin to remove openerp.pooler:
- call openerp.modules.registry.RegistryManager instead
- expose openerp.get_pool()

bzr revid: vmt@openerp.com-20130327093125-iqsyvvjm0ej7do14
2013-03-27 10:31:25 +01:00
Vo Minh Thu 4ebedfc25d [REF] netsvc: it seems the re-exports from loglevels are no longer necessary.
bzr revid: vmt@openerp.com-20130326163336-61jh2efakhg0gmoi
2013-03-26 17:33:36 +01:00
Vo Minh Thu a4fbd26541 [REF]: use openerp.workflow instead of LocalService("workflow").
bzr revid: vmt@openerp.com-20130326162040-kkq46wrur3pgn6eh
2013-03-26 17:20:40 +01:00
Vo Minh Thu c313b4073a [REF] logging: removed pseudo log-level TEST.
When --test-enable is used, it is expected that test output is visible,
thus using log-level INFO is natural.

On the down side you lose the nice blue hint that tests did actually
run when --log-level test was given.

bzr revid: vmt@openerp.com-20130326155844-83e2tcqokvblr0ln
2013-03-26 16:58:44 +01:00
Vo Minh Thu d96ec9c680 [REF] logging: removed deprecated Logger class.
bzr revid: vmt@openerp.com-20130326154006-s19z7aem22qeboo0
2013-03-26 16:40:06 +01:00
Vo Minh Thu 5cc71e1bab [FIX] workitem: the early return in the case workitem.state == running was seemingly wrong as workitem.state is mutated in some other IFs.
bzr revid: vmt@openerp.com-20130326143937-lf4mswer4ablj46i
2013-03-26 15:39:37 +01:00
Christophe Matthieu d6f6e3ec4a [IMP] res_user: users are create with company_id = actual company_id
bzr revid: chm@openerp.com-20130326141858-da0e1avhwoswa99e
2013-03-26 15:18:58 +01:00
Vo Minh Thu d185f17ec6 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130326140148-1fz425g5m2s0wwjd
2013-03-26 15:01:48 +01:00
Christophe Matthieu 0cf0cf4f4c [IMP] res_users,res_partner: login = email
bzr revid: chm@openerp.com-20130326130127-974jagzvhon0biiy
2013-03-26 14:01:27 +01:00
Fabien Pinckaers 9b5db9ad9e [IMP] small code cleanup
bzr revid: fp@tinyerp.com-20130326080748-fij148wyb0tirip5
2013-03-26 09:07:48 +01:00
Frédéric van der Essen 18b74e942b [IMP] load description from 'description.html' file in module directory
bzr revid: fva@openerp.com-20130325173625-ntb9z3bgcr85ozpl
2013-03-25 18:36:25 +01:00
Vo Minh Thu 385491f46e [IMP] yaml_import: add openerp in the evaluation context.
bzr revid: vmt@openerp.com-20130325144833-aos5t6x5bc8vi0ss
2013-03-25 15:48:33 +01:00
Vo Minh Thu 2829882389 [IMP] orm: added a print_report() method.
bzr revid: vmt@openerp.com-20130325143256-f8hw66j09310cgjo
2013-03-25 15:32:56 +01:00
Vo Minh Thu cea4c4ff8c [IMP] conf.deprecation: comment.
bzr revid: vmt@openerp.com-20130325134836-0mlduchmvw8ken2o
2013-03-25 14:48:36 +01:00
Vo Minh Thu 1ea66164f3 [IMP] report: registration deprecation now guarded via openerp.conf.deprecation.
bzr revid: vmt@openerp.com-20130325131756-5bns19n20nar9ogs
2013-03-25 14:17:56 +01:00
Vo Minh Thu 464af881bf [IMP] netsvc: LocalService deprecation now guarded via openerp.conf.deprecation.
bzr revid: vmt@openerp.com-20130325131245-9o5uizn6v4r8irc3
2013-03-25 14:12:45 +01:00
Vo Minh Thu 6e43e6c4e1 [FIX] reports: now that _register_all() has been removed, LocalService() must be modified to do the lookup in the database too.
bzr revid: vmt@openerp.com-20130325123359-szxx6a0n06tha70p
2013-03-25 13:33:59 +01:00
Thibault Delavallée 5796ca4b1f [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130325104538-5nqershn6jkkxsbn
2013-03-25 11:45:38 +01:00
Launchpad Translations on behalf of openerp 646eaf3d73 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130325052335-jfts1e9p0gvmvc7s
2013-03-25 05:23:35 +00:00
Launchpad Translations on behalf of openerp 75d8c79d5f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130323051022-macd2ux7syw6cdav
2013-03-23 05:10:22 +00:00
Vo Minh Thu 010d8044fe [REF] ir.actions.report.xml: renamed ids to res_ids because those are not the self model IDs.
bzr revid: vmt@openerp.com-20130322162251-j0f3eobpc6oh4il1
2013-03-22 17:22:51 +01:00
Vo Minh Thu b08d7ef6bd [REF] ir.actions.report.xml: register_all do not make sense any more:
auto=True reports are looked up in the database for each rendering, so they do
no have to be in the report registry any longer.
auto=False reports will register themselves but at this point
they can be updated to use the new `parser` XML attribute.

bzr revid: vmt@openerp.com-20130322153955-s6nyux2pyez6c01w
2013-03-22 16:39:55 +01:00
Chris Biersbach 6eefd15744 [FIX] Forwardport of issue when starting crons from 6.1 revision 4334
bzr revid: cbi@openerp.com-20130322140331-2trqiyuck816wj4f
2013-03-22 15:03:31 +01:00
Vo Minh Thu 1683fc7abd [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322135152-1hdlptwj1qqqfz4z
2013-03-22 14:51:52 +01:00
Ravish (Open ERP) 5d4b0d3a62 [IMP]applied arrow to the specified form
bzr revid: rmu@tinyerp.com-20130322101430-hwkp4m97vst5ii8n
2013-03-22 15:44:30 +05:30
Christophe Matthieu 01eb15bdfa [IMP] ir_actions: change var name and add comment
bzr revid: chm@openerp.com-20130322093759-cq0uj3c6ucmrpe05
2013-03-22 10:37:59 +01:00
Thibault Delavallée 4e74279576 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130322090938-xoh67sg08m3ylcrk
2013-03-22 10:09:38 +01:00
Olivier Dony 41598ef041 [FIX] orm.expression: `=?` domain operator broken after 7.0 refactoring ; + added tests
lp bug: https://launchpad.net/bugs/1095635 fixed

bzr revid: odo@openerp.com-20130321173737-a0j330ro4i223fkb
2013-03-21 18:37:37 +01:00
Christophe Simonis 7fe9e8e73e [FIX] apps: add timestamp to check image to avoid cache problems
bzr revid: chs@openerp.com-20130321162636-p5w97ublixf00o5s
2013-03-21 17:26:36 +01:00
Christophe Matthieu 491c3b73f3 [IMP] code cleaning for get_empty_list_help
bzr revid: chm@openerp.com-20130321133207-j4tiibjev6lkeuxa
2013-03-21 14:32:07 +01:00
Vo Minh Thu 067cd7d15a [FIX] ir_model_data: create the _inherits parent external ID prior to the child.
This is needed so the uninstall process can simply go through
the installed data by using the ir_model_data entries in reverse
order (when ordered by IDs), so that parents are deleted before
children.

bzr revid: vmt@openerp.com-20130321133202-igea1vxlszfpk6pe
2013-03-21 14:32:02 +01:00
Launchpad Translations on behalf of openerp 4083df915f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130321050259-e16287z7tx5x2hr1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130321050350-7j423tm3q7n124on
bzr revid: launchpad_translations_on_behalf_of_openerp-20130321050354-6gc2gobnj24c9gso
2013-03-21 05:03:54 +00:00
Christophe Matthieu 45cc77dbcb [MERGE] from trunk
bzr revid: chm@openerp.com-20130320133155-qn27q8aek7zp1ls4
2013-03-20 14:31:55 +01:00
Vo Minh Thu a51b6912bd [FIX] safe_eval: better exception handling:
- the re-raising of exceptions ignored the "legal" exceptions
(the one used to early abort RPC calls and generate pop-ups)
- re-raising the exception was attempting to re-use the original
exception type but it does not always take only one argument
so it was breaking.

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

bzr revid: vmt@openerp.com-20130320132238-qzo3jptww59ndlch
2013-03-20 14:22:38 +01:00
Xavier Morel 9476f07954 [IMP] only concatenate logging configuration subsequences once
bzr revid: xmo@openerp.com-20130319163708-s4mxsdg3f9xksr07
2013-03-19 17:37:08 +01:00
Xavier Morel 7c2b70eb46 [IMP] declaratively map openerp logging levels to logging, move default logging conf to 'constant'
bzr revid: xmo@openerp.com-20130319163606-un9ogalwfk3eykc8
2013-03-19 17:36:06 +01:00
Xavier Morel db6b6480f7 [IMP] switch workflows to standard logging (silenced by default), remove wkf_logs
bzr revid: xmo@openerp.com-20130319163133-3n1k1hgooddzxntz
2013-03-19 17:31:33 +01:00
Xavier Morel 5f956523d4 [IMP] flow of workflow.workitem.process
bzr revid: xmo@openerp.com-20130319154857-q7l99vyqtksegiy0
2013-03-19 16:48:57 +01:00
Xavier Morel 2d251ea987 [REM] unused openerp.workflow.common
bzr revid: xmo@openerp.com-20130319153422-0s7sly0cjg491s0b
2013-03-19 16:34:22 +01:00
Vo Minh Thu 83786b4178 [FIX] ir.actions.action: fix the execute wich install/uninstall modules and thus invalidate its own pool.
bzr revid: vmt@openerp.com-20130319150057-fq6nkp4qhgy9x9mq
2013-03-19 16:00:57 +01:00
Vo Minh Thu fa3a3414f2 [FIX] ir.actions.action: fix the execute wich install/uninstall modules and thus invalidate its own pool.
bzr revid: vmt@openerp.com-20130319142701-1cvo6dh2yvg4z81f
2013-03-19 15:27:01 +01:00
Olivier Dony ffd258e3f0 [FIX] web_services: incorrect error message in logfile after failed DB dump, courtesy of Brendan Clune (Logic Supply)
lp bug: https://launchpad.net/bugs/1124440 fixed

bzr revid: odo@openerp.com-20130318144156-q7yw9qy83tngdg6x
2013-03-18 15:41:56 +01:00
Olivier Dony 8d6e91219f [FIX] web_services: set PGPASSWORD in environment only when db_password is set in the config
This prevents an error when trying to set an
environment variable to `False`, and is the
second part of the regression introduced in
revision 4424. See previous partial fix
at revision 4893

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

bzr revid: odo@openerp.com-20130318141532-m2xsahh5u5pi5bth
2013-03-18 15:15:32 +01:00
Thibault Delavallée 027c419181 [MERGE] 'Invite & Quick Create User' update. The server branch holds in res_users.create() the support of key in context, allowing to put xml_ids of user groups in the context of relational fields linking to res.users. The purpose of this modification is to quick-create users that will have the access rights related to the functional meaning of the field. For example creating an user in the 'Responsible' field of a task should add him in the group related to project management.
Example of use : <field name="user_id" string="Project Manager" context="{'default_groups_ref': ['base.group_user', 'project.group_project_manager']}"/> will add Employee (base.group_user) and Project Manager (project.group_project_manager) groups, as well as implied groups.

res_users:
- [add] added support of  key in context of default_get. It contains a list of xml_ids of user groups; those groups, if found, are added to the newly created user,
- [ref] refactored simplified (quick create) view that is now more like a contact card, with login and email required because of the login email that will be send to the user

bzr revid: tde@openerp.com-20130318120905-1w9xpoyppnj62wlj
2013-03-18 13:09:05 +01:00
Olivier Dony 8e3ba8e34e [FIX] service.db: missing imports
lp bug: https://launchpad.net/bugs/1155523 fixed

bzr revid: odo@openerp.com-20130318110257-x9591dl74vu8yf2f
2013-03-18 12:02:57 +01:00
Olivier Dony 125b2a804a [IMP] service.wsgi_server: useless import
bzr revid: odo@openerp.com-20130318110229-h4422zy2kcjys2ik
2013-03-18 12:02:29 +01:00
Thibault Delavallée 7602819aa3 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130315093732-2u1lc5x51276ethu
bzr revid: tde@openerp.com-20130318101836-rve5ane4rheiiq6k
2013-03-18 11:18:36 +01:00
Launchpad Translations on behalf of openerp dcc9a3aeab Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130317052921-m3gthz6l7fx1jwu7
bzr revid: launchpad_translations_on_behalf_of_openerp-20130315064417-68iimts1xgj8bn5z
bzr revid: launchpad_translations_on_behalf_of_openerp-20130317053035-kqb70nwvcg1iqldu
2013-03-17 05:30:35 +00:00
Xavier Morel 9494f21ea8 [FIX] __getattr__ implementation on BaseModel
object has no __getattr__, in the usual case super(BaseModel,
self).__getattr__ will blow up with an AttributeError (but the wrong
one).

On the other hand, if a BaseModel descendant class is used in MI
alongside a non-BM descendant (e.g. res_partner inheriting from Model
and format_address) and the non-BM descendant also implements
__getattr__, we want to forward the failed attr search to the other
__getattr__ implementation.

So check if super() has a __getattr__, call it if it does otherwise
AttributeError right there.

bzr revid: xmo@openerp.com-20130315115302-z7jla334gb9a5e43
2013-03-15 12:53:02 +01:00
Thibault Delavallée a8aebe31f3 [IMP] res_users: improved simplified form (using info_box).
bzr revid: tde@openerp.com-20130315093658-8ihhf3h4w6q3vypo
2013-03-15 10:36:58 +01:00
Launchpad Translations on behalf of openerp e23fba677e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130315045639-qfbb8ay587g0rs6p
2013-03-15 04:56:39 +00:00
Quentin (OpenERP) 43afe718fd [MERGE] tools: regex to find the good partner name
bzr revid: qdp-launchpad@openerp.com-20130314170010-ggybuy16m96kulem
2013-03-14 18:00:10 +01:00
Vo Minh Thu c79c23d26e [REF] orm:
- isinstance(ids, dict) is done at the end, but not at the beginning,
so if ids was a single dict, it would break in the map(lambda).
- The loop to convert None to False can be done in _read_flat instead
of read (there is already plenty of loops in _read_flat)
- The __getattr__ was breaking the stacktrace.

bzr revid: vmt@openerp.com-20130314154418-0wmxfw1ot92kjmzf
2013-03-14 16:44:18 +01:00
Quentin (OpenERP) 64502253b8 [FIX] base, res_currency: raise an error if a currency doesn't have any rate associated to the given period (if any)
bzr revid: qdp-launchpad@openerp.com-20130314153800-wl48wkp5f3zz0pb6
2013-03-14 16:38:00 +01:00
Christophe Simonis 7c4279cbc9 [FIX] apps: hide breadcrum of the remote action
bzr revid: chs@openerp.com-20130314145017-k2502iwwovj379m0
2013-03-14 15:50:17 +01:00
Vo Minh Thu 487fe3a1ab [MERGE] [FIX] ir.model: uninstall should not drop LOG_ACCESS_COLUMNS columns.
bzr revid: vmt@openerp.com-20130314131127-93qvwrpz0li3ba32
2013-03-14 14:11:27 +01:00
Chris Biersbach 6b80f5bdff [FIX] orm: moves the access_rule check to the end of the create method to avoid getting errors when trying to create and m2m values are passed, which can cause the rules to fail
bzr revid: cbi@openerp.com-20130314092017-agwzvwwbxev531kk
2013-03-14 10:20:17 +01:00