Commit Graph

196 Commits

Author SHA1 Message Date
Nicolas Lempereur a69af9c908 [FIX] addons: propagate context when get sequence
With 3e82c94d we use the timezone in the context to format date
sequences when formatting an ir.sequence.

This commit adds the other missing context when getting a sequence, so
these sequences are also dependant on the timezone.

closes #8351
opw-646487
2015-09-03 13:58:01 +02:00
Olivier Dony 2d83656c0f [FIX] analytic: multi-path name_search should properly handle `limit`
Due to commit 1576bc9891,
when name_search() is called on analytic accounts with
multiple path components (e.g. A/B/C), the intermediary
searches are done without the extra domain criterions,
because they should only apply to the leaf.

However because the limit was applied for each step
of the multi-path search, it was quite likely that
no valid results were found in the final filtering,
returning no result at all.

In fact the intermediary steps should not apply the
limit at all, because the leaves we're looking for
may actually be located under parents that are not
found when the limit is applied on each step.

This commits removes the limit (hopefully without
too much of an extra penalty for large databases)

It also introduces a better fallback in case the
multi-path search did not produce any result,
for example if the name of the lead really contains
a '/', and it was not meant to be a path separator.
2015-07-27 12:58:48 +02:00
Olivier Dony 1576bc9891 [FIX] analytic: name_search match multi-level account names even with domain
When name_search is called with an extra domain
filter (args) and a pattern (name) containing
multi-level accounts, such as `A / B / C`, only
the last account (`C`) has to match the domain.
The intermediary parent accounts do not have to
match.
The domain was previously applied for each parent
in the lookup. This prevented searching for
multi-level accounts or copy-pasting full account
names whenever a domain was present and did not
match every account in the hierarchy.
2015-07-10 17:06:11 +02:00
Christophe Simonis 2de301df24 [FIX] analytic: copy children accounts on copy. 2015-07-07 17:37:31 +02:00
Christophe Simonis acc7d20ea9 [MERGE] forward port of branch saas-3 up to ac865c8 2015-07-07 15:12:41 +02:00
Christophe Simonis ac865c8a78 [MERGE] forward port of branch 7.0 up to 9fa7624 2015-07-07 13:58:35 +02:00
Christophe Combelles 2c37f83435 [FIX] analytic: duplication of analytic lines
When duplicating analytic accounts, child accounts are duplicated as well.
The custom copy method removes the analytic lines but this applies only on the
first copy. As the copy_data method recursively copies child accounts, these
child accounts did not use the custom copy method but the basic copy_data.

Move to copy_data

Fixes #6368, lp:1149676
2015-07-02 16:54:46 +02:00
Julien Legros 720e31d0fb [FIX] analytic: contract manager_id defaults to the context value 2014-09-17 15:32:45 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
Denis Ledoux 0a1e4a05b2 [MERGE] forward port of branch saas-3 up to 81a902a 2014-08-08 17:06:39 +02:00
Denis Ledoux 978fd47261 [MERGE] forward port of branch 7.0 up to 095be21 2014-08-06 13:06:20 +02:00
Anael Closson 70b246c3c7 [FIX] analytic: name_search on accounts
The name_search was hardcoding ilike operator while it could be different. This means that a name_search "name != Agrolait" would return accounts with agrolait.
A side effect of this was the impossibility to import account_analytic_account whose parent is a substring of another - opw 607315
2014-08-06 08:53:16 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Martin Trigaux 583fe74ba2 Forward-port of latest saas-3, up to revision 9455 (rev-id mat@openerp.com-20140514080416-m4t23y0rxx2ot7y6) 2014-05-14 10:37:54 +02:00
Martin Trigaux 8ea4f581ed Forward-port of latest 7.0, up to rev. 10046 (rev-id: launchpad_translations_on_behalf_of_openerp-20140514062049-vjclnuxlkbto0tsj) 2014-05-14 10:04:16 +02:00
Martin Trigaux 3a0b63942e [FIX] analytic: should not set mutable objects in method declaration (python gotcha)
bzr revid: mat@openerp.com-20140509093304-ao8ttky1trgz22ao
2014-05-09 11:33:04 +02:00
Denis Ledoux 2695cacea4 [FIX] account_analytic_analysis, analytic, hr_timesheet: do not override existing data of analytic account on template on_change
bzr revid: dle@openerp.com-20140401123657-ozh4ycx36jojpg51
2014-04-01 14:36:57 +02:00
Sanjay Gohel (OpenERP) 77581e2a06 [MERGE]sync with trunk
bzr revid: sgo@tinyerp.com-20140210052655-efiwytz5kllk7irx
2014-02-10 10:56:55 +05:30
Christophe Simonis c0117351a8 [MERGE] forward port of branch 7.0 up to revid 9735 mat@openerp.com-20140106153818-lsy030btlzminvw9
bzr revid: chs@openerp.com-20140107142554-lx0ls3fly7cxmahj
2014-01-07 15:25:54 +01:00
Martin Trigaux 389235221a [IMP] analytic: rename the field 'date' from 'End Date' to 'Expiration Date'. The date field is considered as not included by the system but the name of the field was not explicit enough (opw 602619)
bzr revid: mat@openerp.com-20140106153818-lsy030btlzminvw9
2014-01-06 16:38:18 +01:00
Sanjay Gohel (OpenERP) eb1a56cd91 [MERGE]merge and resolve conflicts
bzr revid: sgo@tinyerp.com-20131029133347-b22zkm0hgg3y9an3
2013-10-29 19:03:47 +05:30
Christophe Simonis 3fa90321e1 [MERGE] forward port of branch saas-1 up to revid 8772 chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: chs@openerp.com-20130910124803-wxkb8gkz1tub5qjf
2013-09-10 14:48:03 +02:00
Martin Trigaux cf45a9fa01 [FIX] project: correct name_search for analytic accounts, use args, name, limit and context
bzr revid: mat@openerp.com-20130828141123-ws38n7353f717not
2013-08-28 16:11:23 +02:00
sgo@tinyerp.com df57e35cf7 [MERGE]sync with trunk
bzr revid: sgo@tinyerp.com-20130701090331-3qf041dn3a6ohoia
2013-07-01 14:33:31 +05:30
Thibault Delavallée bf4ada34b4 [REF] mail_thread: message_track now uses browse records instead of read results.
Updated addons accordingly.
Updated tests to test corner cases using False / null browse records.

bzr revid: tde@openerp.com-20130627144647-swbj77i84vo9ii0v
2013-06-27 16:46:47 +02:00
sgo@tinyerp.com fea1eaf1d6 [MERGE]sync with parent
bzr revid: sgo@tinyerp.com-20130610050015-cuk6adbhzsmaas8s
2013-06-10 10:30:15 +05:30
Christophe Matthieu 9d9e3d2ef8 [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607113829-1mi6jk18c2v3jjhn
2013-06-07 13:38:29 +02:00
Foram Katharotiya (OpenERP) c1b6c1dc92 [IMP] improve code
bzr revid: fka@tinyerp.com-20130516094613-tscfrxx13cvshgwj
2013-05-16 15:16:13 +05:30
Foram Katharotiya (OpenERP) 0a099113fc [IMP] set default 'Your Company' in dropdown of chart of analytic account
bzr revid: fka@tinyerp.com-20130515095814-vf0j7eed0wqkw2en
2013-05-15 15:28:14 +05:30
ggh-openerp 7841bac687 [IMP] Improved typo in Warning
bzr revid: ggh@tinyerp.com-20130429053851-ipatcoxtjwrwfijk
2013-04-29 11:08:51 +05:30
Quentin (OpenERP) 241b9ee07a [IMP] analytic: add the 'visibility tracking' on some fields in the chatter, to log when an important thing is changed
bzr revid: qdp-launchpad@openerp.com-20130410122011-xgih371ewlxc7aq5
2013-04-10 14:20:11 +02:00
Fabien Pinckaers c7d709e579 [FIX] misc fixes on contracts, timesheets
bzr revid: fp@openerp.com-20130312123321-mly0k9lrh3im78bg
2013-03-12 13:33:21 +01:00
Antony Lesuisse 2a805abfbc [FIX] contract disable quickcreate, add group_by pricelist
bzr revid: al@openerp.com-20130221012920-o2034onrq76dje78
2013-02-21 02:29:20 +01:00
Antony Lesuisse 77477a5e2d [FIX] contract search view
bzr revid: al@openerp.com-20130214193741-a4yoc33k7ptmkhui
2013-02-14 20:37:41 +01:00
Antony Lesuisse b1da131ba2 Analytic accounts contract search view
bzr revid: al@openerp.com-20130205100223-b3ws7t9hnq9xf9x2
2013-02-05 11:02:23 +01:00
Fabien Pinckaers a8b88a2aec [IMP] analytic account name_search improved
bzr revid: fp@tinyerp.com-20121221163003-7mvf3948rmuxwh4w
2012-12-21 17:30:03 +01:00
Fabien Pinckaers ca2855bb19 [IMP] simplified name_search on analytic
bzr revid: fp@tinyerp.com-20121221161207-doqu92tu4vxct6q6
2012-12-21 17:12:07 +01:00
Fabien Pinckaers a02c785b86 [IMP] avoid long words in HTML
bzr revid: fp@tinyerp.com-20121220150547-v0c7nkpi5j2rhluc
2012-12-20 16:05:47 +01:00
Thibault Delavallée e3c31cab9e [IMP] track_visibility atribute: moved onto explicit strings.
bzr revid: tde@openerp.com-20121220114730-nip8qaaajr5mqw6s
2012-12-20 12:47:30 +01:00
Thibault Delavallée d53a63d563 [IMP] Analytic, hr_timesheet_invoice: moved chatter and subtypes for analytic into analytic; removed salesteam-related subtypes.
bzr revid: tde@openerp.com-20121219173127-xcz1j92p46sn6qu3
2012-12-19 18:31:27 +01:00
Fabien Pinckaers 41f7f27881 [IMP] several subtype fixes
bzr revid: fp@tinyerp.com-20121218220617-d6ebdlkf1facw4x8
2012-12-18 23:06:17 +01:00
Thibault Delavallée b95b32d644 [MERGE] Merged branch holding subtype work by APA.
bzr revid: tde@openerp.com-20121218131142-2jb6wac6y9q6dc7v
2012-12-18 14:11:42 +01:00
Cecile Tonglet a3939acfa5 [FIX] replace from/import decimal_precision by from/import openerp.addons.decimal_precision
bzr revid: cto@openerp.com-20121217152303-8e3b1x30rlw9cb0d
2012-12-17 16:23:03 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Foram Katharotiya (OpenERP) 267f8aa64f [MERGE] with trunk
bzr revid: fka@tinyerp.com-20121212045623-v35kdwf3rlbewqiu
2012-12-12 10:26:23 +05:30
olt@tinyerp.com f365052c6c [IMP] analytic: 'code' field: remove size limit
bzr revid: olt@tinyerp.com-20121211150419-2sh2n255ej9bewgo
2012-12-11 16:04:19 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Foram Katharotiya (OpenERP) c300280eff [MERGE] with trunk
bzr revid: fka@tinyerp.com-20121205053732-s966xh7rx0nwajsm
2012-12-05 11:07:32 +05:30
Thibault Delavallée c3a3492848 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121203093454-lf21qlsuse1ve8ro
2012-12-03 10:34:54 +01:00