Commit Graph
70584 Commits
Author SHA1 Message Date
Thibault Delavallée 8b97805621 [FIX] mail: fixed some translation issues.
Document created text was not translatable
Subtype was fetched without context, therefore not translated
Removed odd override of _t introduced in mail_followers at revision 7885

bzr revid: tde@openerp.com-20130408092447-3ri41v6xluuj0wha
2013-04-08 11:24:47 +02:00
Launchpad Translations on behalf of openerp eb3ffc52ed Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130406063640-151b9f95w2tgiifb
bzr revid: launchpad_translations_on_behalf_of_openerp-20130407060111-hobhqctome9qtz6c
bzr revid: launchpad_translations_on_behalf_of_openerp-20130408062055-hzgkrbw8lvkfphxe
2013-04-08 06:20:55 +00: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 41d3c2ae88 [FIX] sale: use invoicing partner rather than main one for analytic account context, spotted by Raphael Valyi on bug 1160365
lp bug: https://launchpad.net/bugs/1160365 fixed

bzr revid: odo@openerp.com-20130408030052-xgk5p8zkagu21scs
2013-04-08 05:00:52 +02: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
Olivier Dony ed62e36691 [FIX] account_voucher,sale,purchase: include contacts matches when searching for company documents
This implements part E of the solution described on bug 1160365

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

bzr revid: odo@openerp.com-20130408005526-7124r7u39yhh9la3
2013-04-08 02:55:26 +02:00
Olivier Dony e4f04efdd6 [FIX] account.invoice: only allow selecting partners that are commercial entities
Following-up to the discussion on bug 1160365, this will help users
make the right choice when manualling creating invoices.

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

bzr revid: odo@openerp.com-20130408000124-wcmjco9561hc9fbl
2013-04-08 02:01:24 +02:00
Olivier Dony 347c784dab [FIX] account: include contacts matches when searching for company invoices
This implements part E of the solution described on bug 1160365

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

bzr revid: odo@openerp.com-20130407235640-cg02qh4ittc743zw
2013-04-08 01:56:40 +02:00
Olivier Dony dcac505a5b [FIX] sale: remove useless code to select commercial entity, now handled by res.partner.address_get directly
lp bug: https://launchpad.net/bugs/1160365 fixed

bzr revid: odo@openerp.com-20130407235115-4kovy1jngblrdd5z
2013-04-08 01:51:15 +02:00
Olivier Dony 438e1c1daf [FIX] res.partner: Hide commercial-related fields on contacts form + autosync them from parent company
Fixes handling of accounting/invoicing-related fields on partners
that are not "commercial entities" (either marked as "is_company"
or parentless).
The corresponding fields are also hidden from form views on these
partners and replaced by a short sentence and a link to edit the
"master fields" on the commercial entity.
This corresponds to part B of the solution described on bug 1160365.

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

bzr revid: odo@openerp.com-20130407235013-j3tv4uxy46eej43i
2013-04-08 01:50:13 +02:00
Olivier Dony ad1650854e [FIX] account: recursively find proper partner to link to journal items, as discussed in bugs 1160365 and 1151947
lp bug: https://launchpad.net/bugs/1160365 fixed
lp bug: https://launchpad.net/bugs/1151947 fixed

bzr revid: odo@openerp.com-20130407212333-34jahthhppcz2wju
2013-04-07 23:23:33 +02:00
dle@openerp.com a27dd438a7 [REVERT]base_import: revert of last change, because break tests and needs review
bzr revid: dle@openerp.com-20130405182351-0qfqd5klz9g25n9m
2013-04-05 20:23:51 +02:00
dle@openerp.com 5819cefd4b [FIX]base_import: get_fields now displays database id of the current model imported in normal fields
bzr revid: dle@openerp.com-20130405175827-58ahjgprju2gf4p9
2013-04-05 19:58:27 +02:00
Quentin (OpenERP) 8dea4ca3aa [MERGE] crm: adding onchange on user_id field in opportunity form view in order to fill automatically the sales team
bzr revid: qdp-launchpad@openerp.com-20130405154143-bccw695tadw0o5pi
2013-04-05 17:41:43 +02:00
Olivier Dony 3b1c553cc8 [MERGE] OPW 590100: stock: fix stock.picking.in and stock.picking.out that did not apply stock.picking record rules in all cases
lp bug: https://launchpad.net/bugs/1104163 fixed

bzr revid: odo@openerp.com-20130405153021-t0svhrbryl8r0bin
2013-04-05 17:30:21 +02:00
Olivier Dony ed09272799 [MERGE] OPW 590221: sale_stock,purchase: fix timezone conversion error when scheduling delivery/procurement based on SO/PO date
The conversion code is duplicated in sale_stock and purchase
instead of being factored out in the fields.datetime class
because as of v7.0 users are able to selectively update
a single module without necessarily updating the base module
or the framework. This will be improved in next stable version.

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

bzr revid: odo@openerp.com-20130405151451-anjsdt18gmsxr01k
2013-04-05 17:14:51 +02:00
Quentin (OpenERP) 2dff36cfa8 [MERGE] procurement, fix of scheduler: there is no need to filter on product that can be pruchased only (we may need to re-stock some components (of BoM) that can't be purchased)
bzr revid: qdp-launchpad@openerp.com-20130405144645-yj03ser7ks5vpwbj
2013-04-05 16:46:45 +02:00
Quentin (OpenERP) 3a06e25894 [MERGE] base_report_designer: Remove double . in numbered bulleted list
bzr revid: qdp-launchpad@openerp.com-20130405135750-ib4fv7dthwqou60h
2013-04-05 15:57:50 +02:00
Quentin (OpenERP) 9a219f241e [MERGE] better use of analytic distribution options on sale & purchase settings that now have an impact only on dedicated invoice view
bzr revid: qdp-launchpad@openerp.com-20130405135126-mnzv9o5dbiflvfo0
2013-04-05 15:51:26 +02:00
Christophe Simonis ecdc3b1873 [FIX] web: company_logo does not try to load the pool + failback correctly if the database does not exists or is not an openerp database
bzr revid: chs@openerp.com-20130405134747-7rkmz5d4r0buhhxj
2013-04-05 15:47:47 +02:00
Josse Colpaert 4bb06462d7 [FIX] Check that payment method journal is of type cash or bank
bzr revid: jco@openerp.com-20130405134438-86l1ph7192owwrol
2013-04-05 15:44:38 +02:00
Chris Biersbach 1ff81f943c [MERGE] OPW 590457: Cancelled procurements are no longer taken into account for the inventory analysis report
bzr revid: cbi@openerp.com-20130405123803-v4lbveeedbdlt3ep
2013-04-05 14:38:03 +02:00
Chris Biersbach 13a9c9202c [FIX] Cancelled procurements are no longer taken into account for the inventory analysis report
bzr revid: cbi@openerp.com-20130405120127-051x0zsq0z8tc0o9
2013-04-05 14:01:27 +02:00
Amit Dodiya ebbc6deb52 [FIX]stock: override search and read method in order to check access because for multi company a child user was also able to see the incoming shipment of parent company where it should not
bzr revid: ado@tinyerp.com-20130405111649-tzf9r2xrii8ktxdj
2013-04-05 16:46:49 +05:30
kirti savalia (OpenERP) 9e52f38ba7 [FIX]:the traslation issue for the balance sheet and profit loss report
bzr revid: ksa@tinyerp.com-20130405102755-6hir5spwvsu92r6l
2013-04-05 15:57:55 +05:30
Josse Colpaert 7897eb3898 [FIX] Only create project once
bzr revid: jco@openerp.com-20130405090444-rqlawt05gsj5mvsk
2013-04-05 11:04:44 +02:00
Vidhin Mehta 77595a843e [IMP]Improvements in Manage View.
bzr revid: vme@tinyerp.com-20130405085224-yecygjxi39nd60h0
2013-04-05 14:22:24 +05:30
Quentin (OpenERP) d1d394dbbd [MERGE] fix a crash when deleting an asset. Wrong model was referenced
bzr revid: qdp-launchpad@openerp.com-20130405084504-bi0f2au9m98m5i62
2013-04-05 10:45:04 +02:00
Quentin (OpenERP) fc0e6809f6 [MERGE] removal of wrong ir.rules testing unkown field 'message_follower_ids' on models that do not inherit mail.thread
bzr revid: qdp-launchpad@openerp.com-20130405084053-ex37zhsjww6s8wct
2013-04-05 10:40:53 +02:00
Chris Biersbach 85748af1a8 [MERGE] OPW 590961: Unicode characters in product names no longer cause a traceback when generating the Stock Level Forecast report
bzr revid: cbi@openerp.com-20130405082709-j6ih45bz68881c3j
2013-04-05 10:27:09 +02:00
Chris Biersbach 1e84f67637 [FIX] Generating the Stock Level Forecast report while having arabic or other foreign characters in the product name no longer causes a traceback
bzr revid: cbi@openerp.com-20130405075139-j327x6kzut3mamqa
2013-04-05 09:51:39 +02:00
kirti savalia (OpenERP) 51421af4a7 [FIX]:the translation issue for the trial balance report
bzr revid: ksa@tinyerp.com-20130405071556-sbhz16faz777ti52
2013-04-05 12:45:56 +05:30
kirti savalia (OpenERP) 3822e0ceff [FIX]:the translation issue for the general ledger report
bzr revid: ksa@tinyerp.com-20130405071518-bdz3arks8gy5tkd3
2013-04-05 12:45:18 +05:30
kirti savalia (OpenERP) 3596726591 [FIX]:the translation issue for the General journals" and "Centralizing journals" report
bzr revid: ksa@tinyerp.com-20130405071410-3l4gmuv2zyh3jbet
2013-04-05 12:44:10 +05:30
kirti savalia (OpenERP) 45c6e55b4a [FIX]:the translation issue for the partner ledger report
bzr revid: ksa@tinyerp.com-20130405071233-01dk1hmyvy6jxd7x
2013-04-05 12:42:33 +05:30
kirti savalia (OpenERP) bd77ee8cf2 [FIX]:the translation issue for the aged trail balance report
bzr revid: ksa@tinyerp.com-20130405071019-0awrn9slf10oqbmt
2013-04-05 12:40:19 +05:30
Launchpad Translations on behalf of openerp 0f53186e2b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130404145702-julajxe3ktc5uqc4
bzr revid: launchpad_translations_on_behalf_of_openerp-20130405062320-27t6hdfy9b9zt7ns
2013-04-05 06:23:20 +00:00
Launchpad Translations on behalf of openerp 828edbb276 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130405062313-k2ucjzk7xhm084or
2013-04-05 06:23:13 +00:00
Vidhin Mehta 8ddd4f04b6 [FIX]Wrong class name give in super call
bzr revid: vme@tinyerp.com-20130405055147-18jnqoyq9ja6n24j
2013-04-05 11:21:47 +05:30
Ravish (Open ERP) 5a4dcc4819 analytic journal must follow analytical group
bzr revid: rmu@tinyerp.com-20130405043510-cxannthx2gkm35a6
2013-04-05 10:05:10 +05:30
Antony Lesuisse e483833793 [FIX] fetchmail, on demand cron, context test for date write
bzr revid: al@openerp.com-20130405030026-oltyhb537w3p273g
2013-04-05 05:00:26 +02:00
Antony Lesuisse aa753772ab [IMP] fetchmail, on demand cron
enable a 3 micro hz cron only if needed as we want to lower the maximum
cron frequency in default addons to 1 micro hz

bzr revid: al@openerp.com-20130405024213-ll6t26j685rati5a
2013-04-05 04:42:13 +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
Antony Lesuisse 648f45f2ed [FIX] base_calendar, lower cron frequency (around 0.003 hz)
bzr revid: al@openerp.com-20130405000610-cfohyzcdaq9k0y9g
2013-04-05 02:06:10 +02:00
Quentin (OpenERP) e7c13b1a3b [FIX] hr_expense: was crashing if a tax without 'tax_collected_id' field was used at the time of accounting entries creation
bzr revid: qdp-launchpad@openerp.com-20130404164153-0tbni96scijq90fu
2013-04-04 18:41:53 +02:00
Quentin (OpenERP) 11fd8eba26 [MERGE] base_calendar: fix in argument passing to get_recurrent_dates method (a list was needed, a string was passed)
bzr revid: qdp-launchpad@openerp.com-20130404160429-lz97n2fgspcstm6k
2013-04-04 18:04:29 +02:00
Quentin (OpenERP) ec06d3ed54 [REF] account: removal of useless code catching/hiding exceptions. Not needed
bzr revid: qdp-launchpad@openerp.com-20130404155927-7eovla17dcowt02h
2013-04-04 17:59:27 +02:00
Josse Colpaert 5585f21aa5 [FIX] On cchange for sales person to change sales team in opportunity
bzr revid: jco@openerp.com-20130404155437-a4d6mdi2y0r5nvc6
2013-04-04 17:54:37 +02:00
Quentin (OpenERP) 4bdd8252ba [REF] sale_stock: removing of dead code and correction of documentation (process) linked to the invoicing after delivery of a sale order
bzr revid: qdp-launchpad@openerp.com-20130404151451-7fesb178mpijlv29
2013-04-04 17:14:51 +02:00
Quentin (OpenERP) c5cde2a6a3 [MERGE] fixes in POS: optimizing the code when closing a session to have acceptable delays, used the right partner, changing the partner on the pos order also change it on the payment linked...
bzr revid: qdp-launchpad@openerp.com-20130404151428-yr2jhgjkolyjrcyf
2013-04-04 17:14:28 +02:00