Commit Graph

70684 Commits

Author SHA1 Message Date
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
Launchpad Translations on behalf of openerp 0cb5a70340 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130416043749-u2l62c4syfay8q48
2013-04-16 04:37:49 +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 8d03cf7740 [MERGE] 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-20130415181108-b2ytpuxflr8srpqf
2013-04-15 20:11:08 +02:00
Olivier Dony 556e4e76c3 [FIX] l10n_ro: unique constraints on `vat` and `nrc` columns need to be updated for 7.0 model
With the 7.0 model all accounting-related fields are synchronized
from company to contacts (both are res.partner records), so the
unique check is not a trivial unique constraint. It must be updated
to use a *partial unique index* that applies only to "commercial
entities" and not to contacts. The condition for being a commercial
entity is "is_company is true or parent_id is NULL".
If companies have unique vat/nrc numbers, then their contacts
will be consistent because they are automatically synchronized,
so the uniqueness between contacts does not have to be checked.
(The auto-sync is performed by res.partner automatically and covered
by tests in the "base" module)

bzr revid: odo@openerp.com-20130415175258-l15meqin80sbhggu
2013-04-15 19:52:58 +02:00
Olivier Dony 05d0c3cb48 [FIX] 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-20130415173901-sevyy27244m6iks0
2013-04-15 19:39:01 +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 f4d8ba79ec [MERGE] Upstream
bzr revid: stw@openerp.com-20130415154412-dyis8r4y48q8b1we
2013-04-15 17:44:12 +02:00
Stephane Wirtel cff29fa888 [MERGE] Upstream
bzr revid: stw@openerp.com-20130415154400-fq7ydj6q1y07n02w
2013-04-15 17:44:00 +02:00
Thibault Delavallée 812c852fd0 [FORWARD] Merged 7.0 addons revisions until 9021
bzr revid: tde@openerp.com-20130415084302-hx7zxtpl5u6yphfg
bzr revid: tde@openerp.com-20130415153732-v4ols3t56rku92oz
2013-04-15 17:37:32 +02:00
Thibault Delavallée 0110522b68 [FIX] project_issue, project_phase: fixed access rights on anonymous.
bzr revid: tde@openerp.com-20130415150107-0vny927te0m1ylsi
2013-04-15 17:01:07 +02:00
Quentin (OpenERP) 7c189942fe [MERGE] hr_recruitment: removal of group 'no one' on create_date field in tree view
bzr revid: qdp-launchpad@openerp.com-20130415152901-b3e66wetgbsuy166
2013-04-15 17:29:01 +02:00
Quentin (OpenERP) 273a82cc0d [FIX] hr: typo in welcome message + [IMP] hr_holidays: better message when a constraint is fired
bzr revid: qdp-launchpad@openerp.com-20130415150655-ltlkfqy03jj1xgxa
2013-04-15 17:06:55 +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
Cedric Snauwaert e38a28a2b7 [FIX]crm_lead, crm_meeting: when creating a meeting from an opportunity, add a message in open chatter
bzr revid: csn@openerp.com-20130415141507-m5arvgjcaf587a09
2013-04-15 16:15:07 +02:00
Christophe Matthieu 97900c25a4 [MERGE] radio-many2one: clean code and allow to apply radio button on many2one field
bzr revid: chm@openerp.com-20130415121608-gmis1l6djbudyez5
2013-04-15 14:16:08 +02:00
Christophe Matthieu e07cf38910 [FIX] web_kanban: hide the counter on the top of column to display option drop down when the mouse is hover.
bzr revid: chm@openerp.com-20130415114545-e557dsr4y0qkh8ff
2013-04-15 13:45:45 +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
Christophe Matthieu ed46400a55 [IMP] view_form: widget radio: clean code
bzr revid: chm@openerp.com-20130415103041-8xogdacjx43v4cgk
2013-04-15 12:30:41 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Cedric Snauwaert f25c5d857b [REF]product: remove one extra loop
bzr revid: csn@openerp.com-20130415102121-u74t7zd3zct3q3ts
2013-04-15 12:21:21 +02:00
Cedric Snauwaert 9ee0b5dacf [FIX]product: add store function to name_template
bzr revid: csn@openerp.com-20130415102030-tbzcee5yujmw3r0l
2013-04-15 12:20:30 +02:00
Quentin (OpenERP) 730eb11152 [FIX] l10n_be: removal of useless mapping rule of accounts in 'nationale' fiscal position
bzr revid: qdp-launchpad@openerp.com-20130415101832-lxjmpk561nwa39w3
2013-04-15 12:18:32 +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
Christophe Matthieu 53f168daaf [FIX] hr_holidays: traceback when the user change remaining_leaves value. Wrong reference python object: holiday_obj
bzr revid: chm@openerp.com-20130415093726-x2lsmf54xiqc0lng
2013-04-15 11:37:26 +02:00
Quentin (OpenERP) b799a51d39 [FIX] l10n_be_coda: fixed a glitch in the coda import when the starting balance of the statement is negative. Courtesy of Damien Carlier (Idealis Consulting)
bzr revid: qdp-launchpad@openerp.com-20130415092956-fzrd7646i9spssad
2013-04-15 11:29:56 +02:00
Thibault Delavallée af5892458b [MERGE] [FIX] [ADD] project, project_issue, portal_project, portal_project_issue: improved privacy_visibility selection of project.project; improved access rules; added tests to enforce them.
project: privacy_visibility now has basically 'public', 'employees' and 'followers' possible values.
portal_project: add 'portal' to the privacy_visibility values
- public: everybody see the project and all tasks
- portal: employees see the project and all tasks; portal users see the project and the followed or assigned tasks
- employees: employees see the project and all tasks
- followers: employees see the project if follower and the follower or assigned tasks

portal_project, portal_project_issue: added tests for access rights

bzr revid: tde@openerp.com-20130415083130-buklyo8kdpzrbzb7
2013-04-15 10:31:30 +02:00
Thibault Delavallée 8b3252394a [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130415075432-tcxjy91n6lopovx9
2013-04-15 09:54:32 +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
Launchpad Translations on behalf of openerp c65d4c6441 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130413053844-gkqad498rnyerawp
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414051642-ld3j9vzqppxmvd44
2013-04-14 05:16:42 +00:00
Launchpad Translations on behalf of openerp 22daaf3633 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130412052106-dk5gnynho4ng3vpf
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414051220-i54sas7x9m3q0fh6
2013-04-14 05:12:20 +00:00
Stephane Wirtel 7177183c59 [FIX] account: Remove the has_default_company 'module' from the modules to
install.

[FIX] account: forward the value of execute, because the client does not receive
the right action

bzr revid: stw@openerp.com-20130412154422-cpycmlmpsjx39rae
2013-04-12 17:44:22 +02:00
Thibault Delavallée 63e5bd0901 [REM] portal_project_issue: removed duplicate tests.
bzr revid: tde@openerp.com-20130412151532-5s6yqreqa62yj62m
2013-04-12 17:15:32 +02:00
Thibault Delavallée 9a36fd2f79 [TEST] portal_project_issue: added tests for access rights.
bzr revid: tde@openerp.com-20130412151236-5jqcd5698soj2b4s
2013-04-12 17:12:36 +02:00
Thibault Delavallée b6223ecb7f [FIX] [ADD] project, project_issue, portal_project, portal_project_issue: improved privacy_visibility selection of project.project; improved access rules; added tests to enforce them.
bzr revid: tde@openerp.com-20130412143719-ztjo06r900l024dm
2013-04-12 16:37:19 +02:00