Commit Graph

47 Commits

Author SHA1 Message Date
FalcoBolger 714fe9135d [FIX] Signature on overriden fields_get method 2015-03-02 16:52:53 +01:00
Raphael Collet 2eb3ad2b46 [FIX] res_bank: fix onchange_partner_id(), where partner_id may be a NewId 2015-02-11 09:29:51 +01:00
Christophe Simonis d37dd37059 [MERGE] forward port of branch saas-3 up to e1e7dc0 2014-12-01 15:42:51 +01:00
Sandy Carter 043f7b84b8 [FIX] base: avoid having 'False' in name of a bank
The name_get of res.partner.bank uses the format_layout to generate the name
of the bank. As every field is not required, we may get 'False' in the name.
Replace these missing values by an empty string.

Fixes #3590
2014-11-27 13:09:01 +01:00
Arthur Maniet 6c61d3c800 [FIX] account: the partner of a bank account can only be a company or an individual not related to a company 2014-10-20 15:02:36 +02:00
Martin Trigaux f138aa2608 [FIX] models: display_name and name_get mismatch
- display_name uses name_get and not the other way around:
name_get should not call _compute_display_name, _compute_display_name should call name_get.
The previous behaviour was not backward-compatible with the old api.
All the models redefining name_get would have 2 different behaviors between name_get and display_name.

- Do not set an inverse function to display_name:
In most cases, writing on display_name writes on _rec_name (if any, not mandatory).
If the display_name computation is redefined, we need to redefine as well the inverse method to avoid unexpected behaviour
This required to also modify tests in base_import as readonly fields are avoided.

- Remove search method on display_name:
For the same reason as for the first point, it could be good that searching on display_name use name_search (and not the other way around).
However doing this would be very inefficiant (need to do the search, without limit, extract the ids of the name_get result just to generate
a subdomain ('id', 'in', [...]). As in most cases it would anyway mean to search on the _rec_name it's better to directly do so.

- Changing label to avoid mismatch:
In view displaying the list of fields or when a match is made on the label of a field (e.g. when importing csv file,
matching is made on both label and technical name), the fact that display_name field has '
Calling it 'Display Name' will avoid most errors.

- remove display_name definition from website_forum_doc,ir_model:
These fields are doing the same thing as the display_name of the new api, we can remove them.
We need to keep the one for res.partner as it's a stored field.
2014-07-25 13:58:59 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
qdp-odoo 5e7e7cef41 [IMP] account: learn the res.partner.bank of partners in reconciliation process on bank statement + adapted l10n_be 2014-06-20 09:58:42 +02:00
Antony Lesuisse 8d04c66dc3 [IMP] cleanups, move tests, remove deprecated model instantiation
bzr revid: al@openerp.com-20140501184217-pgi1gzbdpysdybog
2014-05-01 20:42:17 +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
Vo Minh Thu 509a084e79 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +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
Raphael Collet 8ca8589b78 [IMP] res.partner.bank: make _prepare_name_get more robust (field 'id' not required)
bzr revid: rco@openerp.com-20120913121830-fzkkdekrxwdq421w
2012-09-13 14:18:30 +02:00
Raphael Collet a5d6044651 [IMP] res.partner.bank: change _prepare_name_get() to make it usable by onchange methods
bzr revid: rco@openerp.com-20120913114403-ny6h6vpijymj6o4s
2012-09-13 13:44:03 +02:00
Stephane Wirtel 5d8f738b88 [MERGE] base: raise an exception if the format of the bank account is wrong
bzr revid: stw@openerp.com-20120911144428-dok1potnoe5ks8g4
2012-09-11 16:44:28 +02:00
Raphael Collet f4945c2fc7 [IMP] orm: fix and generalize method resolve_o2m_commands_to_record_dicts (now named resolve_2many_commands)
bzr revid: rco@openerp.com-20120906144836-v2ye3o8n12iir84b
2012-09-06 16:48:36 +02:00
Twinkle Christian (OpenERP) 7e59db5f0f [MERGE]merge with main branch
bzr revid: tch@tinyerp.com-20120824085918-y69p2653fsqw5t9y
2012-08-24 14:29:18 +05:30
Twinkle Christian (OpenERP) a932d1dc00 [MERGE]merge with main branch
bzr revid: tch@tinyerp.com-20120824084232-8b0x7euh7m9f0yor
2012-08-24 14:12:32 +05:30
Twinkle Christian (OpenERP) 523a7610c4 [MERGE]merge with main branch
bzr revid: tch@tinyerp.com-20120824070907-g6g6jpkj2t10kals
2012-08-24 12:39:07 +05:30
Twinkle Christian (OpenERP) 041b29e164 [MERGE]merge with main branch
bzr revid: tch@tinyerp.com-20120824063338-xjf9tt2or8mp6kcg
2012-08-24 12:03:38 +05:30
Twinkle Christian (OpenERP) 6378c92d7c [MERGE]merge with main branch
bzr revid: tch@tinyerp.com-20120824055833-8xbhra27zvke35pm
2012-08-24 11:28:33 +05:30
Quentin (OpenERP) f58ef68d4d [REV] reverted previous commit (4314) that removes footer field on res.partner.bank, because specs changed
bzr revid: qdp-launchpad@openerp.com-20120809120134-mx2nfg8k4xn7yfms
2012-08-09 14:01:34 +02:00
Quentin (OpenERP) b09784c5ff [REF] base, res.partner.bank: removed footer boolean which was unused and deprecated: the rml_footer2 is now fully editable since revision 4198 (12th of June 2012)
bzr revid: qdp-launchpad@openerp.com-20120723160554-3v4j4mvh2kbu1g4k
2012-07-23 18:05:54 +02:00
Twinkle Christian (OpenERP) 891ef5786b [FIX]res_bank.py
bzr revid: tch@tinyerp.com-20120706100641-idkoar0ruwinlb8b
2012-07-06 15:36:41 +05:30
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
Alexis de Lattre 800ed238d5 Allows inheritance of the name_get function of res.partner.bank
bzr revid: alexis@via.ecp.fr-20120710235009-msv7aiaa3gfhznmq
2012-07-11 01:50:09 +02:00
Divyesh Makwana (Open ERP) 75a81e21c5 [IMP] res_bank : Improved the typos.
bzr revid: mdi@tinyerp.com-20120423103227-0mvjqfn6p8ql1vfm
2012-04-23 16:02:27 +05:30
Raphael Collet f72fc4acfa [IMP] base/res: simplify code and fix res_partner.address_get
bzr revid: rco@openerp.com-20120223135347-ff3h8eikq2xj7x4q
2012-02-23 14:53:47 +01:00
Kuldeep Joshi (OpenERP) 72949e2900 [IMP] res_partner: view change
bzr revid: kjo@tinyerp.com-20120222072452-mt9e8m00xbt6ei8y
2012-02-22 12:54:52 +05:30
Kuldeep Joshi (OpenERP) b6696e250a [IMP] change res_company and res_bank
bzr revid: kjo@tinyerp.com-20120221084615-oxcm3q1qg3upmp9n
2012-02-21 14:16:15 +05:30
Raphael Collet ac205cd443 [MERGE] small fixes (typo in tooltip, char field size)
bzr revid: rco@openerp.com-20120131132112-y526k22lrltqnocm
2012-01-31 14:21:12 +01:00
Alexis De Lattre ff67c965eb [FIX] Base: removed ambigious entries for _rec_name for res.partner.bank model
lp bug: https://launchpad.net/bugs/922670 fixed

bzr revid: support@serpentcs.com-20120127195148-hdnn9x2m1v7sapm2
2012-01-28 01:21:48 +05:30
Serpent Consulting Services ed8d6780d3 [REM] Removed the _rec_name change
bzr revid: support@serpentcs.com-20120127194929-bwvy3h3qqe6f7m90
2012-01-28 01:19:29 +05:30
Serpent Consulting Services 2ab84f0ab2 [FIX] Base : Corrected the size of the field 'owner_name' for res.partner.bank model,other minor edits included
lp bug: https://launchpad.net/bugs/922781 fixed

bzr revid: support@serpentcs.com-20120127194134-momdokqzf4qfhzqn
2012-01-28 01:11:34 +05:30
Raphael Collet 6c6e5d291c [MERGE] lp:918120 (res.partner.bank: improve name_get() when no bank_name is given)
bzr revid: rco@openerp.com-20120127085133-hwzn9up9gp12cwgi
2012-01-27 09:51:33 +01:00
Jagdish Panchal (Open ERP) 272b5f9db5 [FIX] res_bank.py: set the prefix on bank
lp bug: https://launchpad.net/bugs/918120 fixed

bzr revid: jap@tinyerp.com-20120119095106-3ukg6cabh3kejf0e
2012-01-19 15:21:06 +05:30
Olivier Dony fbc0545842 [IMP] base: change conflicting address-related "State" fields to "Fed. State"
This will avoid ambiguous translations, until we can
implement some sort of context-sensitive translation
system.

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

bzr revid: odo@openerp.com-20120118132900-427nc6j0p4h25bdn
2012-01-18 14:29:00 +01:00
Fabien Pinckaers 7ab729dde9 [IMP] useability + kanban view on modules
bzr revid: fp@tinyerp.com-20111205164855-qd1hu2y599hq7xzs
2011-12-05 17:48:55 +01:00
Olivier Dony f31c1d85d8 [MERGE] Missing modelines, requested and provided by Lionel Sausin (Numerigraphe)
bzr revid: odo@openerp.com-20111124161521-512vn56w3c4e303c
2011-11-24 17:15:21 +01:00
Numerigraphe - Lionel Sausin a2f4f2669b [IMP] Added missing vim mode lines
lp bug: https://launchpad.net/bugs/524279 fixed

bzr revid: ls@numerigraphe.fr-20111122085848-1atcrcw8e64altcp
2011-11-22 09:58:48 +01:00
Numerigraphe - Lionel Sausin 9ed5cbb24c [FIX] unmutable defaults in base addons.
bzr revid: ls@numerigraphe.fr-20111107151949-n9prrufvqe3ohz18
2011-11-07 16:19:49 +01:00
Xavier Morel b5ee13a845 [IMP] rename serialize_o2m_commands to resolve_o2m_commands_to_record_dicts
bzr revid: xmo@openerp.com-20111011080338-hup42vivlvk4dly0
2011-10-11 10:03:38 +02:00
Xavier Morel d5accc0fae [ADD] method to correctly serialize o2m commands into a sequence of record-dicts for e.g. onchanges
also alters res.partner.bank _default_value to use it with res.partner addresses, and adds a few tests to ensure behavior is correct

bzr revid: xmo@openerp.com-20111010135157-dafgcwwcni5gkeom
2011-10-10 15:51:57 +02:00
Xavier Morel 8a5314b15e [FIX] context usage (context may be None in _default_value), dict.get (no need for a False default value in a conditional)
bzr revid: xmo@openerp.com-20111010081021-ijcuchd53dbdr9lc
2011-10-10 10:10:21 +02:00
Xavier Morel 26140ce8f4 [IMP] further improve reading of o2m commands, first read the record itself if an id was provided then update it with the record data if any
bzr revid: xmo@openerp.com-20111010080911-ykosbh8kp3tljyri
2011-10-10 10:09:11 +02:00
Xavier Morel fc28192527 [IMP] if no address value is provided for res.partner.bank default_get context, try to read the address from its id
the web client currently does not send all record data when an o2m is used as a context value, it only sends the ids (at least when the o2m records have not been locally modified)

bzr revid: xmo@openerp.com-20111007131052-4qqo027b2mp16nd6
2011-10-07 15:10:52 +02:00
Antony Lesuisse e6db9e4b71 [IMP] renames in base/res
bzr revid: al@openerp.com-20110828001314-roc7o38bz22mr580
2011-08-28 02:13:14 +02:00