Commit Graph

326 Commits

Author SHA1 Message Date
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 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
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
Olivier Dony 8468af8606 [FIX] res.partner.name_search: make sure companies always come before contacts when both match
bzr revid: odo@openerp.com-20130410152309-u4dn8bxssvcwdc8c
2013-04-10 17:23:09 +02:00
Olivier Dony 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
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
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
Xavier ALT 43cc95ce2b [FIX] partner: fix update for company address
* when writing an empty value to ADDRESS_FIELDS, that value
    should also be propagated by update_address()

  * when creating a contact from a company form view, even with
    'use_company_address', company's contact address remains empty. We
    now force adding missing address fields uppon creation when default
    'use_company_address' is True.

bzr revid: xal@openerp.com-20130329112317-6lat4jx5x2yh18t6
2013-03-29 12:23:17 +01:00
Vo Minh Thu 1e7e2ca753 [REF] no longer use openerp.pooler.
Either use openerp.modules.registry.RegistryManager when the full
new() signature is needed, or use openerp.registry().

Replaced also some pool.get() with pool[] because KeyErrors
are better than AttributeErrors on None.

bzr revid: vmt@openerp.com-20130327111014-2i0hlvpy5y5ku7hm
2013-03-27 12:10:14 +01:00
Fabien Pinckaers 9b5db9ad9e [IMP] small code cleanup
bzr revid: fp@tinyerp.com-20130326080748-fij148wyb0tirip5
2013-03-26 09:07:48 +01:00
niv-openerp 692cea3039 Removed default image on partners, use default one in the kanban view if false
bzr revid: nicolas.vanhoren@openerp.com-20121221120631-2uugaiexqanwbi00
2012-12-21 13:06:31 +01:00
Thibault Delavallée 910f7097ba [IMP] res_partner: use tools.email_split instead of custom regex when parsing partner_name to find an email.
bzr revid: tde@openerp.com-20130313105640-r53xueaz36zw3fjd
2013-03-13 11:56:40 +01:00
Niels Huylebroeck bc4e3d00ed [FIX] base: allow searching in multicompany environment on res_partner.
bzr revid: nh@agaplan.eu-20130225135753-ryf6y5e0nhxt8zux
2013-02-25 14:57:53 +01:00
Olivier Dony 0cd22d6d4b [IMP] res.partner: name_search nows searches email as well ; name_get now supports `show_email` context
+ various minor fixes to the way operators were
(mis)handled.

bzr revid: odo@openerp.com-20121220181604-61fxnjh35amdywwx
2012-12-20 19:16:04 +01:00
Cecile Tonglet ad8b76de53 [MERGE] From trunk (second time)
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Cecile Tonglet 5f0070dcb6 [FIX] Remove unused imports and fix some imports that doesn't use the new namespace
bzr revid: cto@openerp.com-20121217143029-e9ki4ftwihq7pdme
2012-12-17 15:30:29 +01:00
Cecile Tonglet 5179507e22 [MERGE] Branch updated with trunk
bzr revid: cto@openerp.com-20121217125902-idtlh4ztyah17bdn
2012-12-17 13:59:02 +01:00
Raphael Collet 3040114651 [MERGE] trunk-style-improvements-xmo (Python stylistic improvement)
bzr revid: rco@openerp.com-20121217110150-4ijt04ic17miktq7
2012-12-17 12:01:50 +01:00
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Christophe Simonis 74b431298e [FIX] remove res.partner.address model
bzr revid: chs@openerp.com-20121211182934-up3sxi0pcw20qrit
2012-12-11 19:29:34 +01:00
Vo Minh Thu 509a084e79 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Fabien Meghazi dec5b8e761 [REM] Removed tz_offset from context and remove store=True
bzr revid: fme@openerp.com-20121129210033-p687bul10jiandxt
2012-11-29 22:00:33 +01:00
Antony Lesuisse 299d98ac6e [MERGE] res.users get_context add timezone offset
bzr revid: al@openerp.com-20121128155922-ff67gskivujvx2qa
2012-11-28 16:59:22 +01:00
Fabien Pinckaers 76680074cb [IMP] removed unused code
bzr revid: fp@tinyerp.com-20121126190356-1mfgmx5r6ls6md22
2012-11-26 20:03:56 +01:00
Fabien Meghazi ee8894d509 [ADD] Add tz_offset function field in res.partner and set it in user's context
bzr revid: fme@openerp.com-20121122151458-hvtrwogldt69djss
2012-11-22 16:14:58 +01:00
Olivier Dony 4ba1696ce2 [FIX] res.partner: read image files in binary mode
lp bug: https://launchpad.net/bugs/1048040 fixed

bzr revid: odo@openerp.com-20121106181502-tzqmrhs0u8odngvz
2012-11-06 19:15:02 +01:00
Fabien Pinckaers 01cd1742cc [FIX]
bzr revid: fp@openerp.com-20121102162805-tp46s4x40dwedkij
2012-11-02 17:28:05 +01:00
Xavier Morel 5bd939f0ac [REM] useless intermediate lambdas in default values
bzr revid: xmo@openerp.com-20121102094705-6vcutz0bv4dc0jkl
2012-11-02 10:47:05 +01:00
Fabien Pinckaers eb9cefed2e [fIX] change country when setting sate
bzr revid: fp@tinyerp.com-20121102091449-7v1c0mw0w3x0wb36
2012-11-02 10:14:49 +01:00
Divyesh Makwana (Open ERP) 24f74d9d3a [Merge] Merge with main server.
bzr revid: mdi@tinyerp.com-20121016051211-sflmsa1ql5i13zkf
bzr revid: mdi@tinyerp.com-20121017044358-fmdudsspa0tuc5z3
bzr revid: mdi@tinyerp.com-20121018041441-dgj3k717pxrbjis1
bzr revid: mdi@tinyerp.com-20121019044419-towsx7ol3unqyw3m
bzr revid: mdi@tinyerp.com-20121022040737-xjnhewgv6ofz8gbk
bzr revid: mdi@tinyerp.com-20121023042908-2spjr586hmhn36oc
bzr revid: cha@tinyerp.com-20121025064317-4trt398uu90d24dt
bzr revid: cha@tinyerp.com-20121029070702-25k8vlsjwtnjoncl
bzr revid: mdi@tinyerp.com-20121030044619-px3ho7u5akndovj1
bzr revid: mdi@tinyerp.com-20121031045910-jme6gi1bveh4zi09
2012-10-31 10:29:10 +05:30
Jigar Amin 440fce00cd [MERGE] lp:~openerp-dev/openobject-server/trunk-10click-crm-partner-aja
bzr revid: jam@tinyerp.com-20121025102301-3wq6i87857ou0mtj
2012-10-25 15:53:01 +05:30
ajay javiya (OpenERP) 569e9037aa [IMP]:Improve onchange code for state
bzr revid: aja@tinyerp.com-20121025095805-isdu8d4ma2etx8vc
2012-10-25 15:28:05 +05:30
ajay javiya (OpenERP) e23ade6f5d [IMP]:onchange state country selected automatically
bzr revid: aja@tinyerp.com-20121025093809-k907f1m17cvg648o
2012-10-25 15:08:09 +05:30
Fabien Pinckaers 2067192d37 [IMP] rename columns for importation
bzr revid: fp@tinyerp.com-20121024084409-ad4kuccw6bki3zdg
2012-10-24 10:44:09 +02:00
Fabien Pinckaers fec5454b3b [MERGE] preference remove change passwd
bzr revid: fp@tinyerp.com-20121022171502-frmdoqnazzuzfk1j
2012-10-22 19:15:02 +02:00
Divyesh Makwana (Open ERP) e2bc9fe137 [IMP] In partner address type field change the name of 'Delivery' option to 'Shipping'.
bzr revid: mdi@tinyerp.com-20121012070525-k4xek8r5r4vt67iv
2012-10-12 12:35:25 +05:30
Nimesh (Open ERP) 4c8e5b39a8 [FIX] make lang field required true to select atleast language.
bzr revid: nco@tinyerp.com-20121011060442-rqe3shhavag7qo5s
2012-10-11 11:34:42 +05:30
Nimesh (Open ERP) b5f0bc1257 [IMP] remove second blank option in laguage selection in prefrences.
bzr revid: nco@tinyerp.com-20121009061640-dpf3q4m5ubdr5sch
2012-10-09 11:46:40 +05:30
Quentin (OpenERP) 154675f4ad [FIX] base: onchange_type should return only the big image, not the medium or the small
bzr revid: qdp-launchpad@openerp.com-20121004130224-t9wcp1bn0014px3f
2012-10-04 15:02:24 +02:00
Antonin Bourguignon 0e8f9e3549 [MERGE] trunk-fix-mail-mail-rules-tde: OpenChatter 'Rule Yur Daddy' Branch
Fixes some of access rights issues. This server branch features :
- update of res.users model, where the feature allowing to write on its own user on WRITABLE_FIELDS is duplicated for reading. This allows for users not having read access on res.partner to read some of their data.

bzr revid: abo@openerp.com-20120928173657-2a25tw1ewc7ugyr3
2012-09-28 19:36:57 +02:00
Antonin Bourguignon 1d6bf0ef34 [MERGE] trunk
bzr revid: abo@openerp.com-20120928170416-zb9focd0pqrixlxt
2012-09-28 19:04:16 +02:00
Amit Patel e63dd6d1a9 [MERGE]:trunk
bzr revid: hmo@tinyerp.com-20120926110557-098p014k6heo4m8t
bzr revid: apa@tinyerp.com-20120928050541-fm2pwdviqefzbtua
2012-09-28 10:35:41 +05:30
Olivier Dony add6b7b08a [IMP] res.partner: explicitly deprecate `address` and `country` columns
bzr revid: odo@openerp.com-20120926131006-b3mzn9y38rkg7e1s
2012-09-26 15:10:06 +02:00
Khushboo Bhatt (Open ERP) de8a9636da [FIX]help updated
bzr revid: kbh@tinyerp.com-20120925094330-kvbpnw0lw7izbenz
2012-09-25 15:13:30 +05:30
Khushboo Bhatt (Open ERP) b475a5bd2b [FIX]typo in res.partner
bzr revid: kbh@tinyerp.com-20120921132002-cwerpguowhc2vcbq
2012-09-21 18:50:02 +05:30
Antonin Bourguignon 8353cc1ca9 [FIX] res_partner.py: read countries as SUPERUSER
res_users.py: add login to the readable fields

bzr revid: abo@openerp.com-20120918141421-k6awa3xf6x2nx691
2012-09-18 16:14:21 +02:00
Fabien Pinckaers 85f04253b7 [IMP] better layout for BE address
bzr revid: fp@tinyerp.com-20120913182736-t22gg05mu202b1b2
2012-09-13 20:27:36 +02:00
Fabien Pinckaers 6c7771b48c fix
bzr revid: fp@tinyerp.com-20120913182256-p7crbo4889pcgg45
2012-09-13 20:22:56 +02:00
Fabien Pinckaers bd2ccbfd8e [IMP] address format according to user's country
bzr revid: fp@tinyerp.com-20120913181638-lrxd1hrgikl6purj
2012-09-13 20:16:38 +02:00
Fabien Pinckaers 4fcfcc6001 [IMP] address format according to country of user on partners
bzr revid: fp@tinyerp.com-20120913175709-tu1zg2efa70ayen7
2012-09-13 19:57:09 +02:00
Fabien Pinckaers 73ea18f9ed [FIX] quick create of partners, better layout
bzr revid: fp@tinyerp.com-20120912174622-r9ezfmafygahjpei
2012-09-12 19:46:22 +02:00
Fabien Pinckaers e2fc0c95a5 [IMP] quick create partners usability
bzr revid: fp@tinyerp.com-20120911161926-fk35p5wwefuwpxlx
2012-09-11 18:19:26 +02:00
Stephane Wirtel c750d0b8e1 [MERGE] Remove unused res.payterm
bzr revid: stw@openerp.com-20120911153948-bfuzz0a66qi0ncpb
2012-09-11 17:39:48 +02:00
Tejas Tank e0aa128959 Merge with latest.
bzr revid: tta@openerp.com-20120911102453-f875d277ytnlsama
2012-09-11 15:54:53 +05:30
Fabien Pinckaers e5b0cd2091 [IMP] Address Format in Reports
bzr revid: fp@tinyerp.com-20120911101729-iv79hos2mwxopitq
2012-09-11 12:17:29 +02:00
Thibault Delavallée 02c14543da [IMP] tools: image: added the option to choose whether to upsize or not images when resizing them. Also cleaned a bit the comments and overall code. small and medium images are nos 64x64 ans 128x128, to be closer to iamge sized used through OpenERP.
bzr revid: tde@openerp.com-20120907094957-clozwgu5qd3jh42h
2012-09-07 11:49:57 +02:00
Thibault Delavallée 171533d8dc [IMP] res_partner: moved the avatar colorize part of the image code to tools/image.py, where it should have been placed at revs 4373-4375.
bzr revid: tde@openerp.com-20120907092206-1pgbcvt8tn23m114
2012-09-07 11:22:06 +02:00
Olivier Dony 43eb05242f [IMP] res.partner: add find_or_create util method for on-the-fly partner creation + update/improve tests
Changed parsing test to be higher level and test name_create as well

bzr revid: odo@openerp.com-20120904152002-8rra325huf5p3xek
2012-09-04 17:20:02 +02:00
Thibault Delavallée 1f84036086 [MERGE] Merged with server/trunk.
bzr revid: tde@openerp.com-20120904075105-ljg3lgn6tf958kvd
2012-09-04 09:51:05 +02:00
Thibault Delavallée 1bcad78c99 [FIX] res_partner: not always have a context.
bzr revid: tde@openerp.com-20120903174829-epc4nyiyavdppsbu
2012-09-03 19:48:29 +02:00
Fabien Pinckaers f29be675e2 [FIX] all image stuff on groups, users, partners
bzr revid: fp@tinyerp.com-20120903095527-7rk7wxuldv80fj4v
2012-09-03 11:55:27 +02:00
Thibault Delavallée 12294252d4 [MERGE] Merged with server/trunk.
bzr revid: tde@openerp.com-20120903081949-ucy4e1kpbb30dhko
2012-09-03 10:19:49 +02:00
Olivier Dony 6803862711 [IMP] res.partner: simplified+corrected parsing of partner name and email in name_create, added tests, made this internal method private
bzr revid: odo@openerp.com-20120831225205-04l4udn95cz3n72o
2012-09-01 00:52:05 +02:00
Thibault Delavallée 0de195b893 [IMP] res_partner: moved regex of name_create of res.partner into a dedicated method, allowing ot use it outside of the name_create. Cleaned a bit the code, updated comments to the method.
bzr revid: tde@openerp.com-20120831171247-uc0babnzfk4logoa
2012-08-31 19:12:47 +02:00
Minh Tran a57ee611c4 fix merge crap
bzr revid: mit@openerp.com-20120831133133-5u2jvawyn6xkth91
2012-08-31 15:31:33 +02:00
Minh Tran c0d5a80682 Random generation of default avatar
bzr revid: mit@openerp.com-20120831131216-c5j02m8q7kwnn5pv
2012-08-31 15:12:16 +02:00
Tejas Tank 1a2f7a5131 IMP: i18n address format.
bzr revid: tta@openerp.com-20120831103830-3551ioq85r61kh94
2012-08-31 16:08:30 +05:30
Tejas Tank 28d177e520 [FIX] i18n address format
bzr revid: tta@openerp.com-20120830142348-vm37rbyceaup8zfq
2012-08-30 19:53:48 +05:30
Turkesh Patel (Open ERP) b791fc2743 [MRG] merge with main branch.
bzr revid: tpa@tinyerp.com-20120822120213-sbfqq119bo4rwqaw
2012-08-22 17:32:13 +05:30
Fabien Pinckaers 4215827f24 [IMP] better implementation of name_create
bzr revid: fp@tinyerp.com-20120821180409-gk2c3odfve53epdp
2012-08-21 20:04:09 +02:00
Fabien Pinckaers 25233cd513 [IMP] add user_ids on partners
bzr revid: fp@tinyerp.com-20120820113227-5k9d7m41vjcof26c
2012-08-20 13:32:27 +02:00
Quentin (OpenERP) e1cd328909 [FIX] base: the label of vat field now displays 'TIN' instead of 'TVA'. A US term consistent with the default value of the language used.
bzr revid: qdp-launchpad@openerp.com-20120817142748-3qpytqt5s9dthjcb
2012-08-17 16:27:48 +02:00
Thibault Delavallée 65ef813eb0 [MERGE] Merged with main server.
bzr revid: tde@openerp.com-20120815193149-k1ue0t3i035gvyu9
2012-08-15 21:31:49 +02:00
Thibault Delavallée 4cd2978678 [REVIEW] res_partner: partner default image back to gray guy; renamed company_icon to company_image; added the famous gray guy.
bzr revid: tde@openerp.com-20120814150242-50ij6j875mix2idt
2012-08-14 17:02:42 +02:00
Thibault Delavallée cc84d7d168 [FIX] res_partner: do not write on the partner if the dict of update_address is void; this could cause a loop with subscribers.
bzr revid: tde@openerp.com-20120813152413-j62vvzxp3ijpfc4n
2012-08-13 17:24:13 +02:00
Thibault Delavallée f904ae3752 [REF] res.partner: updated model due to res.users inheriting from res.partner. lang and tz fields are now added as standard fields, with their default methods.
bzr revid: tde@openerp.com-20120810081730-ohgfpp5eacraj6dw
2012-08-10 10:17:30 +02:00
Fabien Meghazi f51eb19e4c [FIX] res.partners small and medium images has no default value
bzr revid: fme@openerp.com-20120809150126-9rrikeyqi5uww5pd
2012-08-09 17:01:26 +02:00
Stephane Wirtel ad15aac822 [FIX] base: Allow the quick create for a partner
bzr revid: stw@openerp.com-20120807144253-9isx2aohhm9z7g72
2012-08-07 16:42:53 +02:00
Thibault Delavallée a530fa9b21 [REM] Removed a print statement.
bzr revid: tde@openerp.com-20120807112914-tjehrwyts1g20woe
2012-08-07 13:29:14 +02:00
Thibault Delavallée 8b34f12ace [IMP] res.users, res.partner: updated image code to propagate cleaning of image module.
bzr revid: tde@openerp.com-20120807110859-2osf4mf7y7by1zvm
2012-08-07 13:08:59 +02:00
Thibault Delavallée 176140590b [IMP] res_partner, res_users: removed the onchange_image, updated used images and classes in views.
bzr revid: tde@openerp.com-20120806155325-198jhpc2chmufzu1
2012-08-06 17:53:25 +02:00
Thibault Delavallée 9025c59cb3 [MERGE] Merged with server/trunk.
bzr revid: tde@openerp.com-20120803071431-x7ein6wfehuikphr
2012-08-03 09:14:31 +02:00
Stephane Wirtel e57c694095 [FIX] Review the layout of the partners
bzr revid: stw@openerp.com-20120802134648-djca908iguoukemd
2012-08-02 15:46:48 +02:00
Thibault Delavallée a403f06f5e [CLEAN] image help: cleaned typos.
bzr revid: tde@openerp.com-20120730133328-hpcwco5yb8iq9pgv
2012-07-30 15:33:28 +02:00
Thibault Delavallée a3b94f96cc [IMP] res.partner, res.users: fixed some typos/words in image related fields.
bzr revid: tde@openerp.com-20120730095133-7urnrolqywvrdntg
2012-07-30 11:51:33 +02:00
Thibault Delavallée fef75dc8c2 [MERGE] Merged with server/trunk.
bzr revid: tde@openerp.com-20120730073218-zytvpekawh55owgd
2012-07-30 09:32:18 +02:00
Raphael Collet 7998bc6b93 [MERGE] from trunk
bzr revid: rco@openerp.com-20120724150913-g8cc7ylahemu09m0
2012-07-24 17:09:13 +02:00
Thibault Delavallée c5433fc14f [REVIEW] IMproved regex.
bzr revid: tde@openerp.com-20120720152554-j6x7ilroxhivggj3
2012-07-20 17:25:54 +02:00
Thibault Delavallée fab43d4140 [REM] Removed a print statement.
bzr revid: tde@openerp.com-20120719155641-a2ant2472swb3fhp
2012-07-19 17:56:41 +02:00
Thibault Delavallée 81e6449e57 [IMP] res_partner regex: added more support to the name.
bzr revid: tde@openerp.com-20120719150725-sas4xjbj492hv3pb
2012-07-19 17:07:25 +02:00
Thibault Delavallée 06fdb65695 [IMP] res_partner: improved regex used to find the email and name.
bzr revid: tde@openerp.com-20120719150349-6nkkq6h576tc6hyp
2012-07-19 17:03:49 +02:00
Thibault Delavallée 667f3bc229 [DOC] res_partner: cleaned comments.
bzr revid: tde@openerp.com-20120719142759-uskridc98l3q7d1f
2012-07-19 16:27:59 +02:00
Raphael Collet 50267e2995 [IMP] in partner form view, allow to quick create titles (shortcut not required)
bzr revid: rco@openerp.com-20120719090300-suhzk3s6a1zaqico
2012-07-19 11:03:00 +02:00
Thibault Delavallée db1f5921a6 [MOVE] res_partner: moved name_create override in the correct model ^^ .
bzr revid: tde@openerp.com-20120713142227-wauo2vn7ulufkc9y
2012-07-13 16:22:27 +02:00
Thibault Delavallée 9c4dd0565b [IMP] res_partner: overrided name_create to support custom creation: info@openerp.com (name and email), and Raoul <raoul@raoul.fr>.
bzr revid: tde@openerp.com-20120713130454-2x5fsvz7az3p1jln
2012-07-13 15:04:54 +02:00
Turkesh Patel (Open ERP) 6e6ef1ed0f [IMP] remove res.payterm which is not in any part of code of server or addons.
bzr revid: tpa@tinyerp.com-20120705125411-fd1eazoofe5mpbvf
2012-07-05 18:24:11 +05:30
Antonin Bourguignon 7ecc3850d9 [FIX] read companies addresses using openerp.SUPERUSER_ID instead of uid
this will avoid users who don't have the right to read partners getting an error while reading companies
e.g.: portal users, who can only read their own partner

bzr revid: abo@openerp.com-20120704125741-y01o0xi0meflkp8v
2012-07-04 14:57:41 +02:00
Quentin (OpenERP) 1cf92ce031 [MERGE] merged with main trunk
bzr revid: kjo@tinyerp.com-20120702113552-r1tfw0a10l5gg2zg
bzr revid: qdp-launchpad@openerp.com-20120703083343-kdog48z36lmv9e3w
2012-07-03 10:33:43 +02:00
Kuldeep Joshi (OpenERP) f6c543f2e6 [IMP]change res_partner view
bzr revid: kjo@tinyerp.com-20120629134739-1sbzv733y3i755qq
2012-06-29 19:17:39 +05:30
Thibault Delavallée 747d9b6540 [REM] res_partner: removed a lost print statement.
bzr revid: tde@openerp.com-20120628103339-qvx0nk22pkyyseki
2012-06-28 12:33:39 +02:00
Thibault Delavallée 35771b142c [REF] res.users, res.partner: cleaned image related functions thanks to new tool function in image.py.
bzr revid: tde@openerp.com-20120628095910-1x1xyjw9li8y7778
2012-06-28 11:59:10 +02:00
Thibault Delavallée 5f784034c5 [MERGE] Merged with trunk server.
bzr revid: tde@openerp.com-20120628083131-8ohyrtubya539mr7
2012-06-28 10:31:31 +02:00
Thibault Delavallée a30d405cff [IMP] res.users: cleaned a bit the code; res_partner: from photo to specified images; update res_company because of its logo coming from res.partner old photo.
bzr revid: tde@openerp.com-20120627155749-ms6p6d7z8c5u2gjg
2012-06-27 17:57:49 +02:00
Antony Lesuisse 73edcb97f9 [MERGE] Use Email everywhere
bzr revid: al@openerp.com-20120627105820-2mfwdvym27y0v9ex
2012-06-27 12:58:20 +02:00
Antony Lesuisse 453a1350fe [MERGE] trunk
bzr revid: vmt@openerp.com-20120620122005-2rghps6qjjkozt3n
bzr revid: al@openerp.com-20120627103900-0kgtskgipdazmgy9
2012-06-27 12:39:00 +02:00
Fabien Pinckaers 020ed6309f [IMP] show_address in context of partners for multi-line addresses
bzr revid: fp@tinyerp.com-20120625182229-otj1409i3qk7zgm0
2012-06-25 20:22:29 +02:00
Jigar Amin - OpenERP f5bc454043 [FIX] renmae E-mail, E-Mail to Email
bzr revid: jam@tinyerp.com-20120625130652-ini3czg6a8qd71n2
2012-06-25 18:36:52 +05:30
Raphael Collet 03450a0fc8 [FIX] name_get of res.partner and res.partner.category, to accept an int as ids
bzr revid: rco@openerp.com-20120620095812-6kl28dcry2fx8op6
2012-06-20 11:58:12 +02:00
Vo Minh Thu 575e234cd4 [FIX] res.partner.category: the relation table name was manually chosen, which breaks under _inherit, so we use the automatic one.
bzr revid: vmt@openerp.com-20120619151626-2xho611icmq7e1ky
2012-06-19 17:16:26 +02:00
Stephane Wirtel 20ce4e4288 [REF] Review the form views
bzr revid: stw@openerp.com-20120618160148-h69gfk1xwzyk97z0
2012-06-18 18:01:48 +02:00
Fabien Pinckaers f83ba4af41 [IMP] reviewed form views following new guidelines
bzr revid: fp@tinyerp.com-20120604183055-3adtk8dtech30amm
2012-06-04 20:30:55 +02:00
Fabien Pinckaers a621d08eb7 [IMP] improved terminology
bzr revid: fp@tinyerp.com-20120531071134-1wzdffzogyxfdqr9
2012-05-31 09:11:34 +02:00
Fabien Pinckaers 2d86798e24 [IMP] search view on partners
bzr revid: fp@tinyerp.com-20120531070716-39zkfaw5nn5kqqv5
2012-05-31 09:07:16 +02:00
Fabien Pinckaers cec201b731 [IMP] typos
bzr revid: fp@tinyerp.com-20120522161200-fj4h1yvm4gy4dd70
2012-05-22 18:12:00 +02:00
Tejas Tank 22b7a6d61b Title improvement: Usability
bzr revid: tta@openerp.com-20120507092113-i2nva976uvwi6n7y
2012-05-07 14:51:13 +05:30
Divyesh Makwana (Open ERP) 9fbdc7c526 [IMP] Improved the typos.
bzr revid: mdi@tinyerp.com-20120423102313-0mboqhctzoje5ize
2012-04-23 15:53:13 +05:30
Quentin (OpenERP) 03b62d9b21 [FIX] base: name_search of res_partner can now handle properly when limit=None is passed
bzr revid: qdp-launchpad@openerp.com-20120417101810-wwijmbp06aflcebs
2012-04-17 12:18:10 +02:00
Antony Lesuisse 927cd1aaa8 [MERGE] trunk-form-v2, rng validation can _optionally_ be disabled, new view for partners
bzr revid: al@openerp.com-20120417091619-ohuvnu0javler9pm
2012-04-17 11:16:19 +02:00
Fabien Pinckaers 4a9d892e43 [FIX] limit on name_search on partners
bzr revid: fp@tinyerp.com-20120410074218-pj4iyn0zjxgo0gbr
2012-04-10 09:42:18 +02:00
Sbh (Openerp) a61f7ce8d1 [IMP]:base/res : remove type from display address
bzr revid: sbh@tinyerp.com-20120330045752-m9d9vgt92uro6fle
2012-03-30 10:27:52 +05:30
Kuldeep Joshi (OpenERP) fe45a9a7de [IMP]base/res_partner: fix the function
bzr revid: kjo@tinyerp.com-20120329132533-nmhg0flfz36v4hhl
2012-03-29 18:55:33 +05:30
Quentin (OpenERP) b1a29c5a6a [REF] base: small refactoring of things related to the merge of res.partner and res.partner.address
bzr revid: qdp-launchpad@openerp.com-20120329114331-hmlld7fxlw6sh1ks
2012-03-29 13:43:31 +02:00
Sbh (Openerp) 1846ae22a1 [IMP]base/res: add field for printing address base on country format
bzr revid: sbh@tinyerp.com-20120329062924-uxehnkxpog12clxa
2012-03-29 11:59:24 +05:30
Kuldeep Joshi (OpenERP) d1a1aed066 [IMP]base/res_partner: change tooltip of website field
bzr revid: kjo@tinyerp.com-20120328060043-kdeju0zx7bpb44i0
2012-03-28 11:30:43 +05:30
Kuldeep Joshi (OpenERP) 7d6478499b [IMP]base/res_partner: change tool tip of user_parent_address field
bzr revid: kjo@tinyerp.com-20120328053040-7uwalgbkqcpf7m2b
2012-03-28 11:00:40 +05:30
Sbh (Openerp) 0182a1185d [Fix]base/res: Fix the update address
bzr revid: sbh@tinyerp.com-20120327091354-j9l4cjto9dx2cnn1
2012-03-27 14:43:54 +05:30
Sbh (Openerp) d4f378c4ef [Fix] base/res :fix write method for updation of field based on use_parent_address
bzr revid: sbh@tinyerp.com-20120327073004-3kxgvoem46gag3ta
2012-03-27 13:00:04 +05:30
Sbh (Openerp) 7d9cab896e [MERGE] Merge with lp:openobject-server
bzr revid: sbh@tinyerp.com-20120323064037-belgc637ugambnnw
2012-03-23 12:10:37 +05:30
Raphael Collet e7e9ba1f84 [MERGE] Fix res.partner.address: make name_search consistent with name_get
bzr revid: odo@openerp.com-20120321135558-3cudz4mgaby8ws8k
2012-03-21 14:55:58 +01:00
Raphael Collet 2e5554e6bc [IMP] res.partner.address: in name_search, search on partner_id before other fields
bzr revid: rco@openerp.com-20120321132139-5bx0mn6hod749itq
2012-03-21 14:21:39 +01:00
Raphael Collet f53b5f3df2 [IMP] res.partner.address: in name_search, add handle case where name is empty
bzr revid: rco@openerp.com-20120321105658-cnjy77e0dz40425c
2012-03-21 11:56:58 +01:00
Raphael Collet cb53795b4c [IMP] res.partner.address: improve name_search() to avoid performance issues
bzr revid: rco@openerp.com-20120321103912-9kg1sftuzrxrqgxq
2012-03-21 11:39:12 +01:00
Quentin (OpenERP) e37b9a5df3 [FIX] base, res_partner: fixed the name_search in order to propagate the right parameter to super() and to not use the '%' symbol if the operator is '='
bzr revid: qdp-launchpad@openerp.com-20120320154757-0o8q4pb2uch76su2
2012-03-20 16:47:57 +01:00
Bhumika (OpenERP) 9bcfaf8d36 [Fix]base/res :fix name_search of partner
bzr revid: sbh@tinyerp.com-20120320124815-qpz1cqy1m36ehwkm
2012-03-20 18:18:15 +05:30
Bhumika (OpenERP) 3da7c8b8e2 [IMP]base/res: improved name_search for checking args
bzr revid: sbh@tinyerp.com-20120320113230-blhsb47cfzfnfhi3
2012-03-20 17:02:30 +05:30
Quentin (OpenERP) 15d9e002cf [IMP] base, res_partner: improved name_search to improve the readability and performances
bzr revid: qdp-launchpad@openerp.com-20120320100251-wuv42z80y9nblmyq
2012-03-20 11:02:51 +01:00
Bhumika (OpenERP) f8d9d47928 [fix]base/res:remove the reference of childs only if save the record
bzr revid: sbh@tinyerp.com-20120319130722-u1qvxoc945lsfo21
2012-03-19 18:37:22 +05:30
Raphael Collet baa522eba1 [FIX] res_partner_address: make name_search consistent with respect to name_get
bzr revid: rco@openerp.com-20120319130422-wc6icri4v0o3z8wg
2012-03-19 14:04:22 +01:00
Quentin (OpenERP) 81d6591212 [FIX] base: put back access rules related to res.partner.address (we must keep access rights as lmong as the model still exists otherwise it's a security hole)
bzr revid: qdp-launchpad@openerp.com-20120319105006-tqk337epajcs1hho
2012-03-19 11:50:06 +01:00
Quentin (OpenERP) 1a887a5f0c [FIX] base, res_partner: put back required=True on name field of res.partner
bzr revid: qdp-launchpad@openerp.com-20120319103602-uotc8pizwa34f9gd
2012-03-19 11:36:02 +01:00
Quentin (OpenERP) 44cb4af51d [REF] base, res_partner: code optimization
bzr revid: qdp-launchpad@openerp.com-20120319103511-vzf5p8n7a9wso6ek
2012-03-19 11:35:11 +01:00
Quentin (OpenERP) c5a666a4a7 [IMP] base, res.partner.address: added _defaults and call to write() and create() functions of res.partner for a better backward compatibility
bzr revid: qdp-launchpad@openerp.com-20120316124817-rokpu5nykwabtlad
2012-03-16 13:48:17 +01:00
Bhumika (OpenERP) 18d4bee835 [IMP]base/res :set photo when create company from childs
bzr revid: sbh@tinyerp.com-20120313061338-dh2i2ve0rhbl1jha
2012-03-13 11:43:38 +05:30
Bhumika (OpenERP) 20aa7d6fe8 [Fix]: Improve display adress for print company name
bzr revid: sbh@tinyerp.com-20120312093332-oucqpsrcn33o82me
2012-03-12 15:03:32 +05:30
Raphael Collet 416dc7848c [FIX] base/res_partner: fix last change (issue: all contacts updated?)
bzr revid: rco@openerp.com-20120308140342-fw0unworetlj3mgm
2012-03-08 15:03:42 +01:00
Raphael Collet 566c0239c0 [IMP] base/res_partner: improve management of 'use_parent_address'
bzr revid: rco@openerp.com-20120308122712-g47fr2j328x51rsj
2012-03-08 13:27:12 +01:00
Raphael Collet 79787b73d2 [FIX] base/res_partner: small fix for backward compatibility
bzr revid: rco@openerp.com-20120308091745-vtyit22743qx3wl6
2012-03-08 10:17:45 +01:00