Commit Graph

56733 Commits

Author SHA1 Message Date
niv-openerp adb6437d3f [FIX] regenerate base.css, looks like someone modified directly base.css -> that's bad
bzr revid: nicolas.vanhoren@openerp.com-20130502165016-bltxxned4c58s1mh
2013-05-02 18:50:16 +02:00
Christophe Matthieu a31af55ef5 [MERGE] force module paths to be bytestrings
The http controllers handler crashes when there are non-ascii chars in the url path.

`openerp.modules.module.ad_paths` containing unicode strings, werkzeug fail to compare the path `module` which is converted to ascii.
force `module` to be bytestrings

bzr revid: chm@openerp.com-20130502122806-1i9h8v0cvhb6p63q
2013-05-02 14:28:06 +02:00
Christophe Matthieu 47d8e1a470 [FIX] http.py
Impossible to load the website when there is a unicode char in the url path.

`openerp.modules.module.ad_paths` containing unicode strings, werkzeug fail to compare the path which is converted to ascii.
force `openerp.modules.module.ad_paths` to only contain bytestrings

bzr revid: chm@openerp.com-20130502104249-ttokukc2rpetxqkr
2013-05-02 12:42:49 +02:00
Stephane Wirtel 26e33ea7dc [IMP] This commit contains the new wizard for the merge of partners.
Via this wizard, you will be able to merge a lot of partners via the email,
    name, vat or other columns.

It is available in the "Sales/Tools" menu.

bzr revid: stw@openerp.com-20130502103044-ljnj5n7pvs1vsbed
2013-05-02 12:30:44 +02:00
niv-openerp 5e0437226e [IMP] allow definition of web controllers that match all sub-urls
bzr revid: nicolas.vanhoren@openerp.com-20130502095055-xq9hna23otx65aq4
2013-05-02 11:50:55 +02:00
Launchpad Translations on behalf of openerp 511efd43a9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130430054239-pwosnc6em4h0linf
2013-04-30 05:42:39 +00:00
Launchpad Translations on behalf of openerp 45e303b528 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130430052924-th3a8rf85bi2xz1t
2013-04-30 05:29:24 +00:00
niv-openerp 5c1f41d68a [IMP] added widget options for kanban fields
bzr revid: nicolas.vanhoren@openerp.com-20130429143204-jmly4qxui5wtsyeq
2013-04-29 16:32:04 +02:00
niv-openerp fb4073bbf7 [IMP] added registry for kanban view's fields
bzr revid: nicolas.vanhoren@openerp.com-20130429110617-to54yjw29oqbx16j
2013-04-29 13:06:17 +02:00
niv-openerp aa9491608a stabilized api
bzr revid: nicolas.vanhoren@openerp.com-20130429110446-pqmbfg3fxjks6vb0
2013-04-29 13:04:46 +02:00
niv-openerp acfe41a905 Got working widget
bzr revid: nicolas.vanhoren@openerp.com-20130429105126-c4g504lbsp64m29t
2013-04-29 12:51:26 +02:00
Cedric Snauwaert 724cbb6dee [FIX]mail_followers: signature at the end of mail should be "sent by" and not "send by"
bzr revid: csn@openerp.com-20130429092532-3h31kduga1h0chbb
2013-04-29 11:25:32 +02:00
Launchpad Translations on behalf of openerp ae9b17ed1e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130426054415-3peq258sdsxch6i5
bzr revid: launchpad_translations_on_behalf_of_openerp-20130429044254-mq5pfftub8njqfgn
2013-04-29 04:42:54 +00:00
Launchpad Translations on behalf of openerp 71b245598e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130426053411-bv2sqofceiphm7vl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130427054423-i8yn2pamtsptx8sr
2013-04-27 05:44:23 +00:00
Quentin (OpenERP) 37b424648a [MERGE] typo
bzr revid: qdp-launchpad@openerp.com-20130425140756-ijyanyyfltkidnf7
2013-04-25 16:07:56 +02:00
Launchpad Translations on behalf of openerp d1d74460ea Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130425052035-xdq90ai4jlru7s3r
2013-04-25 05:20:35 +00:00
Launchpad Translations on behalf of openerp 8e145d5ec5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130421044257-raqgv60vzpztfbpp
bzr revid: launchpad_translations_on_behalf_of_openerp-20130424045253-1fct3yblx9cwddr9
2013-04-24 04:52:53 +00:00
niv-openerp 8590e68b2b [FIX] im: small graphical bug when we click on an already opened contact
bzr revid: nicolas.vanhoren@openerp.com-20130423092520-hoqpi01li03yjmrm
2013-04-23 11:25:20 +02:00
Quentin (OpenERP) 33f27b362b [MERGE] forward port of addons v7 up to revision 9045
bzr revid: qdp-launchpad@openerp.com-20130422153449-c62emljfa4a49758
2013-04-22 17:34:49 +02:00
niv-openerp ef645d7376 [ADD] instant messaging and live chat features
bzr revid: nicolas.vanhoren@openerp.com-20130422113254-ixdfha7s8jbgy2y2
2013-04-22 13:32:54 +02:00
niv-openerp d5dc64c42d Removed modification to a file that has nothing to do with the feature
bzr revid: nicolas.vanhoren@openerp.com-20130422101524-eyd0138u51vot6it
2013-04-22 12:15:24 +02:00
niv-openerp d0863a0163 merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130422095817-g7n3qe94u91bcefx
2013-04-22 11:58:17 +02: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
Olivier Dony 65ff677697 [MERGE/ADD] Many important fixes for contact/company management + new module account_report_company
This patch comes with a corresponding server-side patch (revision 4946 revid: odo@openerp.com-20130420032529-pvv6vuelp84bt26j)


- module-specific overrides of _commercial_fields() for all modules adding accounting/invoicing-related fields to res.partner

- corresponding changes to inherited views of res.partner form to hide these commercial fields when they are in fact "related fields" of their parent commercial entity. This mainly concerns 2 sections of the Partner form: the whole Accounting tab, and the bottom of the Sales&Purchase tabs with the pricelists and invoicing fields. These sections are replaced by a short message and a button to open the commercial entity to view/edit the fields

- a few fixes to properly delegate the resolution of various contact/address types to the corrected res.partner.address_get()

- changes to search views of the main business documents so that searching for a company name will also match its contacts

- a fix of the _find_accounting_partner() method that the account module uses to locate the partner to which journal entries must be linked - it will now use the same semantics as for "commercial entity"

- fix issue detected by Joël Grand-Guillaume in comment #34 of bug 1160365: when invoicing after delivery, the invoicing contact/address must be used rather than the main customer. Tests updated accordingly.

- add new 7.0 module "account_report_company": this module adds an extra stored field "commercial_partner_id" on Invoices to make reporting/aggregating by partner easier in the Invoice list and in the Invoice Analysis report. This module is expected to be merged in the main account module in the next major release. The module can be installed without any risk on any existing 7.0 databases.
This module also mitigates group_by issues on all models by adding a new stored function field `display_name` on res.partner that contains the name_get() result in the form "ACME, John Doe" and set it as the default _order for res.partner. This ensures that group_by entries for the same company will always be next to each other on all documents: "ACME" is directly followed by "ACME, John Doe", "ACME, John Anderson", etc. This field also replaces the `name` field in the list and kanban views of Partners, so that the display order matches the display labels.

- fixed unique constraints definition on some commercial fields on res.partner (l10n_ro)

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

bzr revid: odo@openerp.com-20130420034221-2wvf6rezwl7gog74
2013-04-20 05:42:21 +02:00
Olivier Dony feefb0ad36 [FIX] search views: use child_of operator for partner_id fields that can reference both companies and contacts
The goal is to match both the Company and its contacts
when searching for the Company

bzr revid: odo@openerp.com-20130420022642-6qe8pp4ifexjms65
2013-04-20 04:26:42 +02:00
Olivier Dony b91cd6127a [REVERT] account_report_company: undo override of res.partner.commercial_partner_id field to store it, as the ORM does not support it and it's not strictly necessary
It works when installing the module but would break
everytime another module that inherits from res.partner
is installed/update from command-line (e.g. -i/-u crm),
as account_report_company is low in the dependency graph
so the field is dropped when the ORM notices that
the current field definition is not stored.
This can be solved in trunk by making the field stored
directly in 'base'.

bzr revid: odo@openerp.com-20130420015003-8y48xrb14cjif60w
2013-04-20 03:50:03 +02:00
Olivier Dony 64f29cfa10 [IMP] account_report_company: use `display_name` instead of name in kanban and list views, so labels visually match order
bzr revid: odo@openerp.com-20130419171853-dvfi5jvvlof9afoo
2013-04-19 19:18:53 +02:00
Olivier Dony 5e2ce8b709 [IMP] account_report_company: add extra stored function field `display_name` on res.partner and use it for sorting
This makes name_search() results, group_by, etc. all behave as expected

bzr revid: odo@openerp.com-20130419165239-15szgi0e686k6mh9
2013-04-19 18:52:39 +02:00
niv-openerp 1f2064cb93 [FIX] pad: revert part of previous fix because it could produce problems in some cases
bzr revid: nicolas.vanhoren@openerp.com-20130419144238-0hq1rgmcacw5sw1r
2013-04-19 16:42:38 +02:00
niv-openerp ea2544e432 [FIX] pad: problem about pad title not being updated correctly, was solved by solving another, more serious, bug that didn't updated correctly the database backup of the pad
lp bug: https://launchpad.net/bugs/1155039 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130419143529-jku5titoacaajft0
2013-04-19 16:35:29 +02:00
Olivier Dony 8503964216 [IMP] account_report_company: make res.partner.commercial_partner_id field stored, for further reporting needs
This is not strictly necessary, but can be useful for other
modules in order to ease SQL reporting, without even needing
to store a denormalized copy of the "commercial partner" key
on the documents themselves.

Also renamed the Python fiel to something generic since
it now inherits multiple models.

bzr revid: odo@openerp.com-20130419134335-rhsg24f2uuwl3kla
2013-04-19 15:43:35 +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
Launchpad Translations on behalf of openerp 26f2b57190 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130419052438-gk34w78d47iwehp0
2013-04-19 05:24:38 +00:00
Olivier Dony 26dd9bc343 [MERGE] Sync with 7.0
bzr revid: odo@openerp.com-20130418172123-2ofzftdo2a923nj1
2013-04-18 19:21:23 +02:00
Olivier Dony 451f8df250 [FIX] sale: orders/quotations action should not force `display_address` flag
Doing so affects autocompletion of search results, etc.
while the fields on the form view are already properly
displayed anyway.

bzr revid: odo@openerp.com-20130418172022-e3lu35xq191jxcyu
2013-04-18 19:20:22 +02:00
Fabien Meghazi d94936132a [MERGE] Fixed http controllers inheritance
bzr revid: fme@openerp.com-20130418171750-7oldgiewo1eewxk7
2013-04-18 19:17:50 +02:00
Quentin (OpenERP) af33bef989 [FIX] sale: fix in the workflow of the sale order that appeared on invoice deletion
bzr revid: qdp-launchpad@openerp.com-20130418163616-ob30cd73vxkoe31a
2013-04-18 18:36:16 +02:00
Olivier Dony a9d5c2d37e [FIX] res.partner: rename commercial_id to commercial_partner_id, following corresponding change in `base`
bzr revid: odo@openerp.com-20130418154022-lt7frhp9c8f2boo0
2013-04-18 17:40:22 +02:00
niv-openerp e7aeabc834 [FIX] account: minor javascript problem that made appear a stack trace
lp bug: https://launchpad.net/bugs/1155605 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130418151353-dgfawgqgvama1u84
2013-04-18 17:13:53 +02:00
Quentin (OpenERP) 27c3b6cc33 [MERGE][FIX] product: context propagating in res_currency.compute(). Courtesy of Yannick Vaucher @ Camptocamp. Thanks dude
bzr revid: qdp-launchpad@openerp.com-20130418141013-vukxknub32p7djqd
2013-04-18 16:10:13 +02:00
niv-openerp 9c9971f0c9 [FIX] problem in view editor
bzr revid: nicolas.vanhoren@openerp.com-20130418135953-l53w542hrqc0puvq
2013-04-18 15:59:53 +02:00
Quentin (OpenERP) dcfbadd97e [FIX] hr_expense, usability: added sum in tree view
bzr revid: qdp-launchpad@openerp.com-20130418135356-p017meay192awm3y
2013-04-18 15:53:56 +02:00
Quentin (OpenERP) 46e95cb136 [FIX] account, account.move.line form view: the same method was defined twice, differently, and parameters were not correctly passed in onchanges
bzr revid: qdp-launchpad@openerp.com-20130418134032-t3y4dk4sp4eu2031
2013-04-18 15:40:32 +02:00
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
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