Commit Graph

8596 Commits

Author SHA1 Message Date
Launchpad Translations on behalf of openerp 6b04a532b8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130423060902-2j8xouki50aemi14
bzr revid: launchpad_translations_on_behalf_of_openerp-20130423061017-5os2p9ztugb6jjph
bzr revid: launchpad_translations_on_behalf_of_openerp-20130423061019-n2660taj1o9os75c
2013-04-23 06:10:19 +00: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
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
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 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) 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) 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
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
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
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
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
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
Stephane Wirtel f4d8ba79ec [MERGE] Upstream
bzr revid: stw@openerp.com-20130415154412-dyis8r4y48q8b1we
2013-04-15 17:44:12 +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
Christophe Simonis 5b7c5414d3 merge upstream
bzr revid: chs@openerp.com-20130411155351-y286kg2uoazzop6o
2013-04-11 17:53:51 +02: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 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
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
Launchpad Translations on behalf of openerp 6fe10fc8e5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055857-v475gufg9pm5zbqy
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055920-gtfw1ljrgaej1u0u
bzr revid: launchpad_translations_on_behalf_of_openerp-20130406063645-b7q6s71zvtm9orxm
bzr revid: launchpad_translations_on_behalf_of_openerp-20130407060119-7ojh5lykuwm3ydbn
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055924-46ylmw1wqri80wgs
2013-04-09 05:59:24 +00: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
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 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
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
Launchpad Translations on behalf of openerp 5a4be3d44c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130403150224-6o2tq7pqtgax4o8w
bzr revid: launchpad_translations_on_behalf_of_openerp-20130404145635-l4x86488xak0gwr1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130404145655-30mhci39kbd5n7dq
2013-04-04 14:56:55 +00:00
Chris Biersbach d43b932270 [FIX] Forwardport of 6.1 fix by han: Do not copy the statement_id value when copying account moves
bzr revid: cbi@openerp.com-20130404090948-c7zw5yco1sply0b8
2013-04-04 11:09:48 +02:00
Launchpad Translations on behalf of openerp 665cd6c6ea Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130403150332-0q7u1so0j76xbo3n
bzr revid: launchpad_translations_on_behalf_of_openerp-20130403150338-iksqy6aim64hko1m
2013-04-03 15:03:38 +00:00
Launchpad Translations on behalf of openerp 252bcc802f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060824-pc5f2pj14gj0ak27
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055726-frtzw3gc9ut4wx4y
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053127-tolr13p1b3bhjny1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054749-t3x0zc7qk3n4man2
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060920-k0cnlpk0rxcli841
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055741-loojniiz6du9upat
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053211-yvt1h32v41rs6jje
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054814-fwg742kzhsupr6kc
bzr revid: launchpad_translations_on_behalf_of_openerp-20130329051100-3ul1k4qwwm2f49gt
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060923-wch1f8ndmb15nu6x
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055759-aj1nc93t9420lov0
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053215-kqqgqefzp95fa1tk
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054817-k33rri349nc2ioiz
2013-04-02 05:48:17 +00:00
Cedric Snauwaert cec486a161 [FIX]account_invoice: remove useless and ugly viol error message from the past
bzr revid: csn@openerp.com-20130329155938-gezglrgphnndswnr
2013-03-29 16:59:38 +01:00
Launchpad Translations on behalf of openerp 7a8d71be6d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130329050903-yuxb08q83hlvg6ok
2013-03-29 05:09:03 +00:00
Launchpad Translations on behalf of openerp fc04522286 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130328060500-yc40z00ubsz154vw
2013-03-28 06:05:00 +00:00
Quentin (OpenERP) ec6cbc8f4a [FIX] account: fixed missing context passing in account_invoice_refund wizard
bzr revid: qdp-launchpad@openerp.com-20130327105405-x2gmid38lhfnk40q
2013-03-27 11:54:05 +01:00
Christophe Simonis a78531df43 [FIX] account: installer: call right method
bzr revid: chs@openerp.com-20130125121127-j7i3rwskqojyp8nm
2013-01-25 13:11:27 +01:00
Christophe Simonis 4c89124778 [IMP] account: installer get list of charts from apps
bzr revid: chs@openerp.com-20130124190039-qhcyrnrgpue0rak5
2013-01-24 20:00:39 +01:00
Olivier Dony 4984961634 [FIX] account: tree drill-down action bindings were removed by error for Chart of Accounts/Taxes
Was done by mistake as a side-effect of rev. 8086.1.28 revid:dle@openerp.com-20121128150525-zh27h78v8dd6dkwm

bzr revid: odo@openerp.com-20130124123827-2pv2nhzjdt9r2li4
2013-01-24 13:38:27 +01:00
Quentin (OpenERP) 93884a8a11 [FIX] account: added the ir.values to add the partner_ledger report as report on the res.partner object + fixed that part of the code
bzr revid: qdp-launchpad@openerp.com-20130123113253-0gs8idcha0qbem9s
2013-01-23 12:32:53 +01:00
Launchpad Translations on behalf of openerp 3499c33270 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130123060246-kt475gbzoz4f1703
bzr revid: launchpad_translations_on_behalf_of_openerp-20130123060324-z9zt3oif6p20i6mp
bzr revid: launchpad_translations_on_behalf_of_openerp-20130123060328-e0rnct2yu9lh23vp
2013-01-23 06:03:28 +00:00
Olivier Dony e82d59e547 [FIX] account.invoice.report: search view should not OR the filters Invoice/Refund filters with the Customer/Supplier ones
These filters are typically checked alternatively to obtain the
Customer Invoices or Customer Refunds or Supplier Invoices or
Supplier Refunds, so these 2 series of filters must be combined
with AND. This requires an extra separator in the search view.

bzr revid: odo@openerp.com-20130122105227-dbhltam9alfr8i9q
2013-01-22 11:52:27 +01:00
Launchpad Translations on behalf of openerp f4fd5fd99c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130122053126-83zqktwur95krpav
bzr revid: launchpad_translations_on_behalf_of_openerp-20130118071115-y2843mxyuler6hek
bzr revid: launchpad_translations_on_behalf_of_openerp-20130121052757-d35pqy1p2am5fh9m
bzr revid: launchpad_translations_on_behalf_of_openerp-20130122053131-v8w8ndi4bzy750yj
2013-01-22 05:31:31 +00:00
Launchpad Translations on behalf of openerp cd1e346e01 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130119063657-x4n6e50dn5dapwl3
bzr revid: launchpad_translations_on_behalf_of_openerp-20130120051711-l7ov76fat5jy5zzi
bzr revid: launchpad_translations_on_behalf_of_openerp-20130121052717-y8me1m61e5jawj09
bzr revid: launchpad_translations_on_behalf_of_openerp-20130119063730-1qb2f0t3ja3lfcp9
bzr revid: launchpad_translations_on_behalf_of_openerp-20130120051738-sa4uc0kj70qwxxw7
bzr revid: launchpad_translations_on_behalf_of_openerp-20130121052754-7hplv5713jf1mzh1
2013-01-21 05:27:54 +00:00
Launchpad Translations on behalf of openerp 7a49719d46 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130118071051-e8wytix67wlb17yd
2013-01-18 07:10:51 +00:00
Antony Lesuisse ba65ad2422 [FIX] contract show date_start
bzr revid: al@openerp.com-20121229044248-psypv1fhsg5rfash
2012-12-29 05:42:48 +01:00
Launchpad Translations on behalf of openerp 5880f9aa75 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130116055224-nyvhjk7xo4etfazv
bzr revid: launchpad_translations_on_behalf_of_openerp-20130116055259-2hpcs7r52n0z59cy
bzr revid: launchpad_translations_on_behalf_of_openerp-20130116055303-l47hpzm5yz18i8q7
2013-01-16 05:53:03 +00:00
Launchpad Translations on behalf of openerp 567946664b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130112054058-8axv6o0qb0xnmx0w
bzr revid: launchpad_translations_on_behalf_of_openerp-20130113052752-ek3mq7hoe2mj4zyt
bzr revid: launchpad_translations_on_behalf_of_openerp-20130114051817-ltnyu6jl4nxctf8t
2013-01-14 05:18:17 +00:00
Quentin (OpenERP) 04f75c1833 [FIX] account: when editing an account.move, don't crash at the creation of account.move.line because the date isn't given, if it already exists in the parent move
bzr revid: qdp-launchpad@openerp.com-20130111135426-f68wteyccd3nqani
2013-01-11 14:54:26 +01:00