Commit Graph

70718 Commits

Author SHA1 Message Date
Quentin (OpenERP) ee07c475ce [MERGE] account: improved res.partner.form view in order to display shortcut buttons in the top right corner
bzr revid: qdp-launchpad@openerp.com-20130418125951-8p0tfexd9jj8l75b
2013-04-18 14:59:51 +02:00
Xavier Morel d4977dd3bb [FIX] missing translation mark in error message
lp bug: https://launchpad.net/bugs/1125159 fixed

bzr revid: xmo@openerp.com-20130418125640-87g9sdowig7w565d
2013-04-18 14:56:40 +02:00
Quentin (OpenERP) dde76536dd [IMP] hr_expense: added store={..} on total amount field of hr.expense
bzr revid: qdp-launchpad@openerp.com-20130418123145-62xp6tzxom3lbcqw
2013-04-18 14:31:45 +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
Olivier Dony dc24794855 [FIX] web: support integer/float fields in search view via auto-completion + tests
integer/float fields were not offering auto-completion in search views,
making them unsearchable except via advanced search.
This patch adds the missing complete() function and removes the incorrect
value_from() function that did not conform to the 7.0 search view API.
It seemed to be a leftover of the 6.1 search field implementation
of get_value(), wrongly renamed for 7.0.

Also includes corresponding tests.

bzr revid: odo@openerp.com-20130418112001-388op1t8ugr0rhfn
2013-04-18 13:20:01 +02:00
Quentin (OpenERP) 429ef87172 [MERGE] accounts* modules: forward port of revision 9033 of addons v7 that was passing 'account_period_prefer_normal=True' in the context in each and every call to account_period.find(). The behaviour is modified in order to search only on normal periods by default
bzr revid: qdp-launchpad@openerp.com-20130418094147-q2ks4w47sn4fxdv2
bzr revid: qdp-launchpad@openerp.com-20130418103907-0qom5yfcq8osnovp
2013-04-18 12:39:07 +02:00
Quentin (OpenERP) c46929268d [FIX] account* modules: added 'account_period_prefer_normal':True in context when trying to find the period related to a date.
This patch will be forward ported in trunk by changing the behaviour of account_period.find() in order to fetch the normal periods by default (account_period_prefer_normal will be True by default) because there are no business case i could think of where you'd like to get the opening period (except in the closure but it's held in a different way there). On the other hand, it's pretty easy to forget to put that key in the context and introduce a new bug that will select the opening period instead of the wanted one

bzr revid: qdp-launchpad@openerp.com-20130418102433-t52uj23trkpr8vnb
2013-04-18 12:24:33 +02:00
Xavier Morel 356be95d0c [IMP] missing sections to web module tutorial
bzr revid: xmo@openerp.com-20130418102250-aqt0qfhoff22xgj1
2013-04-18 12:22:50 +02:00
Xavier Morel 3da2aaf488 [IMP] only use name of class being created: module is incorrect for dynamically created classes
bzr revid: xmo@openerp.com-20130418094315-qk8m13s4zzvojauw
2013-04-18 11:43:15 +02:00
Xavier Morel db4d08e3a9 [FIX] Extension of controller in-place with explicit spec of same _cp_path
When extending a controller in-place (e.g. A(Controller), B(A)) and
providing the exact same _cp_path as parent (no-op) execution path
would go into handler for _cp_path overwriting and raise an assertion
error for overwriting of existing controller.

Except this is allowed (if ugly) pattern, so warn & ignore behavior
(it is harmless).

bzr revid: xmo@openerp.com-20130418092405-wrmmrd648b9koefu
2013-04-18 11:24:05 +02:00
Cedric Snauwaert b8d99e7aa3 [FIX]sale: fix workflow problem when deleting an invoice the workflow should go to invoice_exception state
bzr revid: csn@openerp.com-20130418090011-dyg175mvwrp8ilij
2013-04-18 11:00:11 +02:00
Launchpad Translations on behalf of openerp 56b5446431 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130417055748-w9lnddgiwwvrfpbl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130418060606-6hezu76yxwsqgc11
2013-04-18 06:06:06 +00:00
Olivier Dony d279819af7 [FIX] stock, multicompany: avoid crashing when computing inventory levels and no warehouse/locations exists for a company
This is a cherry-pick backport of the trunk fix for bug 921561,
originally merged in trunk at revid fp@openerp.com-20130224101111-zz5n34c5fmr4n8jt

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

bzr revid: odo@openerp.com-20130417132021-pmf0cdvwaxrsx9ew
2013-04-17 15:20:21 +02:00
Launchpad Translations on behalf of openerp dcd398d33e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130418060603-ondw9hx00c1rmh33
2013-04-18 06:06:03 +00:00
Antony Lesuisse 060f722f09 [FIX] ir.cron add a safeguard mecanism against version mistach when polling
bzr revid: al@openerp.com-20130418014849-txrjii1vofh19je6
2013-04-18 03:48:49 +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
Stephane Wirtel 600513f09f [FIX] account: avoid a crash if the user does not select an existing chart.
bzr revid: stw@openerp.com-20130417145829-0juk1t6ikbcts7v8
2013-04-17 16:58:29 +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
Quentin (OpenERP) 51d5126fee [FIX] purchase, usability: removed default search that was hiding the RFQ's Sent
bzr revid: qdp-launchpad@openerp.com-20130417100049-r9kdsp9wyj3l58pp
2013-04-17 12:00:49 +02:00
Quentin (OpenERP) c8c95c1e9e [FIX] base_report_designer: the plugin had no .zip extension when downloaded
bzr revid: qdp-launchpad@openerp.com-20130417093256-8tkf7n5x5ghk5pd5
2013-04-17 11:32:56 +02:00
Quentin (OpenERP) 5220d93afd [IMP] product: implemented the store={} to recompute the name_template related field when it needs to be
bzr revid: qdp-launchpad@openerp.com-20130417092914-4g1k94g0rxn5bzcj
2013-04-17 11:29:14 +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
Quentin (OpenERP) ec55a58c45 [IMP] crm: log a meeting now calls message_post and writes the meeting information in the chatter
bzr revid: qdp-launchpad@openerp.com-20130417090925-l6pdm9v5lq6ify14
2013-04-17 11:09:25 +02:00
Olivier Dony 96dd64e31f [REVERT] mail: undo model-level change that can cause issue for stable deployments
Failing to force a manual update of the mail module would cause
all composer wizards to display html contents without the WYSIWYG
editor, making it mostly unusable for regular users. Users are
not expected to always force an update of all modules after
updating to the latest source code.

bzr revid: odo@openerp.com-20130417081410-dwc33ymizlihvbng
2013-04-17 10:14:10 +02:00
Cedric Snauwaert 912d45de51 [FIX]base-report-designer-plugin: when downloading plugin, file didn't have .zip extension, move zip file to static folder
bzr revid: csn@openerp.com-20130417080550-duen03d70s4tryr1
2013-04-17 10:05:50 +02:00
Vo Minh Thu 9541529215 [FIX] _auto_init(): when _auto_init() is overridden it does not return the super() result, which might brake functional fields initialization.
bzr revid: vmt@openerp.com-20130417075546-e3crirzk1trl9yr1
2013-04-17 09:55:46 +02:00
Olivier Dony f6152a63e1 [MERGE] auth_signup: upon signup of new user, the company_id[s] of the corresponding partner must be used
The default was to use those of the template user,
which may not be correct in multi-company cases.

bzr revid: odo@openerp.com-20130417073311-pu18cwlus10ypw8b
2013-04-17 09:33:11 +02:00
Vo Minh Thu d248aa30ba [REF] get_module_resource() must imported from openerp.modules (instead of openerp.addons).
bzr revid: vmt@openerp.com-20130417064051-dvtgaya0kzyryvac
2013-04-17 08:40:51 +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 d92f8821ef Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130417051550-7yf32ngvesfbrxyn
2013-04-17 05:15:50 +00:00
Paramjit Singh Sahota effe4d0318 [IMP] Improved the tooltip 'sale' to 'sell'.
bzr revid: psa@tinyerp.com-20130417050045-n10923534ysi7v81
2013-04-17 10:30:45 +05:30
Xavier Morel c19bc50648 [FIX] ids of deleted records living in shared dataset when clicking on list row
When a record is activated, the listview will do some jiggling around
assigning the ids of internal dataset to the one shared between all
views, this is mostly for the case where one switches from a "grouped"
list view, so the form view only cycles on the "current" group.

Problem is, that internal dataset is not correctly synchronized with
the shared one, so when the id is removed from the shared dataset it
is *not* removed from the internal one(s), and when the switch is made
the ids from the internal dataset are set on the shared one and
reintroduce the deleted record, leading to the form view's incorrect
state.

Fix the issue by updating the dataset's ids list when a record is
deleted from the records tree.

Also extracted some stuff from DataSetSearch's unlink callback so it
can be overridden and is more stable across datasets.

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

bzr revid: xmo@openerp.com-20130416152000-06dbwkgdb8zlf9pc
2013-04-16 17:20:00 +02:00
Vo Minh Thu 3fe1f53514 [REF] get_module_resource() must imported from openerp.modules (instead of openerp.addons).
bzr revid: vmt@openerp.com-20130416151844-gatbo4s2l2e6reme
2013-04-16 17:18:44 +02:00
Thibault Delavallée ef210bd489 [FIX] project: default visibility is employees only. Updated demo data by the way.
bzr revid: tde@openerp.com-20130416141145-3tsaz7u51xt80rer
2013-04-16 16:11:45 +02:00
Thibault Delavallée c2f02f6798 [FIX] mail, crm: fixed some access rights issues when using chatter on a document without access rights with portal users.
bzr revid: tde@openerp.com-20130417085927-wg07siehk2uhrkpu
2013-04-17 10:59:27 +02:00
Vo Minh Thu 39c88d0922 [IMP] account: cash.box.in defines its _columns, do the same for cash.box.out.
This is needed to solve an inheritance problem when adding a superclass
`base.model` (I guess this is related to the fact some code in the orm
does a copy from the class to the instance).

bzr revid: vmt@openerp.com-20130416132621-xo0lckimczqpvyos
2013-04-16 15:26:21 +02:00
Cedric Snauwaert 0cae5cb047 [FIX]purchase: remove default filter that prevent to see quotations that have been sent but not yet validated
bzr revid: csn@openerp.com-20130416095622-gxmxb5gpfqgs30eh
2013-04-16 11:56:22 +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
Xavier Morel a455d6c2b2 [FIX] correctly handle group_by_no_leaf when no grouping applied
If there are no grouping field specified *but* group_by_no_leaf is
specified, should call read_group with no grouping fields: will
generate a single group (which can not be opened) for all of the
model.

Necessary for analysis views since individual "records" make no sense.

bzr revid: xmo@openerp.com-20130416092344-2pqog8f7xprn6hsh
2013-04-16 11:23:44 +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
Christophe Simonis d7b63202f3 [MERGE] [FIX] mail: mail composer: Use a text field instead of a html field
html fields are sanitized just before saving data into the database.
In the composer, this cause the sanitization of the templated
message (for mass mailing messages) before the rendering, forbidding
the use of templated html links.
The html of the message is sanitized by message_post()

bzr revid: chs@openerp.com-20130416083812-jvqeivfxhdr32djh
2013-04-16 10:38:12 +02:00
Thibault Delavallée 054836185a [FORWARD] [MERGE] Forward port of addons 7.0 until revision 9021.
bzr revid: tde@openerp.com-20130416081254-59im5jx15r7pjzl3
2013-04-16 10:12:54 +02:00
Stephane Wirtel 1a06d3d28f [MERGE] accounts: Load the charts of account from Apps whether those are not in
the local addons path.

bzr revid: stw@openerp.com-20130416080508-ujt54nh0n7bvtkl1
2013-04-16 10:05:08 +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
Cedric Snauwaert 6ca0770257 [REF]crm_lead, crm_meeting: minor changes to follow pep8 standard
bzr revid: csn@openerp.com-20130416074335-qx8c6f4fjueknjk9
2013-04-16 09:43:35 +02:00
Thibault Delavallée efceba5b8b [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130416073641-pcelb6zsq8dg56wb
2013-04-16 09:36:41 +02:00
Launchpad Translations on behalf of openerp e8e6f434f4 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130416052741-3au0bx7ha7of6lzg
2013-04-16 05:27:41 +00: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