Commit Graph

69337 Commits

Author SHA1 Message Date
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
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
Cedric Snauwaert d6d2f4edbf [FIX]hr_recruitment: remove group on field create_date
bzr revid: csn@openerp.com-20130412134400-87dzu83x8vewayuo
2013-04-12 15:44:00 +02: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
Christophe Simonis b2d6c80569 [IMP] mail/wizard/mail_compose_message.py: add comment explaining why we use a text field for the body
bzr revid: chs@openerp.com-20130412132231-84wz56s2r4ordxw1
2013-04-12 15:22:31 +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
Antony Lesuisse 354ac328c8 [FIX] point_of_sale fix tax rouding, this time tested, tnx fva
bzr revid: al@openerp.com-20130411224306-eei87tz4xp3d0o7n
2013-04-12 00:43:06 +02:00
Antony Lesuisse 0dded37377 [MERGE] point_of_sale fix tax rouding
lp bug: https://launchpad.net/bugs/1157761 fixed

bzr revid: al@openerp.com-20130411221119-cng0p4mct4pdf5tv
2013-04-12 00:11:19 +02: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
Christophe Simonis 8a7fad6b22 [FIX] email_template/tests/test_mail.py: compose.body is not htmlized anymore
bzr revid: chs@openerp.com-20130411190401-0ajvlapuyxop0zhn
2013-04-11 21:04:01 +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 326506db2c [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-20130411182226-lwnpkh4tmyswjjnc
2013-04-11 20:22:26 +02:00
Fabien Meghazi 428fdca40a [FIX] FormRenderingEngine: allow class propagation to group cells
bzr revid: fme@openerp.com-20130411163238-qy377cdnn9enax34
2013-04-11 18:32:38 +02:00
Christophe Simonis 5b7c5414d3 merge upstream
bzr revid: chs@openerp.com-20130411155351-y286kg2uoazzop6o
2013-04-11 17:53:51 +02:00
Christophe Simonis 841cf5aaad merge upstream
bzr revid: chs@openerp.com-20130411154519-xvepmjrm4ibqddx7
2013-04-11 17:45:19 +02:00
Olivier Dony 3bd4cef043 [FIX] sale_stock: when creating invoices after delivery, use invoicing contact from SO + update test (reported by Joel Grand-Guillaume while reviewing bug 1160365)
The existing tests were modified to explicitly cover
the case where the "invoice partner" is set on the
Sales Order. This minimal change was done with a
!python block because !record triggers the on_change
calls on the SO and cause undesired changes.
This could be improved by creating a new customer
with a real invoicing contact and creating a new
SO.

bzr revid: odo@openerp.com-20130411145636-emmagu7uu5kis1aa
2013-04-11 16:56:36 +02:00
Launchpad Translations on behalf of openerp e2620bb5c7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130410055459-5aphwzsdpres8fvu
bzr revid: launchpad_translations_on_behalf_of_openerp-20130411144402-pc6d2zj1j2x3y3jp
2013-04-11 14:44:02 +00:00
Launchpad Translations on behalf of openerp 494c0f8bca Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130411144357-92txcwycw3kgyd5k
2013-04-11 14:43:57 +00:00
Olivier Dony b9eafcde22 [ADD] account_report_company module: new module for adding "commercial entity" m2o on invoices and "Partner Company" dimension on Invoice Analysis
bzr revid: odo@openerp.com-20130411125525-1typd4fuuvrbobae
2013-04-11 14:55:25 +02:00
Thibault Delavallée ee844c0ac6 [FIX] crm: fixed on_change_user that was crashing because
refers to a default_section_id field that is added in sale_crm bridge module.
New behavior is : one of the team user_id is a member (crm), or
default_section_id if defined or default behavior (sale_crm)

bzr revid: tde@openerp.com-20130411123356-kc8ty16i71nwgzsm
2013-04-11 14:33:56 +02:00
Thibault Delavallée f8a2299525 [MERGE] [FIX] mail, email_template: fix attachment duplication and clean attachment management
The way attachments are linked to the document has been cleaned. Posting method message_post may receives 2 arguments:
- attachment_ids: those linked to the wizard model (mail.compose.message) are linked to the document (res_model, res_id)
- attachments: the tuples are used to create new attachments linked to the document
The wizard does not set the res_model and res_id of attachments anymore, delegating this job to message_post.

The mail.message and mail.compose.message now use their respective attachment_ids field when possible. This is done instead of reading/creating new attachments based on the attachments tuple each time a mail.compose.message is processed. Email templates now also use attachment_ids, in particular when generating emails, instead of using the attachments tuple. Only reports are still generated on the fly and put into attachments instead of attachment_ids.

A cron job has been added to unlink 'lost' attachments. Those are attachments:
- linked to 'mail.compose.message'
- with res_id=0 (due Chatter used in minimal mode or reports generated by templates before the wizard has an ID)
- with no activity for more than one day (create_date and write_date)

bzr revid: tde@openerp.com-20130411112033-mqph9vjlcjkoolfs
2013-04-11 13:20:33 +02:00
Thibault Delavallée 9e4486ae52 [FIX] mail: fixed missing conflict resolution
bzr revid: tde@openerp.com-20130411104659-ik62af6wubzu5j6q
2013-04-11 12:46:59 +02:00
Thibault Delavallée 8c7cf300eb [MERGE] [FIX] mail: bettersuggested recipients based on email address. It tries to find a partner that is in the related document followers, or a user, or the first partner with matching email.
bzr revid: tde@openerp.com-20130411104151-wi5ru54b362pv957
2013-04-11 12:41:51 +02:00
Thibault Delavallée fe2ea997a2 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130411103645-rmr3sa8p9ropx2gc
2013-04-11 12:36:45 +02:00
Thibault Delavallée f994529725 [IMP] mail: finding partner based on email: improved code for suggested partners, added somme comments and tests.
bzr revid: tde@openerp.com-20130411101720-mumz152dsxvv1xbj
2013-04-11 12:17:20 +02:00
Olivier Dony 5937980b1d [FIX] res.partner form view: inherited view now hides `use_parent_address` on top of `type` + fix embedded form view too
The `use_parent_address` flag is meant for advanced use
in companies that want to make sure their contact/company
addresses are always in sync, at the possible cost of some
usability loss when editing existing addresses (need to
open the company form view, contact fields are read-only).

The embedded mini-form view of the contacts also need to
be inherited to make it match the main view.

bzr revid: odo@openerp.com-20130410170437-2v4ehptknk6yf1x2
2013-04-10 19:04:37 +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
Olivier Dony 140554c9f8 [REVERT] account.invoice: remove "commercial entity" domain on partner_id, to keep it consistent everywhere
Being able to choose a contact to invoice is very important
because the invoice must go to the right person.
When the invoice creation is automated by e.g. a Sales Order
any partner can be used (even though the system will
preselect the `invoicing` partner of the company if
one exists).
We have to keep that freedom when manually creating invoices.

bzr revid: odo@openerp.com-20130410135308-pd54c7ml8t3pcefl
2013-04-10 15:53:08 +02:00
Quentin (OpenERP) 748681e5d2 [FIX] project_long_term: don't create the project twice if 'use_phases' is thicked.
bzr revid: qdp-launchpad@openerp.com-20130410125046-01n3v3p5pnu78wgs
2013-04-10 14:50:46 +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
Quentin (OpenERP) 241b9ee07a [IMP] analytic: add the 'visibility tracking' on some fields in the chatter, to log when an important thing is changed
bzr revid: qdp-launchpad@openerp.com-20130410122011-xgih371ewlxc7aq5
2013-04-10 14:20:11 +02:00
Quentin (OpenERP) 904b810665 [MERGE] hr & co, demo data: update of the pictures of employees
bzr revid: qdp-launchpad@openerp.com-20130410121608-o6bwoukk4w7p8fsm
2013-04-10 14:16:08 +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
Cedric Snauwaert e2e3451697 [FIX]l10n_be: remove bad account from fiscal position Régime National
bzr revid: csn@openerp.com-20130410085430-ovtiyhj8ilhfe9rk
2013-04-10 10:54:30 +02:00
Josse Colpaert 3887d1e6fa [FIX] Adapt like issues and tasks
bzr revid: jco@openerp.com-20130410084638-v9yeobgc91yy7lyx
2013-04-10 10:46:38 +02:00
Launchpad Translations on behalf of openerp 75997ddc1c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130410055452-4saqwvwv6cgtil6s
2013-04-10 05:54:52 +00:00
Frédéric van der Essen b2a872846c [FIX] point_of_sale: use the correct rounding method for computing taxes
bzr revid: fva@openerp.com-20130409160021-707f3vrxcrqytsl6
2013-04-09 18:00:21 +02:00
Frédéric van der Essen 174ef7b490 [MERGE] adding a rounding method that is compliant with the server side rounding method
bzr revid: fva@openerp.com-20130409154129-gul9hkn0p4nt24md
2013-04-09 17:41:29 +02:00
Frédéric van der Essen a5e4d757a1 [FIX] add a correct rounding algorithm to be able to duplicate server-side financial computations
lp bug: https://launchpad.net/bugs/1157761 fixed

bzr revid: fva@openerp.com-20130409144414-nqnmkny5cxrmyru1
2013-04-09 16:44:14 +02:00