Commit Graph

4662 Commits

Author SHA1 Message Date
Quentin (OpenERP) a5d944fb87 [IMP/FIX] base, res_company: changed the default headers in order to add the default styles in generated RML, to allow their modification (and the report printing of chinese characters, for example)
bzr revid: qdp-launchpad@openerp.com-20130528085920-ifabgl11jfimixqd
2013-05-28 10:59:20 +02:00
Quentin (OpenERP) 968aa44bdf [FIX] report, rlm2pdf: added support of Sun-ExtA font and the possibility to define a default value for font parameters in parastyles. We can now use <paraStyle name='Normal fontName='xxxx'/> in company header, for example, if we want to define font xxxx to be used by default in each rml reports (if not overwritten in a further paraStyle)
bzr revid: qdp-launchpad@openerp.com-20130527162051-3e7ztox54vyc8xxc
2013-05-27 18:20:51 +02:00
Launchpad Translations on behalf of openerp 6c5542b96b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130522052719-nfpllnx0brrtj0rf
bzr revid: launchpad_translations_on_behalf_of_openerp-20130523061934-ugrnuz880cq201sr
bzr revid: launchpad_translations_on_behalf_of_openerp-20130526053944-8eimegnhthidxr0z
2013-05-26 05:39:44 +00:00
Martin Trigaux b8aed2249a [IMP] remove read access to outgoing mail server configuration
forward port of rev 4349 in 6.1

bzr revid: mat@openerp.com-20130521133025-198z6n1nqltcisx2
2013-05-21 15:30:25 +02:00
Launchpad Translations on behalf of openerp 1647391acc Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130519061236-r4zubxtanesjqld0
bzr revid: launchpad_translations_on_behalf_of_openerp-20130520063148-0crtjtoieit1g5k8
bzr revid: launchpad_translations_on_behalf_of_openerp-20130521054352-g6yw7uvuietnscm6
2013-05-21 05:43:52 +00:00
Olivier Dony 0e8ca44530 [FIX] ir.sequence: add a proper default value for number_next_actual (0 is disallowed by default) + avoid error when trying to alter a sequence during creation
lp bug: https://launchpad.net/bugs/960201 fixed

bzr revid: odo@openerp.com-20130517181514-xcy83yakpuqa3oik
2013-05-17 20:15:14 +02:00
Olivier Dony b50a964eb8 [MERGE] ir.sequence: lazily compute next value for PostgreSQL-backed ir.sequences + avoid resetting it at each change to the sequence, courtesy of Ronald Portier (Therp)
The original patch proposed by Ronald has been modified to
make it more suitable to a stable version, in the following
aspects:
- remove all extra physical columns (boolean flags), as they
  would break the stable policy and were actually unnecessary
  to fix the bug
- avoid displaying both the number_next and the number_next_actual,
  the latter is sufficient
- fix a possible bug when setting the number_next to 0

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

bzr revid: odo@openerp.com-20130517173513-msabph5x62c9wjxt
2013-05-17 19:35:13 +02:00
Olivier Dony 4f426731bd [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-20130517170414-zx9v1x3noqnce4h0
2013-05-17 19:04:14 +02:00
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
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
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
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
Jigar Amin (OpenERP) 6d4215c9bf - Allow setting the company_id of the partner to False in order to make the partner shared between all companies.
bzr revid: jam@tinyerp.com-20130513060734-niodo4rzs0m1v073
2013-05-13 11:37:34 +05:30
Jigar Amin (OpenERP) 7ca67757fe [MERGE] Parent Sync (70)
bzr revid: jam@tinyerp.com-20130513050358-yvsdybtry9r67ied
2013-05-13 10:33:58 +05:30
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
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
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 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
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
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) 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
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 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
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
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) 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
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
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
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
Jigar Amin 356115167d [FIX] User Partner Company has to same as User Compnay not as usder company
bzr revid: jam@tinyerp.com-20130411094336-03i3475ydat8d5jj
2013-04-11 15:13:36 +05:30
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
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
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
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
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 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
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
Christophe Matthieu 600f03b294 [FIX] html2plaintext: bug 1159782
bzr revid: chm@openerp.com-20130329154130-56wjtfrj41eatxl6
2013-03-29 16:41:30 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Cedric Snauwaert b5129816dc [FIX]res_currency: change value from 0 to 1 when no rate is associated to a given period of time
in order to prevent division by zero error

bzr revid: csn@openerp.com-20130313154342-g1d1jj3g061evf56
2013-03-13 16:43:42 +01:00
Olivier Dony ab76b7a67f [FIX] web_services: fix db dump/restore when authentication requires a password on non-win32 systems
The various pg_* utilities require the password
via a special environment variable or a special
`pgpass` file in the user home, even on Unix,
namely when the PostgreSQL connection is done
via TCP and not via a unix socket.

Setting the environment variable is relatively
safe if it is removed from the environment
immediately after the operation, and saves user
the trouble of managing the pgpass file themselves.

This had been fixed at revision 3992 but was
incorrectly removed for non win32 platforms
at revision 4424 (rev-id stw@openerp.com-20120912114651-8hcliparft1ep9tc)

lp bug: https://launchpad.net/bugs/790164 fixed
lp bug: https://launchpad.net/bugs/919100 fixed

bzr revid: odo@openerp.com-20130313152020-suo2pyrabae0ecg4
2013-03-13 16:20:20 +01:00
Thibault Delavallée 910f7097ba [IMP] res_partner: use tools.email_split instead of custom regex when parsing partner_name to find an email.
bzr revid: tde@openerp.com-20130313105640-r53xueaz36zw3fjd
2013-03-13 11:56:40 +01:00
Launchpad Translations on behalf of openerp 6972079a10 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130312051826-beyul5zabtyks7sn
2013-03-12 05:18:26 +00:00
Vo Minh Thu bfc911e737 [FIX] report: fallback on default font when a specified font does not exist.
bzr revid: vmt@openerp.com-20130311155147-pl3pi072wr819z0z
2013-03-11 16:51:47 +01:00
Launchpad Translations on behalf of openerp c5319f47f7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130309053740-hrhdafa05mp0s6cd
bzr revid: launchpad_translations_on_behalf_of_openerp-20130310051349-azaf8kb3hdi6ux85
bzr revid: launchpad_translations_on_behalf_of_openerp-20130311054204-8yc0hga0v6pkk36x
bzr revid: launchpad_translations_on_behalf_of_openerp-20130309053843-8x3181swnc2x0rim
bzr revid: launchpad_translations_on_behalf_of_openerp-20130310051523-z6034cfpv1qbztzx
bzr revid: launchpad_translations_on_behalf_of_openerp-20130311054303-38ti3nq1h5jfbasa
bzr revid: launchpad_translations_on_behalf_of_openerp-20130309053849-8eqsc9sjxknzfha8
bzr revid: launchpad_translations_on_behalf_of_openerp-20130310051527-tajzx0x6p7mzpg43
bzr revid: launchpad_translations_on_behalf_of_openerp-20130311054307-qgl6ao1a06b9an3a
2013-03-11 05:43:07 +00:00
Cedric Snauwaert f05aff8ac9 [FIX]tools/mail: fix regex when sanitizing html containing mail address
bzr revid: csn@openerp.com-20130308104850-02nfuaxdr91bo0nx
2013-03-08 11:48:50 +01:00
Olivier Dony 87a26bde3b [FIX] base: invalid address in demo data causes failure in Google Maps lookup
Apprently on 2013-03-08 Google Maps stopped
returning a location in Belgium for this invalid
street name.

We consider Google Maps as a commodity so it
is ok to have the crm_partner_assign tests
fail in case our lookup mechanism does
not work anymore.

bzr revid: odo@openerp.com-20130308094115-frjp99xi296oosxl
2013-03-08 10:41:15 +01:00
Launchpad Translations on behalf of openerp cc87ba5db7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130308052354-6aerviht20qnfh26
bzr revid: launchpad_translations_on_behalf_of_openerp-20130308060553-lujyj3qxhqljssu0
bzr revid: launchpad_translations_on_behalf_of_openerp-20130308060749-69tgopwkctb0v5ei
2013-03-08 06:07:49 +00:00
Olivier Dony 527ef066dd [REVERT] tools.translate: undo rev 4874 refactoring and renaming `trans_parse_view`, was meant for trunk
rev 4874 = rev-id xmo@openerp.com-20130306095720-3277aw0rq9pzpsw4

bzr revid: odo@openerp.com-20130307164558-alvl7hcov2uhqxbw
2013-03-07 17:45:58 +01:00
Christophe Simonis ab2dd715de [FIX] module loading: allow addons path entries to have substring of others.
i.e. having ./addons/ and ./addons2/ is now possible

bzr revid: chm@openerp.com-20130307131104-ju2n7zm7yvced68h
2013-03-07 14:11:04 +01:00
Vo Minh Thu 4a77c6a0c5 [FIX] timezone: under windows os.environ["TZ"] was not affecting the server,
now it does (probably because we make sure to first set the environment
*then* import the time module. Works fine under Windows XP.

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

bzr revid: vmt@openerp.com-20130307121637-47fac72clykizlnj
2013-03-07 13:16:37 +01:00
Olivier Dony 9bb7ff3413 [I18N] base: update translation templates for latest term changes due to bug fixes
bzr revid: odo@openerp.com-20130307120259-oiywqqlxwfpn2uc6
2013-03-07 13:02:59 +01:00
Launchpad Translations on behalf of openerp c65d36bb65 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130307054408-wu5arb2r3o3o5gmz
bzr revid: launchpad_translations_on_behalf_of_openerp-20130307054431-sed0lo6klnisoyo7
bzr revid: launchpad_translations_on_behalf_of_openerp-20130307054434-qdlzkcum9yy9mkaw
2013-03-07 05:44:34 +00:00
Quentin (OpenERP) d97916a063 [IMP] expression.py: added a clue to debug fuzzy tracebacks related to domain badly written
bzr revid: qdp-launchpad@openerp.com-20130306152328-qdlil19diks4mvkt
2013-03-06 16:23:28 +01:00
Vo Minh Thu cdfdaa455d [FIX] babel: the babel localedata was put back to its right place in the previous commit, so the zip-related hack can disappear.
bzr revid: vmt@openerp.com-20130306143317-oo4n6x78v68rqn9i
2013-03-06 15:33:17 +01:00
Xavier Morel 7e7a8b44a9 [IMP] deduplicate trans_parse_view code, rename for clarity
also correctly handle all translatable attributes in a <attribute name=...> extension tag

bzr revid: xmo@openerp.com-20130306095720-3277aw0rq9pzpsw4
2013-03-06 10:57:20 +01:00
Launchpad Translations on behalf of openerp 9623afd500 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130306062137-pxtoftblp1hmspp5
bzr revid: launchpad_translations_on_behalf_of_openerp-20130306062207-lac3gq4ck6k3mexw
bzr revid: launchpad_translations_on_behalf_of_openerp-20130306062221-a6s313kt0qg6rnkj
2013-03-06 06:22:21 +00:00
Chris Biersbach 61eb94fb58 [MERGE] OPW 585261: translations: corrects extraction of translation for placeholders
bzr revid: cbi@openerp.com-20130305091225-kkpeb6i8yohce5if
2013-03-05 10:12:25 +01:00
Launchpad Translations on behalf of openerp 420f82ec0e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130305053802-13krr4lhrwrebwak
bzr revid: launchpad_translations_on_behalf_of_openerp-20130305053905-y30zk4dbbcc3qj4b
2013-03-05 05:39:05 +00:00
Quentin (OpenERP) 8d47ec5256 [MERGE] base, res.users: added onchange_state() on res.users. Was crashing because the _inherits is not a real python inheritance
bzr revid: qdp-launchpad@openerp.com-20130304184144-iae1pdrrcfy6pveo
2013-03-04 19:41:44 +01:00
Xavier Morel 018416630d [FIX] strip server action code before passing it to eval
Python 2.7's compile handles trailing whitespaces correctly, Python
2.6 does not and blows up.

bzr revid: xmo@openerp.com-20130304164423-83vm9teu7b3c52y3
2013-03-04 17:44:23 +01:00
Cedric Snauwaert 009ea40995 [FIX]res_users : add missing on_change function for res_user simplified view
bzr revid: csn@openerp.com-20130304105817-v3y9d9vupzhuiu2u
2013-03-04 11:58:17 +01:00
Launchpad Translations on behalf of openerp 55e79b4d36 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130302052300-qobkezoqvnyoi1fl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130304055909-ixg5id5sibsci8s9
2013-03-04 05:59:09 +00:00
Olivier Dony e373ac5aeb [MERGE] *: fix/rationalize db logging to avoid incorrect values during logging
The setting/clearing of the tracking were not done
consistently, causing log messages that appeared
to come from one database while coming from another
one or none at all.

The tracker is now set at the earliest points
of request handling as possible:
- in web, when creating WebRequests (dbname, uid)
- at RPC dispatching in server (uid)
- at cron job acquisition in CronWorker (dbname)
- at Registry acquisition in RegistryManager (dbname)


The tracker is cleared at the very entrance of
the request in the WSGI `application`, ensuring
that no logging is produced with an obsolete
db name. (It cannot be cleared at the end of
the request handling because the werkzeug
wrapper outputs more logging afterwards)

bzr revid: odo@openerp.com-20130301182510-1fqo9o8di0jw95b5
2013-03-01 19:25:10 +01:00
Olivier Dony 9770caedf3 [FIX] registry: another pass of cleanup for registry signaling
Some important points to consider:
 - signaling should be done after any schema alteration (including module [un]installation),
   service registration (e.g. reports)
 - the changes need to be committed to the database *before* signaling, otherwise an
   obvious race condition occurs during reload by other workers
 - any call to restart_pool() must be considered a possible candidate for
   signaling, and the 2 above conditions must be checked

The number of explicit calls was reduced by forcing the signaling at the end of
Registry.new() in case `update_module` was passed as True. In that situation
we always want to signal the changes - so all the redundant signaling calls
can be centralized. We can also assume that the relevant changes have already
been committed at that point, otherwise the registry update would not
have worked in the first place.
This means that there is no need for explicit signaling anymore everytime
`restart_pool` is called with `update_module=True`.

Some missing cr.commit() and explicit signaling calls were added or
moved to the right place. As a reminder: signaling must be done
*after* committing the changes, and usually *after* reloading the
registry on the current worker.

bzr revid: odo@openerp.com-20130301143203-e2csf5pkllwhmwqs
2013-03-01 15:32:03 +01:00
Olivier Dony db81edc287 [FIX] *: fix/rationalize db logging to avoid incorrect values during logging
The setting/clearing of the tracking were not done
consistently, causing log messages that appeared
to come from one database while coming from another
one or none at all.

The tracker is now set at the earliest points
of request handling where we can:
- in web client, when creating WebRequests (dbname, uid)
- at RPC dispatching in server (uid)
- at cron job acquisition in CronWorker (dbname)
- at Registry acquisition in RegistryManager (dbname)


The tracker is cleared at the very entrance of
the request in the WSGI `application`, ensuring
that no logging is produced with an obsolete
db name. (It cannot be cleared at the end of
the request handling because the werkzeug
wrapper outputs more logging afterwards)

bzr revid: odo@openerp.com-20130301120744-jfitcmze2jldecod
2013-03-01 13:07:44 +01:00
Christophe Simonis d48f07fef1 [FIX] base: allow admin to freeze the value of "web.base.url" config parameter.
This config parameter is automatically updated when the admin log-in.
As this value is mean to be used in emails and links given to users, we sometime don't want
it to be updated inconditionnaly. In some cases, the admin may use alternative, private or
even local uri to connect to the server, which may not be suitable for users

bzr revid: chs@openerp.com-20130301095551-fzrlwblnawxqj9di
2013-03-01 10:55:51 +01:00
Launchpad Translations on behalf of openerp ece4451176 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130301053921-r8m4764fosovd9h6
bzr revid: launchpad_translations_on_behalf_of_openerp-20130301054021-crdgcw5mb7m77u0t
2013-03-01 05:40:21 +00:00
Olivier Dony b762551211 [FIX] ir.model: properly signal registry change for multi-process mode after altering model/db schema
bzr revid: odo@openerp.com-20130228113736-8novcpf3ibw7386s
2013-02-28 12:37:36 +01:00
Launchpad Translations on behalf of openerp 42702e15f9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130228053030-bwaxkazmgqlucg5f
2013-02-28 05:30:30 +00:00
Antony Lesuisse c353392294 [FIX] ir_attachment filestore read on windows
lp bug: https://launchpad.net/bugs/1131272 fixed

bzr revid: al@openerp.com-20130227221943-izxnxulg0picimez
2013-02-27 23:19:43 +01:00