Commit Graph

1777 Commits

Author SHA1 Message Date
Christophe Matthieu e49908b879 [MERGE] trunk-website-demo-partner-bth
bzr revid: chm@openerp.com-20131128172226-mx0e6dt1iv3nrgwg
2013-11-28 18:22:26 +01:00
Christophe Simonis 6e574a8e4d [IMP] res.users: avoid reading all fields explictly when computing reified groups
bzr revid: chs@openerp.com-20131126111228-cjnp11nc6l383q5r
2013-11-26 12:12:28 +01:00
Christophe Simonis ab386c0f5f [MERGE] forward port of branch saas-2 up to revid 4984 chs@openerp.com-20131125151017-lmj53bxg1pfrr4a7
bzr revid: chs@openerp.com-20131125154140-cpbk4tcdml2a3b9n
2013-11-25 16:41:40 +01:00
Christophe Simonis 043fe6c2d5 [FIX] base: on_change_login only set email for valid emails
bzr revid: chs@openerp.com-20131124164435-977xi3eg7svn5mgz
2013-11-24 17:44:35 +01:00
Denis Ledoux 6fd552c3ce [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5139 rev-id: dle@openerp.com-20131121132305-qjlclgz5v9tze1fr
bzr revid: odo@openerp.com-20131120102545-2tlp031yib6viz35
bzr revid: chs@openerp.com-20131120161708-c8sbom592moukwxw
bzr revid: dle@openerp.com-20131121155457-lh7fzouk2upeiu16
2013-11-21 16:54:57 +01:00
Jitendra Prajapati (OpenERP) 2160a9231a [IMP]Improve Label
bzr revid: prajapatijitendra7969@gmail.com-20131121104358-ng973131gm4d8sav
2013-11-21 16:13:58 +05:30
Jitendra Prajapati (OpenERP) c04e06a549 [MERGE]with lp:openobject-server
bzr revid: prajapatijitendra7969@gmail.com-20131120050735-32bgc03snos97ux5
2013-11-20 10:37:35 +05:30
Jitendra Prajapati (OpenERP) d844d3e1d3 [IMP]Improved breadcrumb value in 'Configuration Parameters'
bzr revid: prajapatijitendra7969@gmail.com-20131119132216-6idc0jnvd5jbfx0v
2013-11-19 18:52:16 +05:30
Martin Trigaux 89850477a2 [FIX] fonts: add missing onchange on company form
bzr revid: mat@openerp.com-20131119085343-930hs460m5uzz5xj
2013-11-19 09:53:43 +01:00
Denis Ledoux 9cede6794d [FIX]base: missing quote in domain of res_partner filter on name
bzr revid: dle@openerp.com-20131118155230-hvdm4yqu5fz3w5q4
2013-11-18 16:52:30 +01:00
Xavier Morel 8e78b40e6a [MERGE] from trunk
bzr revid: xmo@openerp.com-20131115132553-9eqxggih8be63i36
2013-11-15 14:25:53 +01:00
bth-openerp 8e0ab3a09b [IMP]Set email address.
bzr revid: bth@tinyerp.com-20131111122748-cadl97pwkkj0b9s3
2013-11-11 17:57:48 +05:30
bth-openerp f4a0d30fc4 [IMP]Moved demo data from yml to xml.
bzr revid: bth@tinyerp.com-20131111094510-ayhsv2kwnxouhip3
2013-11-11 15:15:10 +05:30
Nhomar - Vauxoo fc017404e4 [FIX] Country data is incorrect for Venezuela, the country currency is VEF not VUB (the old ones) wich techincally is incorrect too because it was VEB, but no problem, only fixing here the VEF to allow test everything correctly.
lp bug: https://launchpad.net/bugs/1251429 fixed

bzr revid: nhomar@gmail.com-20131114210740-oijhkbr2nmi5hoe4
2013-11-14 16:37:40 -04:30
Quentin (OpenERP) 8a52fe77f8 [IMP] base, currency: second attempt to include this patch (previously added in revision 4982 then reverted in revision 4984 because of a bug in the server that was making an infinite loop -which has been fixed in previous revision-). Updated the type of name field of res.currency.rate in <datetime> instead of <date> for those who need to update the rate of currencies several times per day
bzr revid: qdp-launchpad@openerp.com-20131104134618-oujlfwmnpc1xbvml
2013-11-04 14:46:18 +01:00
Christophe Simonis 0e1cc663b3 [MERGE] forward port of branch saas-2 up to revid 4968 chs@openerp.com-20131031142325-vo84hk5co2e2phg0
bzr revid: chs@openerp.com-20131031143208-4gtdju33sv0wdtcg
2013-10-31 15:32:08 +01:00
Denis Ledoux 0cf57bdee2 [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 8800 rev-id: dle@openerp.com-20131031162241-goga1hsvwgyqigzd
bzr revid: chs@openerp.com-20131031142325-vo84hk5co2e2phg0
bzr revid: dle@openerp.com-20131031143133-wfus2hag57e73by2
bzr revid: dle@openerp.com-20131031162928-8gpom1ralccy07uc
2013-10-31 17:29:28 +01:00
Christophe Simonis 82211b1ac2 [MERGE] forward port of branch 7.0 up to revid 5113 launchpad_translations_on_behalf_of_openerp-20131031054724-b9dbttdcrl9eccwr
bzr revid: chs@openerp.com-20131025103657-pbnqhw11mygyi5jn
bzr revid: chs@openerp.com-20131031142125-7bm00z2jpccf3v6f
2013-10-31 15:21:25 +01:00
Quentin (OpenERP) ca92afb39a [REV] base, res.currency: reverted revision 4982 because it was causing an error when a res.currency.rate was searched with a domain like [('name', '=', '30-20-2013')]. This patch will be back with a graceful solution to fix the error
bzr revid: qdp-launchpad@openerp.com-20131030172805-7ndvj8vj4h31wre8
2013-10-30 18:28:05 +01:00
bth-openerp 188eab16e6 [IMP]Email is updated.
bzr revid: bth@tinyerp.com-20131030061204-uyytfzdgbh2qvhsn
2013-10-30 11:42:04 +05:30
bth-openerp d4325ac933 [MERGE]Merge trunk-website-al.
bzr revid: bth@tinyerp.com-20131017054433-5a8vax2nyuwwwzuw
bzr revid: bth@tinyerp.com-20131021065916-qpffh3kfkz0n8v8k
bzr revid: bth@tinyerp.com-20131022112314-50vj16z4rva3ngi9
bzr revid: bth@tinyerp.com-20131025073225-s8crvmd65oji11fl
bzr revid: bth@tinyerp.com-20131028050304-2n6yktosjstlm45y
bzr revid: bth@tinyerp.com-20131029045254-ggwaarzd6zsakq40
2013-10-29 10:22:54 +05:30
Thibault Delavallée 97f164ba99 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20131028163325-2hpks3hp23zop40n
2013-10-28 17:33:25 +01:00
Olivier Dony 5db5d655d6 [IMP] res.users: default search field should match emails too
bzr revid: odo@openerp.com-20131028155639-it1q12xt5iul1oac
2013-10-28 16:56:39 +01:00
Olivier Dony 06a3255576 [IMP] res_partner: default search field can be based on display_name + have email matching by default
This more closely matches the behavior of name_search,
until name_search is actually available in search views.

bzr revid: odo@openerp.com-20131028155600-1dwd35sjht2of63m
2013-10-28 16:56:00 +01:00
Quentin (OpenERP) d6e3f655b5 [IMP] base, res_currency: changed the type of name of res_currency_rate from date to datetime for those who need to update the rate of a currency several times per day
bzr revid: qdp-launchpad@openerp.com-20131028140333-nmvm07ay5xllo2zi
2013-10-28 15:03:33 +01:00
Martin Trigaux 57a78f3f97 [FIX] res_config: don't jump to first root menu after applying changes, instead reload and stay on same configuration page
bzr revid: mat@openerp.com-20131025154657-fk7t72hl9cns2279
2013-10-25 17:46:57 +02:00
Antony Lesuisse 422de0505c [REM] remove useless warning in user preference
bzr revid: al@openerp.com-20131025133531-6sbntv1visib5akt
2013-10-25 15:35:31 +02:00
Xavier Morel 5b4775c840 [REF] simplification of res.lang format
bzr revid: xmo@openerp.com-20131021111457-k9rgt5ojnk9doqh9
2013-10-21 13:14:57 +02:00
bth-openerp 39c20ac402 [MERGE]Merge lp:~openerp-dev/openobject-server/trunk-website-al.
bzr revid: bth@tinyerp.com-20131015142737-75xztjk49ka53ll2
2013-10-15 19:57:37 +05:30
Xavier Morel 41327fda79 [MERGE] from trunk after fonts have been added
bzr revid: xmo@openerp.com-20131015114534-bmuu05j125s9mbo9
2013-10-15 13:45:34 +02:00
Martin Trigaux b9c3d93416 [IMP] font: handle better the difference of fonts
bzr revid: mat@openerp.com-20131014150507-4ueuyyneo6h2f6ju
2013-10-14 17:05:07 +02:00
bth-openerp b09a17bf4c [IMP]Update email like partner_name@company_name.example.com
bzr revid: bth@tinyerp.com-20131014132730-xhdb19fhs70qwxzq
2013-10-14 18:57:30 +05:30
Martin Trigaux 53e8625cea [FIX] font: cleaning and better default data
bzr revid: mat@openerp.com-20131014123815-6tnegdiv4cnaimtf
2013-10-14 14:38:15 +02:00
bth-openerp a3ae21d958 [IMP]Added partner demo data.
bzr revid: bth@tinyerp.com-20131014111137-ffkxhfmr7vuasbti
2013-10-14 16:41:37 +05:30
Martin Trigaux 3798b1ed96 [IMP] better labels
bzr revid: mat@openerp.com-20131014101523-bwb4lda2rxbqpb8a
2013-10-14 12:15:23 +02:00
Martin Trigaux b3a8a4493d [IMP] fonts: adapt fonts to many2one instead of list
bzr revid: mat@openerp.com-20131014094122-6ndc5scni2xyzksy
2013-10-14 11:41:22 +02:00
Xavier Morel 9cbc632fa1 [IMP] smartenify res_currency code
bzr revid: xmo@openerp.com-20131011105120-1d5fg06j6zsuxty2
2013-10-11 12:51:20 +02:00
Thibault Delavallée b74c255168 [MERGE] Sync with trunk until revision 4967 (including al cleaning)
bzr revid: tde@openerp.com-20131007081039-adyay7oy1tpx4g2k
2013-10-07 10:10:39 +02:00
Antony Lesuisse e14ec807d2 fix xml order for change password wizard
bzr revid: al@openerp.com-20131006150857-6jm5jpjl1u4p0vo7
2013-10-06 17:08:57 +02:00
Antony Lesuisse 6e2e77beec fix res_group rename, move files to clean up res
bzr revid: al@openerp.com-20131006150309-fg8vuvaq9hmvi9oh
2013-10-06 17:03:09 +02:00
Antony Lesuisse 6488849191 [REM] res.config and res.users cleanups.
removed deprecated configuration wizards
removed deprecated busniess card report
moved change password wizard to res_users.py

bzr revid: al@openerp.com-20131006144020-zyp2jz5vy28m9q3f
2013-10-06 16:40:20 +02:00
Antony Lesuisse 31a8dc36e5 [REM] shortcuts, deprecated by bookmarks
bzr revid: al@openerp.com-20131006132424-bpd8w0zzuf42s55l
2013-10-06 15:24:24 +02:00
Antony Lesuisse f1faa55cb6 rename links get, allow reference fields without size.
bzr revid: al@openerp.com-20131006114704-mkbheq3l355u21jb
2013-10-06 13:47:04 +02:00
Antony Lesuisse 881a76dbcf [IMP] Technical menu reorg, remove depreacted requests.
Moved low levels object to database structure.
Removed res.request models bu keep res.request.link, res.request.link is used
to flag models worth to be linked by references fields.
Moved currency and state to the approriate directory.

bzr revid: al@openerp.com-20131006112608-3qucrevmkf43kq20
2013-10-06 13:26:08 +02:00
Thibault Delavallée a1d6ac520c [MERGE] Sync with trunk.
Pleave avoid merging with other branches like saas branch, this causes criss-cross issues.
Do things completely instead of tryign to gain 3 minuts.

bzr revid: chm@openerp.com-20131003151612-bmaylm7v3ywqwaux
bzr revid: tde@openerp.com-20131004084936-8xdvfjm2dhtyq07p
2013-10-04 10:49:36 +02:00
Martin Trigaux cd94736f1f [ADD] report: support for dynamic fonts in report
search for TTF file on the system (in typical repositories)
add font field on the company and config wizard, the chosen value will replace the fontName value by the new one

bzr revid: mat@openerp.com-20131003141307-y6rsfooxepfgmofd
2013-10-03 16:13:07 +02:00
Martin Trigaux dd2cbe92b5 [FIX] report: default font set as helvetica
bzr revid: mat@openerp.com-20131003135018-2jr68cfbffda53m3
2013-10-03 15:50:18 +02:00
Darshan Kalola (OpenERP) f97e51b6c7 [IMP]Rename parent variable with parent_company.
bzr revid: dka@tinyerp.com-20131003073515-y3xt3qqymgourcn1
2013-10-03 13:05:15 +05:30
Thibault Delavallée 54933118a4 [MERGE] Sync with trunk until revision 4957.
bzr revid: tde@openerp.com-20131002133820-8xomdumexexqp3pk
2013-10-02 15:38:20 +02:00
Martin Trigaux aa30437603 [IMP] one global list, remove hard coded list of font
bzr revid: mat@openerp.com-20131002101956-y6jt4d13bbku12g3
2013-10-02 12:19:56 +02:00
Fabien Pinckaers 4b5d3e4a40 [IMP] priority on views
bzr revid: fp@openerp.com-20130929085000-p2pcmkdubqw1lfbj
2013-09-29 10:50:00 +02:00
Fabien Pinckaers 1db512092f [IMP] events
bzr revid: fp@openerp.com-20130928164336-6exrohfc2ek4d2y5
2013-09-28 18:43:36 +02:00
Darshan Kalola (OpenERP) 2868f916c5 [IMP]improve attrs on use_parent_address.
bzr revid: dka@tinyerp.com-20130927123020-nk04nr8o621xw31b
2013-09-27 18:00:20 +05:30
Darshan Kalola (OpenERP) df9adf55a7 [MERGE]merged with lp:openobject-server
bzr revid: dka@tinyerp.com-20130924115245-dbe1o0t4o7p4wzxm
2013-09-24 17:22:45 +05:30
Darshan Kalola (OpenERP) 8fdc129f56 [IMP]Improve onchange behave with seperate onchange method for use parent address.
bzr revid: dka@tinyerp.com-20130924105203-6nq2755rdfscs6kb
2013-09-24 16:22:03 +05:30
Thibault Delavallée 71653438eb [IMP] res_partner: demo data: have one partner coming from LA, to be able to use this town in various demo data
bzr revid: tde@openerp.com-20130924095602-u6q5u0c0jpnlc6nk
2013-09-24 11:56:02 +02:00
Dharmraj Zala (OpenERP Trainee) 92aebae8af [IMP] improved code and defaults
bzr revid: dizzy.zala@gmail.com-20130920062115-r8vr770nwg7450ja
2013-09-20 11:51:15 +05:30
Dharmraj Zala (OpenERP Trainee) b1647e2d32 [IMP] miscellaneous improvements
bzr revid: dizzy.zala@gmail.com-20130917055129-zvh1tbhghy1vr9oc
2013-09-17 11:21:29 +05:30
Atul Patel (OpenERP) 58fcaa9d40 [MERGE]: Merged with server
bzr revid: atp@tinyerp.com-20130916152046-vc454ytxm3gkq5sj
2013-09-16 20:50:46 +05:30
Dharmraj Zala (OpenERP Trainee) b1e66aa382 [IMP] miscellaneous improvements
bzr revid: dizzy.zala@gmail.com-20130913132707-gxjtq6mcrz9btgty
2013-09-13 18:57:07 +05:30
Christophe Simonis e13ffe7e11 [MERGE] forward port of branch 7.0 up to revid 5075 chs@openerp.com-20130912141018-qmcyase8zqov9d01
bzr revid: chs@openerp.com-20130906165207-1oklc8cqs0rex3kg
bzr revid: dle@openerp.com-20130909170248-a4t5y6qd5ikkhhac
bzr revid: dle@openerp.com-20130911083736-6jfkb140jxbbx7j6
bzr revid: chs@openerp.com-20130912150616-v0c383trj7gaa7eu
2013-09-12 17:06:16 +02:00
Dharmraj Zala (OpenERP Trainee) a20a7f20a8 [IMP] code improvement
bzr revid: dizzy.zala@gmail.com-20130912120059-rnn784u646xph74l
2013-09-12 17:30:59 +05:30
Dharmraj Zala (OpenERP Trainee) 420c4a9489 [IMP] improved header templates
bzr revid: dizzy.zala@gmail.com-20130911112401-9oe7kvus5nirx9ic
2013-09-11 16:54:01 +05:30
Dharmraj Zala (OpenERP Trainee) 5ae665f803 [IMP] improved get_font_list method so user can have choice of available fonts to print rml reports
bzr revid: dizzy.zala@gmail.com-20130911105912-6pov1orhqo39qeb2
2013-09-11 16:29:12 +05:30
Dharmraj Zala (OpenERP Trainee) 4bd0540505 [IMP] added a global method for getting system font list
bzr revid: dizzy.zala@gmail.com-20130911064104-6umza2px5v4oltk2
2013-09-11 12:11:04 +05:30
Christophe Simonis 4327e09a55 [MERGE] forward port of branch saas-1 up to revid 4903 dle@openerp.com-20130909170248-a4t5y6qd5ikkhhac
bzr revid: chs@openerp.com-20130910121230-xcr2yj6rpbo83wy0
2013-09-10 14:12:30 +02:00
Martin Trigaux 744c48819d [MERGE] res.users: synchronise partner's company with the one of the user
bzr revid: mat@openerp.com-20130909135835-ifvra8l05soptwwt
2013-09-09 15:58:35 +02:00
Pinakin Nayi (OpenERP) 7ecff57509 [FIX]res_user : replace field to show latest connection in tree view
bzr revid: pna@tinyerp.com-20130906104251-lf0584j6q5hm2sfm
2013-09-06 16:12:51 +05:30
Olivier Dony 95b7d5bcaf [FIX] res.partner: current name_search() implementation tends to skip a few valid results during early autocompletion - mitigation attempt
The main reason for the semi-random behavior
observed during auto-completion is the
missing ORDER BY clause in the pre-filtering
SQL query.

The ORDER BY clause is expensive but inevitable
if we want to apply a correct LIMIT, otherwise
we would return random `limit` results among
all the possible matches.

The current SQL query seems convoluted due
to the duplicated CASE clause but it
performs slightly better than the equivalent
CTE-based (WITH...) query, so it was preferred.


There is still a chance of returning too
few results due to double limit application,
as further discussed in bug 1203727

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

bzr revid: odo@openerp.com-20130905170251-x47w1zrm43d0k9wb
2013-09-05 19:02:51 +02:00
Darshan Kalola 15906b31fb [IMP]clear address when use_parent_address is set to false
bzr revid: dka@tinyerp.com-20130829110955-9eh0b2x0d4d24b8b
2013-08-29 16:39:55 +05:30
Darshan Kalola 67ee41be1f [MERGE]merged with lp:openobject-server
bzr revid: darshankalola@gmail.com-20130821113423-g96vghlz0qh81v9w
bzr revid: darshankalola@gmail.com-20130829105415-43ej5ly20xacl6b4
2013-08-29 16:24:15 +05:30
Denis Ledoux 055c4b94f2 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5059 rev-id: dle@openerp.com-20130828125209-5jqwjqhrl17x7kpa
bzr revid: dle@openerp.com-20130828135425-yuls3wav79znadt3
2013-08-28 15:54:25 +02:00
Denis Ledoux 57818bb779 [FIX]res_config: in _install_modules, result returned by button_immediate_install must be returned, in order to launch the action if there is one. TODO fix,at the moment, if there are missing modules, this return statement prevent their installation
bzr revid: dle@openerp.com-20130828125209-5jqwjqhrl17x7kpa
2013-08-28 14:52:09 +02:00
Christophe Simonis 208b697239 [MERGE] forward port of branch saas-1 up to revid 4899 chs@openerp.com-20130821094758-1ae0d1ml5obufzxv
bzr revid: odo@openerp.com-20130820160346-qcdy4kavgm5cb9t6
bzr revid: chs@openerp.com-20130821103139-zqqbrt8dq6iixrny
2013-08-21 12:31:39 +02:00
Olivier Dony e56a0c565f [MERGE] (Manual) Foward-port of addons 7.0 bugfix revid:odo@openerp.com-20130813082247-fz1cv55l82j9uo3l
res.partner: avoid including the address in the computed display name

bzr revid: odo@openerp.com-20130820152025-3yt7gtnaeztdt1nh
2013-08-20 17:20:25 +02:00
Olivier Dony fbd0758cb5 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5054 rev-id: odo@openerp.com-20130820091157-e5brwlxuhujf8rrd
bzr revid: chs@openerp.com-20130724085026-525l9apggc9yzx0h
bzr revid: odo@openerp.com-20130730140644-1xih0as5jsks4pub
bzr revid: dle@openerp.com-20130801130723-khgwjkglgsdn34fj
bzr revid: odo@openerp.com-20130820091638-jpbcmh653bpa29em
2013-08-20 11:16:38 +02:00
Darshan Kalola be4aba7d8f [IMP]improve onchange behaviour when creating partner or contact
bzr revid: darshankalola@gmail.com-20130819084304-5jxrvmu8on3fzm2j
2013-08-19 14:13:04 +05:30
Rohan Nayani (Open ERP) b78fb03175 removed sun-Exta.ttf font from list
bzr revid: ron@tinyerp.com-20130813085617-up6r271dmzfkc452
2013-08-13 14:26:17 +05:30
Chirag Dodiya (OpenERP Trainee) abb3122c2a [MERGE] merge with bzr merge lp:openobject-server
bzr revid: chiragdd7@gmail.com-20130813050340-9q3b6fse8sghtc2d
2013-08-13 10:33:40 +05:30
Holger Brunn 89851d6108 [IMP] improve readability
bzr revid: hbrunn@therp.nl-20130808181806-mdsrcltl8r526sr6
2013-08-08 20:18:06 +02:00
Holger Brunn 9af99b6000 [FIX] only descend to children when necessary
lp bug: https://launchpad.net/bugs/1210186 fixed

bzr revid: hbrunn@therp.nl-20130808161339-7y5dtwacb1ed7fcp
2013-08-08 18:13:39 +02:00
Rifakat 3ba9415e80 [IMP] removed unused user pool
bzr revid: rha@tinyerp.com-20130801063502-g2u9l8ave9sd7kim
2013-08-01 12:05:02 +05:30
Rifakat acd76079ba [FIX] fix demo data problem, now able to assign company to existing partner which does not have
any company. Did small variable name change

bzr revid: rha@tinyerp.com-20130801062706-imbu9ac2nimbd28f
2013-08-01 11:57:06 +05:30
Martin Trigaux ef3e11c03d [FIX] res_currency: pass context to currency function
bzr revid: mat@openerp.com-20130731123812-oztjyktifs23lhi9
2013-07-31 14:38:12 +02:00
Martin Trigaux fc2eb46b40 [IMP] res_currency: more modular solution
bzr revid: mat@openerp.com-20130731110525-garlkomohzcyp4pd
2013-07-31 13:05:25 +02:00
Martin Trigaux 48daabd465 [FIX] res_currency: avoid getting blocked when creating a curreny without rates
bzr revid: mat@openerp.com-20130731100626-kgxpvfkwkg13lpy1
2013-07-31 12:06:26 +02:00
Vo Minh Thu a1f70b171b [MERGE] company form view: display "Click to set your company logo." in edit mode only.
bzr revid: vmt@openerp.com-20130702113155-cqxun8m1f04jn60o
2013-07-02 13:31:55 +02:00
Vo Minh Thu fac1397945 [MERGE] Estonia currecny is EUR since 2011.
bzr revid: vmt@openerp.com-20130702111017-qn7v4vwdsgvvgla6
2013-07-02 13:10:17 +02:00
Chirag Dodiya (OpenERP Trainee) 52cbc9ed3a [MERGE] merge with trunk server
bzr revid: chiragdd7@gmail.com-20130619120454-ax7ejguq1tpblcr0
bzr revid: chiragdd7@gmail.com-20130624053825-8he5eeg9yv9orx8c
bzr revid: chiragdd7@gmail.com-20130625044539-l16wdav0vzep8gq9
2013-06-25 10:15:39 +05:30
Thibault Delavallée 9f84cc4968 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130624160006-ndlo68bdmm3ndj21
2013-06-24 18:00:06 +02:00
Thibault Delavallée 853951a9d6 [IMP] res.users: improved form view to ease email, login and email preferences clarification
bzr revid: tde@openerp.com-20130624093841-6vi3zjcz260dzuig
2013-06-24 11:38:41 +02:00
Quentin (OpenERP) bcac5bd834 [FIX] ir_property: fixes in property fields related to multi company use cases
bzr revid: qdp-launchpad@openerp.com-20130624085731-fthhdpdm4ldi3220
2013-06-24 10:57:31 +02:00
Quentin (OpenERP) c54bc51eb7 [IMP] ir_property fields: added the possibility to use 'selection' field type as properties
bzr revid: qdp-launchpad@openerp.com-20130624085311-ujeahocdp0d2royg
2013-06-24 10:53:11 +02:00
Quentin (OpenERP) 601ee8e030 [REF] ir_property: changed 'value_reference' and 'res_id' fields into char instead of reference fields because the code was fuzzy, the performances very bad (at least since 'view_load' attribute has been removed), and because there were no reason to have them as references (even from an useability point of view)
bzr revid: qdp-launchpad@openerp.com-20130624085049-elmhvzkufntlzbf8
2013-06-24 10:50:49 +02:00
Quentin (OpenERP) 31d05360b2 [REF] fields: removed deprecated view_load attribute and removed useless first argument in property fields definition
bzr revid: qdp-launchpad@openerp.com-20130619091332-29pisdnyfemn1u3d
2013-06-19 11:13:32 +02:00
Chirag Dodiya (OpenERP Trainee) ce8fb2e1b7 [IMP] Puted help as per review suggestion
bzr revid: chiragdd7@gmail.com-20130618093655-tnwc1jkbnz5hi1b1
2013-06-18 15:06:55 +05:30
Chirag Dodiya (OpenERP Trainee) 57de566d67 [MERGE] merge with server
bzr revid: chiragdd7@gmail.com-20130614064912-2fbrw3knc3kdzmbk
bzr revid: chiragdd7@gmail.com-20130617052728-kjzu2ngntuoj6r35
2013-06-17 10:57:28 +05:30
Thibault Delavallée 45780c147d [IMP] Partner View Improvement: remove history tab.
This server branch comes with an addons branch where the various
items of the history tab are removed and transformed into
contextual buttons.
Names are added to two pages of the partner notebook to be able
to reference them in future inheritance.

bzr revid: tde@openerp.com-20130614120540-5qvvh07cu2quwi71
2013-06-14 14:05:40 +02:00
Christophe Simonis e5614c0751 [FIX] base: correct `help` in res.bank view
bzr revid: chs@openerp.com-20130613175453-2tnl06dxgc9z4hbs
2013-06-13 19:54:53 +02:00
Christophe Simonis a61e7cb0c8 [MERGE] forward port of branch saas-1 up to revid 4887 chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
bzr revid: chs@openerp.com-20130613172414-dln3g4j0ykcwaa02
bzr revid: chs@openerp.com-20130613173900-xl7rh321nnw2b04b
2013-06-13 19:39:00 +02:00
Christophe Simonis a7bbb40404 [IMP] res.partner: name_search() search on `display_name` field directly
bzr revid: chs@openerp.com-20130612153749-gts0pa3ys5z06okg
2013-06-12 17:37:49 +02:00
Christophe Simonis 6f170ec732 [MERGE] forward port of branch 7.0 up to revid 5006 chs@openerp.com-20130612151912-m19okjsdkjo12qnt
bzr revid: chs@openerp.com-20130612152826-j9sj42ten9mic8s0
2013-06-12 17:28:26 +02:00
Chirag Dodiya (OpenERP Trainee) 72604e8b12 [IMP] Improved Code as per Review suggestion
bzr revid: chiragdd7@gmail.com-20130612133227-xjf0d22bnwk4eota
2013-06-12 19:02:27 +05:30
Olivier Dony 8722e2a01e [FIX] res.partner: name_search() should match complete contact names in the format returned by name_get()
This was missed during the change of the name_get()
format at revision 4923.1.12
revid:odo@openerp.com-20130416093121-t5soophs2aui8rzq

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

bzr revid: odo@openerp.com-20130612095300-pcr3ly5g7bv656i1
2013-06-12 11:53:00 +02:00
Chirag Dodiya (OpenERP Trainee) 3398bd1402 [IMP]Changed In Parastyle
bzr revid: chiragdd7@gmail.com-20130612070728-yk4t52kpczdtt7bq
2013-06-12 12:37:28 +05:30
Chirag Dodiya (OpenERP Trainee) 489196ee76 Added selection field into company, set font dynamically to all para style in header
bzr revid: chiragdd7@gmail.com-20130611121310-35ogs0ler806hkov
2013-06-11 17:43:10 +05:30
Jigar Amin (OpenERP) 7dafd9d58e [IMP] res.partner must only allow to set the company_id of a partner if it is the same as the company of all users that inherit from this partner
bzr revid: jam@tinyerp.com-20130611055803-or29rx40278bqttt
2013-06-11 11:28:03 +05:30
Jigar Amin (OpenERP) d334814bf5 [merge] lp:openobject-server/7.0
bzr revid: jam@tinyerp.com-20130611051458-r4bg46apl7j6kfrf
2013-06-11 10:44:58 +05:30
niv-openerp a94bbf8e5e [FIX] Merge fix in saas1 for the problem that made the server crash when install a db
bzr revid: nicolas.vanhoren@openerp.com-20130610144915-0nj8vpk7n84ocj3f
bzr revid: nicolas.vanhoren@openerp.com-20130610150657-3xddn91gm0iq0ubp
bzr revid: nicolas.vanhoren@openerp.com-20130610154514-oee6s4f9g17bx63z
2013-06-10 17:45:14 +02:00
Martin Trigaux e403f2cbde [MERGE] [FIX] res.users: prevent exporting the virtual 'Access Rights' fields
A corresponding patch on openerp-web takes that
new field attribute into account

bzr revid: mat@openerp.com-20130610073127-kg5dhvslvri4k942
2013-06-10 09:31:27 +02:00
Olivier Dony 74e0201356 [MERGE] OPW 590300: make some action help texts consistent with the rest of the system
The policy is to have a one-line paragraph with
class `oe_view_nocontent_create` that directs the
user to the create button. There are exceptions
when the action is not supposed to be used to
create new records, in which case the help
text should indicate so.

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

bzr revid: odo@openerp.com-20130607162045-7di6r2fllm6k988x
2013-06-07 18:20:45 +02:00
Olivier Dony 4e366e01aa [FIX] res.users: prevent exporting the virtual "Access Rights" fields
A corresponding patch on openerp-web takes that
new field attribute into account.

bzr revid: odo@openerp.com-20130607093057-nujdeq39sqbx2cbo
2013-06-07 11:30:57 +02:00
Christophe Matthieu de9777bf56 [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607090251-2ym7dx73jdigq93w
2013-06-07 11:02:51 +02:00
Vo Minh Thu 691cd6e2a5 [MERGE] change_password_wizard: add password=True on the field.
bzr revid: vmt@openerp.com-20130605140818-m6hoesdwbbiiidey
2013-06-05 16:08:18 +02:00
Thibault Delavallée b545e866b1 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130604134405-byfc98qwgyeoufrl
2013-06-04 15:44:05 +02:00
Vo Minh Thu 048b365aff [FIX] renamed Partner Catgories to Partner Tags.
bzr revid: vmt@openerp.com-20130604124003-bpga8k6lq4s7qlvp
2013-06-04 14:40:03 +02:00
Vo Minh Thu 186da3a29c [MERGE] res_users treee view: use the `login_date` field (instead of `date`).
bzr revid: vmt@openerp.com-20130604094438-zwp5e09fte4ie1af
2013-06-04 11:44:38 +02:00
Vo Minh Thu afc7b07905 [MERGE] rng: more precise attributes/values on the `field` element.
bzr revid: vmt@openerp.com-20130603153456-kl112hvilfnyjtjg
2013-06-03 17:34:56 +02:00
Vo Minh Thu 6d80cebc3d [MERGE] improved typos.
bzr revid: vmt@openerp.com-20130603134442-zeqchsvtb9bukben
2013-06-03 15:44:42 +02:00
Vo Minh Thu de673a99a9 [MERGE] res.partner: ondelete=restrict on the state and country many2one.
bzr revid: vmt@openerp.com-20130603133555-2oz1bxotnkdh7tu4
2013-06-03 15:35:55 +02:00
Vo Minh Thu e081fd19dc [MERGE] res_users_view (preferences): save button now in red.
bzr revid: vmt@openerp.com-20130603132532-v5rlpj8tbbk34djy
2013-06-03 15:25:32 +02:00
Nimesh Contractor (OpenERP) 10cf84b77a [MERGE] with trunk.
bzr revid: nco@tinyerp.com-20130603104529-1f7ir2rdfunv9uxn
2013-06-03 16:15:29 +05:30
Jignesh Rathod (OpenERP) 18775366ff [MERGE]Trunk.
bzr revid: jir@tinyerp.com-20130527120241-xbg2px1ykswsx521
bzr revid: jir@tinyerp.com-20130531104339-akdwmtw3w02clwqh
2013-05-31 16:13:39 +05:30
Thibault Delavallée 181a6b9430 [IMP] res_users: simplified form view: added placeholders, especially for login that should be an email.
bzr revid: tde@openerp.com-20130531092511-41jfskbqo3v4oh4n
2013-05-31 11:25:11 +02:00
Thibault Delavallée 7b320464ff [REV] users: contraints on login = email style not applicable anymore.
bzr revid: tde@openerp.com-20130531082016-zx2lz6lhz4i4c7wt
2013-05-31 10:20:16 +02:00
Thibault Delavallée 99e3996514 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130531081023-i483jfsiihsmf8yo
2013-05-31 10:10:23 +02:00
Quentin (OpenERP) 40ea4556de [FIX] base, res_company: typo in default paraStyle tagname
bzr revid: qdp-launchpad@openerp.com-20130531074745-ycfvlzrvlkrli33h
2013-05-31 09:47:45 +02:00
Martin Trigaux 8c0dfaa9b8 [MERGE] [IMP] company: add onchange on state to match country
bzr revid: mat@openerp.com-20130530141819-evvqnmm029uf486h
2013-05-30 16:18:19 +02:00
Quentin (OpenERP) a5d944fb87 [IMP/FIX] base, res_company: changed the default headers in order to add the default styles in generated RML, to allow their modification (and the report printing of chinese characters, for example)
bzr revid: qdp-launchpad@openerp.com-20130528085920-ifabgl11jfimixqd
2013-05-28 10:59:20 +02:00
Amit Bhavsar (Open ERP) fac4be54cc [MERGE] merge with latest trunk
bzr revid: bde@tinyerp.com-20130522062609-f54wu6sxrx073mmi
bzr revid: amb@tinyerp.com-20130528055348-femt39yydzg5573i
2013-05-28 11:23:48 +05:30
Thibault Delavallée 1e73fbdb40 [IMP] res_users: improved form view according to task specifications (button -> link, partner_id visible, active moved outside access rights).
bzr revid: tde@openerp.com-20130524112648-8nsbhfnutq3v4u4e
2013-05-24 13:26:48 +02:00
Thibault Delavallée bb8153fcb7 [IMP] res_users: when specifying an email value, always check it is valid.
bzr revid: tde@openerp.com-20130524112621-ytoj7o5fqs7pcrty
2013-05-24 13:26:21 +02:00
Thibault Delavallée 4de42dc5a8 [MERGE] Sync with trunk
bzr revid: chm@openerp.com-20130415133654-l5b7zvga6mrv8bs3
bzr revid: tde@openerp.com-20130515082426-93tdl16rtm2kfz3a
bzr revid: tde@openerp.com-20130523133300-1el48hf8sotnvz62
2013-05-23 15:33:00 +02:00
Nimesh Contractor (OpenERP) b2c84a8310 [IMP] when create company form supplier it should be supplier by default, same for the customer and when both the company should be both customer and supplier.
bzr revid: nco@tinyerp.com-20130523052403-lk8e1ghfglwtavg5
2013-05-23 10:54:03 +05:30
Nimesh Contractor (OpenERP) be683318ef [MERGE] lp:~openerp-dev/openobject-server/trunk-bug-1128656-nco, supplier contact should be the suppier by default.
bzr revid: nco@tinyerp.com-20130523050632-bujvgr6j1lhj2or3
2013-05-23 10:36:32 +05:30
Nimesh Contractor (OpenERP) 7396ebdb20 [MERGE] with trunk.
bzr revid: nco@tinyerp.com-20130422050242-md9rj6bqpu0n78m1
bzr revid: nco@tinyerp.com-20130523044625-vwbcktuz9dsswnv6
2013-05-23 10:16:25 +05:30
Olivier Dony 823439f7e1 [FIX] res.groups: ensure predictable sort order
Unfortunately the group names are translatable,
and the display name is based on the hierarchy
of groups, so this will not give a satisfactory
result. What we would need ideally is to be able
to sort on the translated "full name" value,
but this is not supported by the ORM yet.
But a stable order is still better than no
order at all

bzr revid: odo@openerp.com-20130522163201-f9zo7xnjvbs2mi97
2013-05-22 18:32:01 +02:00
Thibault Delavallée 1d5068b63e [FORWARD] Forward port of server 7.0 until revision 4988
bzr revid: tde@openerp.com-20130528102733-bsszxp6nvy8yws3t
2013-05-28 12:27:33 +02:00
Thibault Delavallée d2acb63af6 [FORWARD] Forward-port of saas-1 branch until revision 4875
bzr revid: tde@openerp.com-20130522082935-rzzbc3p625rkmcdy
2013-05-22 10:29:35 +02:00
cbi@openerp.my.openerp.com 3d9c8b0513 [FIX] missing multi company currency access rules, set currency.company_id to False by default
lp bug: https://launchpad.net/bugs/1111298 fixed

bzr revid: alexandre.fayolle@camptocamp.com-20130517080246-k23d8hd0ks36cr5l
2013-05-17 10:02:46 +02:00
Vishmita Jadeja (openerp) 8c9675e75e [IMP]on change of country > If the selected state is of same country then don't change it and if it is of any other country then make it blank
bzr revid: vja@tinyerp.com-20130515133450-db0xs8fmm67t9orj
2013-05-15 19:04:50 +05:30
Vishmita Jadeja (openerp) 6f953c189a [FIX]Improve Code
bzr revid: vja@tinyerp.com-20130515105846-zkflow45bsbhe3ym
2013-05-15 16:28:46 +05:30
Cedric Snauwaert 3892a9fee4 [REF]res_partner: compact code to get tz info
bzr revid: csn@openerp.com-20130515101027-4nc06nr2u41jh1wr
2013-05-15 12:10:27 +02:00
Vishmita Jadeja (openerp) fa9abf91f7 [Merge]Merge with openobject-server
bzr revid: vja@tinyerp.com-20130515095510-rrl5xeen0a1oxzvu
2013-05-15 15:25:10 +05:30
Nimesh Contractor (OpenERP) d0236bd31e [FIX] set defalut customer and add field customer to store value of customer.
bzr revid: nco@tinyerp.com-20130515075140-dql9dhnygtgi7319
2013-05-15 13:21:40 +05:30
Cedric Snauwaert 1e03e6df78 [FIX]res_partner: change fields selection of tz so that timezone starting with Etc/ are at the end of the selection, that way it's less confusing for the users.
bzr revid: csn@openerp.com-20130514113100-h2oihowcplaba10j
2013-05-14 13:31:00 +02:00
Jigar Amin (OpenERP) 6d4215c9bf - Allow setting the company_id of the partner to False in order to make the partner shared between all companies.
bzr revid: jam@tinyerp.com-20130513060734-niodo4rzs0m1v073
2013-05-13 11:37:34 +05:30
Jigar Amin (OpenERP) 7ca67757fe [MERGE] Parent Sync (70)
bzr revid: jam@tinyerp.com-20130513050358-yvsdybtry9r67ied
2013-05-13 10:33:58 +05:30
Dharmraj Zala (OpenERP Trainee) 7542d8885d [FIX] set ondelete restrict on state and country.
bzr revid: nco@tinyerp.com-20130509113615-u2xedxu5ihn9lqh9
2013-05-09 17:06:15 +05:30
Raphael Collet ab6480dd0c [FIX] res_config tests: isinstance(x, long) is False when x is an int!
bzr revid: rco@openerp.com-20130508153207-0j8m0eiia2rvwmtf
2013-05-08 17:32:07 +02:00
Jagdish Panchal 2d969879de [MERGE] Merge with lp:~openerp-dev/openobject-server/trunk-addons29
bzr revid: jap@tinyerp.com-20130508111549-ttwq2e601pm33yxi
2013-05-08 16:45:49 +05:30
Quentin (OpenERP) 4d519be0b4 [IMP] base, res_currency: added an indirection on _current_rate() function to allow a clean overwriting
bzr revid: qdp-launchpad@openerp.com-20130507120149-p2m4ug20nfny234v
2013-05-07 14:01:49 +02:00
Tejas Tank e9104c75af Merged Latest.
bzr revid: tta@openerp.com-20130501063402-qaecsju4nhxn0iy8
2013-05-01 12:04:02 +05:30
Xavier Morel de13720f0e [IMP] rng of field tag in data xml
also fix nonsensical XML files specifying @ref and @model

bzr revid: xmo@openerp.com-20130429122423-qubsy2ccwo5tb8bq
2013-04-29 14:24:23 +02:00
ggh-openerp dd7614e716 [IMP] Remove space before Exclamation marks [!] in Warning
bzr revid: ggh@tinyerp.com-20130429072938-knas9ymmny5o2z0v
2013-04-29 12:59:38 +05:30
Olivier Dony ffebb64472 [MERGE] Forward-port of 7.0 fixes up to rev. 4961
rev-id odo@openerp.com-20130425171238-dhgpqbi9nio12vxk

bzr revid: odo@openerp.com-20130424131936-5eb7omkz51arnm81
bzr revid: odo@openerp.com-20130425171444-ycu89d2393f8nnxm
2013-04-25 19:14:44 +02:00
Olivier Dony 20020a7647 [FIX] res.partner: typo would prevent contact from using company address correctly if flag changed without changing/setting company + updated tests to cover this
bzr revid: odo@openerp.com-20130425171238-dhgpqbi9nio12vxk
2013-04-25 19:12:38 +02:00
Olivier Dony c8e8860d08 [FIX] res.partner: make use_parent_address field visible if set, even if parent is missing
This should not be needed but in the initial 7.0 branch
the default for use_parent_address was True so it was
set even on partners that had no parent company.
Now that the fields are read-only when that option
is enabled, it makes the address impossible to
edit. At least by making it visible we give the
user the opportunity of fixing it manually.

Can also be fixed at once with a single SQL
query:
UPDATE res_partner set use_parent_address = false
       WHERE parent_id IS NULL;

bzr revid: odo@openerp.com-20130425163916-ou7jjr6xbopfwvrc
2013-04-25 18:39:16 +02:00
Olivier Dony 0ee404c054 [FIX] res.partner: always call write() with a list of IDs, a single ID is not valid! (even if it works sometimes)
bzr revid: odo@openerp.com-20130424131625-aeljtyo5yuiyrlcz
2013-04-24 15:16:25 +02:00
Olivier Dony 230a06dd70 [FIX] res.partner: correct store trigger for display_name, forward port of addons 7.0 fix
Corresponding addons 7.0 patch: rev. 9057
revision-id: odo@openerp.com-20130423130656-celrtr352yht19ro

bzr revid: odo@openerp.com-20130424091651-7k7x03c5xhe66zsl
2013-04-24 11:16:51 +02:00
Christophe Simonis 261dea6fec [MERGE] forward port of server v7 up to revision 4954
bzr revid: qdp-launchpad@openerp.com-20130422093655-txqmbalod6qmw1s6
bzr revid: chs@openerp.com-20130423183723-9kiexdyzdew8iuzm
2013-04-23 20:37:23 +02:00
Tejas Tank 8856845b76 Merged Latest.
bzr revid: tta@openerp.com-20130423112355-2y1v4an50mahb2iz
2013-04-23 16:53:55 +05:30
Ishwar Malvi (OpenERP Trainee) d45ee609b4 [IMP] when create company from the supplier it should be set supplier.
bzr revid: nco@tinyerp.com-20130419084218-e3pflb3jqq6kihfa
2013-04-19 14:12:18 +05:30
Ishwar Malvi (OpenERP Trainee) d0920dea50 [IMP] when create contact of a supplier it should be supplier instead of customer.
bzr revid: nco@tinyerp.com-20130417113119-ilgy4k945h31azod
2013-04-17 17:01:19 +05:30
Vishmita Jadeja (openerp) e992bb8af8 [Merge]Merge lp:openobject-server
bzr revid: vja@tinyerp.com-20130417094236-kih1h8m4hv7b1jeq
2013-04-17 15:12:36 +05:30
Olivier Dony 360b549677 [MERGE] res.partner: many important fixes for contact/company management and address management, see 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_partner_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.

- Corrected autosync of address fields (bug 1160425). Also included in the same patch, because those two mechanisms are closely related and share some parts of the implementation. "use_parent_address" now defaults to False, and auto-sync only happens downstream, except for a special case when creating a new company and a new contact at the same time

- `is_company` does not reset the parent_id field anymore, to allow for multi-level structures. The `parent_id` field now also stays visible if it has a non-empty value

- the `email`, `phone`, `fax`, `mobile`, `lang`, etc. that were sometimes synced when changing parent company are now properly left alone

- res.partner.address_get() now defaults to the partner being looked up rather than company when no match is found at all and no "default" exists. This avoids losing the contact info on invoices when a new contact+company pair is created.

- the embedded contact creation mini-form was updated to include the address fields and the `type` field

- res.partner.name_get now return "Company, Contact" rather than "Contact (Company)" to make it clearer that the company is selected as well.

- Added warning message when changing the Company of a Contact that already has a company, so it is clear that it should only be done if the Company was incorrect - in other cases a new contact must be created under the new company.

- Fixed search domains using "child_of" to also include deactived records, so that using this operator in the search view of business documents returns the expected results.

- fixed propagation of "is_supplier" flag when creation a parent company for a contact created on the fly on a Purchase Order, and when adding contacts to an existing Supplier Company

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

bzr revid: odo@openerp.com-20130420032529-pvv6vuelp84bt26j
2013-04-20 05:25:29 +02:00
Olivier Dony 16b38a053a [FIX] res.partner: fix invisible attrs on Contacts tab, empty o2m field results in `[]`, not `False`
bzr revid: odo@openerp.com-20130420004713-0cblmquf4t6i2n0r
2013-04-20 02:47:13 +02:00
Olivier Dony 9b9c3fa59c [FIX] res.partner.name_get: partners marked as "is_company" should appear as standalone
This is more consistent with the way we expect reporting
to work, and will also ensure that these companies
appear right above their contacts in search order
(which will match name_get)

bzr revid: odo@openerp.com-20130419164728-25312wtyzt9h6egw
2013-04-19 18:47:28 +02:00
Olivier Dony 83feb1c46f [REVERT] res.partner: undo change of ordering in name_search result, to be addressed via a stored display_name field (temporarily added by account_report_company module in 7.0)
bzr revid: odo@openerp.com-20130419164447-wrmfghxi44au3273
2013-04-19 18:44:47 +02:00
Olivier Dony cfb53f1aad [FIX] res.partner: search using 'child_of' should include inactive children
This is necessary for 2 reasons:
- when searching on Business documents the search domain will be
  [('partner_id', 'child_of', 'ACME')] in order to match all
  descendants, and it must match inactive children as well
- in other cases like for resolving IDs to update via store
  triggers, it is necessary that 'child_of' returns inactive
  children too.

The implementation is tricky because the ORM automatically 
transform 'child_of' domains into recursive searches with
[('parent_id', 'in', ids)], which is the same query that the
reverse one2many 'child_ids' will also use to find contacts.
The overridden search() therefore matches this domain pattern
only when there is one criterion (to avoid side-effects in
other cases) and a dummy extra 'domain' was added to the
definition of the 'child_ids' o2m so it won't match.
The net result is that child_ids will not return inactive
children while child_of will return all descendants when
it is the only criterion. This is the expected behavior
whenever child_of is used on res.partner, because
it's safer to always show business documents.
The only side-effects will be for custom/manual search
calls with a single criterion of the form ('parent_id','in', x)
and those can be fixed by adding an extra domain
component ('active','=',True), just like child_ids does.

bzr revid: odo@openerp.com-20130419135756-2kbhwr23lygqdoob
2013-04-19 15:57:56 +02:00
Olivier Dony 3c5559045c [FIX] res.partner: add onchange warning when changing an existing contact's company
bzr revid: odo@openerp.com-20130418153829-rmkd6xo1cajgfer5
2013-04-18 17:38:29 +02:00
Olivier Dony dfbe68e69d [IMP] res.partner: rename commercial_id to commercial_partner_id + make function field inheritable
The name `commercial_partner_id` better reflects its
purpose and the fact that it is a FK to a partner.


An extra indirection through a lambda function was
also added to the definition of the function field
to make it possible to override it in other modules
(otherwise the function is passed by copy directly
and cannot be inherited later)

bzr revid: odo@openerp.com-20130418144533-owupfwn6h83q432x
2013-04-18 16:45:33 +02:00
Quentin (OpenERP) 5734172c71 [FIX] base, res_company: added a missing context when calling write(), apparently needed for OPW: 586824
bzr revid: qdp-launchpad@openerp.com-20130417092321-17vj33w2bp2bumo8
2013-04-17 11:23:21 +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
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
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
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 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 cff29fa888 [MERGE] Upstream
bzr revid: stw@openerp.com-20130415154400-fq7ydj6q1y07n02w
2013-04-15 17:44:00 +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
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
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 841cf5aaad merge upstream
bzr revid: chs@openerp.com-20130411154519-xvepmjrm4ibqddx7
2013-04-11 17:45:19 +02:00
Jigar Amin 356115167d [FIX] User Partner Company has to same as User Compnay not as usder company
bzr revid: jam@tinyerp.com-20130411094336-03i3475ydat8d5jj
2013-04-11 15:13:36 +05:30
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
Christophe Matthieu a1f1782cc0 [IMP] res_partner, res_users: small change in views
bzr revid: chm@openerp.com-20130410130145-qhtvhx6lrl3gt3x5
2013-04-10 15:01:45 +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
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
Fabien Meghazi 74997ff408 [IMP] res.partner form view, autofocus Contact notebook/page on visibility change
bzr revid: fme@openerp.com-20130409122954-mkene266qvcfe6nr
2013-04-09 14:29:54 +02:00
Quentin (OpenERP) 70fbc25d93 [IMP] base, res_partner and contacts management: improve usability and user experience.
1) whennever a contact is created from a parent record: allow to set a dedicated address
2) move the use_parent_address field near the address

bzr revid: qdp-launchpad@openerp.com-20130408155934-bk2apzq1gcktqr6m
2013-04-08 17:59:34 +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
Thibault Delavallée 2ab15ddeaf [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130405110750-1dd4y02xz3wb6ill
bzr revid: tde@openerp.com-20130405133237-n7k66b3w0b3a17o3
2013-04-05 15:32:37 +02:00
Dharmraj Zala (OpenERP Trainee) 363c4ab2a9 [FIX]Improved field int res_user_view.xml tree view
lp bug: https://launchpad.net/bugs/1164561 fixed

bzr revid: dizzy.zala@gmail.com-20130405071522-xmpa556spxe95i5b
2013-04-05 12:45:22 +05:30
Vo Minh Thu 307ca374d6 [MERGE] forward merge 7.0 until revision 4919.
bzr revid: vmt@openerp.com-20130404130704-24vsmczw34cssytd
2013-04-04 15:07:04 +02:00
Thibault Delavallée bef293af4b [IMP] res_partner: customers is now sequence 2, because salesteam will be 1.
bzr revid: tde@openerp.com-20130404115719-glq8uqgvyvhm0ukd
2013-04-04 13:57:19 +02:00
Christophe Matthieu d9e503ad6f [IMP] res_user: remove overwrite of create who change company_id value
bzr revid: chm@openerp.com-20130402084255-gapusfwxuyu2cfs1
2013-04-02 10:42:55 +02:00