Commit Graph

77273 Commits

Author SHA1 Message Date
Fabien Meghazi 2b6ac77f11 [IMP] move dispatch()'s post processing code into a method
bzr revid: fme@openerp.com-20140124103546-h8an7dehqdc412cn
2014-01-24 11:35:46 +01:00
Thibault Delavallée 0d21e37728 [CLEAN] account_product_template: moved email sending into its own method.
bzr revid: tde@openerp.com-20140124102201-dkh2n7odwxvg4lsv
2014-01-24 11:22:01 +01:00
Thibault Delavallée b187d1873f [CLEAN] account_product_template: added help and docstrings in the product template inheritance
bzr revid: tde@openerp.com-20140124102031-9gyq19ehxgtdvxxz
2014-01-24 11:20:31 +01:00
Gery Debongnie 09706b5dff [IMP] adds 'W' in front of the week number when formatting date grouped by weeks (method read_group) (orm.py)
bzr revid: ged@openerp.com-20140124100921-w5gq1fwidm01xx5l
2014-01-24 11:09:21 +01:00
Thibault Delavallée ee692b43e2 [REF] account_product_template: reorganized the module, according to the
new module guildelines :
- model files in model directory, with product and template addition
- view files in views directory, with product and template view addition
- demo file in data directory

bzr revid: tde@openerp.com-20140124095056-v18lfk9wex5y00d7
2014-01-24 10:50:56 +01:00
Thibault Delavallée c9260b90a8 [CLEAN] account_product_template: openerp and init files cleaning
bzr revid: tde@openerp.com-20140124094514-o50cxzlm348p1vpc
2014-01-24 10:45:14 +01:00
Thibault Delavallée 9c74cab9a5 [REVIEW] account: wording of the new config field
bzr revid: tde@openerp.com-20140124093947-kbz534udanag4v14
2014-01-24 10:39:47 +01:00
Gery Debongnie 02f7760063 [IMP] adds an 'interval' attribute to 'field' in the rng file (view.rng)
bzr revid: ged@openerp.com-20140124084319-g4al01wlwnxf8irh
2014-01-24 09:43:19 +01:00
Turkesh Patel (Open ERP) 0ad36cf35f [IMP] improved code and send template only on cutomer invoice
bzr revid: tpa@tinyerp.com-20140124060945-zn1bpzt41xwkh3p7
2014-01-24 11:39:45 +05:30
Frédéric van der Essen c1ef35931a [MERGE] from trunk
bzr revid: fva@openerp.com-20140123183154-5ju4r404kfcz5gp4
2014-01-23 19:31:54 +01:00
Denis Ledoux c76e580da5 [ADD] crm: mass assign apply deduplication
bzr revid: dle@openerp.com-20140123180211-o1ebik36wegmi8mc
2014-01-23 19:02:11 +01:00
Frédéric van der Essen fe5b70fa52 [FIX] hw_scanner: start scanner thread on first use to prevent start during unit tests
bzr revid: fva@openerp.com-20140123180138-1g342p7y2aiakr76
2014-01-23 19:01:38 +01:00
Frédéric van der Essen a656cc07ef [FIX] hw_scanner: prevent the keyboard capture thread from starting during unit testing
bzr revid: fva@openerp.com-20140123171744-r36h0a2pkwp5kqlk
2014-01-23 18:17:44 +01:00
Thibault Delavallée 3cad7c9812 [FIX] ir_qweb: fixed a forgotten av -> attribute_value
bzr revid: tde@openerp.com-20140123162552-akydzhiu0ckushy2
2014-01-23 17:25:52 +01:00
Stephane Wirtel 22d71d52e4 [MERGE] Remove the unreadable variables in the methods of ir.qweb
bzr revid: stw@openerp.com-20140123155444-kw6l4xidrhpo5gp8
2014-01-23 16:54:44 +01:00
Thibault Delavallée 2bcf4cca79 [FIX] tools: mail: support \[ and \] in tmeplates
bzr revid: tde@openerp.com-20140123152842-21b3gsey1mxt4v37
2014-01-23 16:28:42 +01:00
Fabien Meghazi 35050c4ba0 IMP] Launch a 404 when ModelConverter's browse records can't resolve _rec_name. Also serves as automatic preload
bzr revid: fme@openerp.com-20140123151207-3wp77801g44b2822
2014-01-23 16:12:07 +01:00
Raphael Collet ca0a49ccfd [FIX] res_config_settings: stupid bug, I was reassigning uid into a method!
bzr revid: rco@openerp.com-20140123145756-9ggykftlva4v1ar1
2014-01-23 15:57:56 +01:00
Raphael Collet cecd748369 [IMP] res_config_settings: in group fields, allow several groups as targets
bzr revid: rco@openerp.com-20140123144022-6gu8s5kn22bw70ng
2014-01-23 15:40:22 +01:00
Thibault Delavallée 69af79ff3d [FIX] tools: mail: fixed last commit, now simply using replace
bzr revid: tde@openerp.com-20140123141435-jstfcaemjplbn7b1
2014-01-23 15:14:35 +01:00
Turkesh Patel (Open ERP) 43ba81ad1b [IMP] use product.template model for templates
bzr revid: tpa@tinyerp.com-20140123134233-vp52fv0e047bbfgk
2014-01-23 19:12:33 +05:30
Gery Debongnie a42900b8ea [FIX] fixes the read_group by dates tests (makes them use the field:interval syntax instead of using the context (test_orm.py)
bzr revid: ged@openerp.com-20140123130603-5kdlb7as7fhmchd8
2014-01-23 14:06:03 +01:00
Thibault Delavallée 5f1ec49ecd [FIX] tools: mail: when cleaning, unescape mako specific symbols.
Indeed those are escaped when contained inside an href or mailto element
of a tag, leading to mako not rendering the element.

bzr revid: tde@openerp.com-20140123125137-4u4i88f1ajybg5f2
2014-01-23 13:51:37 +01:00
Stephane Wirtel f566d20c74 [REF] Replace g_att -> generated_att, t_att template_att, an -> att_name, av -> att_value, v = qcontext
bzr revid: stw@openerp.com-20140123124651-wi4l32q0x4cy5o6s
2014-01-23 13:46:51 +01:00
Turkesh Patel (Open ERP) a8d65e4fa9 [IMP] improved certificates
bzr revid: tpa@tinyerp.com-20140123123412-9y2hx0xqnc935zj8
2014-01-23 18:04:12 +05:30
Xavier Morel 5528b9b2d8 [FIX] sprurious error in log during javascript unit tests
During some tests, the runner performs sequences of DUPLICATE and DROP
on databases. Each DUPLICATE is followed by some operations then a
DROP.

Problem is, after a DROP the next DUPLICATE RPC query will attempt a
connection to the just-dropped database, openerp.sql_db will log an
OperationalError ("Connection to the database failed" since the db it
tries to connect to was removed) then the HTTP dispatcher will just
switch to "nodb" and continue on its merry way.

Mute the sql_db logger while attempting to fetch the ir.http object.

Also assert that the logger name is a string in mute_logger, as
`mute_logger(openerp.sql_db)` is syntactically valid, but will not do
anything.

bzr revid: xmo@openerp.com-20140123115413-ax5patcomdfp3ue3
2014-01-23 12:54:13 +01:00
Turkesh Patel (Open ERP) e40c8d5502 [IMP] improved view
bzr revid: tpa@tinyerp.com-20140123113921-v0ea72pdb8ansotu
2014-01-23 17:09:21 +05:30
Turkesh Patel (Open ERP) 5c8a48a902 [IMP] add partner as a follower first.
bzr revid: tpa@tinyerp.com-20140123112505-k21mvxf551xhtzad
2014-01-23 16:55:05 +05:30
Gery Debongnie 99230cd3d1 [FIX] prints some value so i can understand how to debug the failing test in test_orm.py
bzr revid: ged@openerp.com-20140123112347-0swvj6xrhp5r5mpq
2014-01-23 12:23:47 +01:00
Turkesh Patel (Open ERP) 5d74ae6f3a [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20140123111345-h1z2mi0gko013whb
2014-01-23 16:43:45 +05:30
Turkesh Patel (Open ERP) bfd0c1472b [MRG] add simplified form view of template for product
bzr revid: tpa@tinyerp.com-20140123111229-8c1d7gf2osv6cql0
2014-01-23 16:42:29 +05:30
Gery Debongnie 74fd48e608 [FIX] fixes the read_group by dates tests (makes them use the field:interval syntax instead of using the context (test_orm.py)
bzr revid: ged@openerp.com-20140123105638-l4ej76ynf4avcjma
2014-01-23 11:56:38 +01:00
Raphael Collet d68bb48e44 [IMP] ir.model.data: get_object() never raises an exception when check=False
bzr revid: rco@openerp.com-20140123103306-tilma2dahgfsm70t
2014-01-23 11:33:06 +01:00
Fabien Meghazi 5b0ff455c5 [IMP] allow ir.ui.view.render() to be called from a browse record instance
bzr revid: fme@openerp.com-20140123101939-2pbjfps4lfc56mc1
2014-01-23 11:19:39 +01:00
Raphael Collet 020921a7f3 [IMP] orm: remove commented code
bzr revid: rco@openerp.com-20140123094957-knrgx6sy66j4tj39
2014-01-23 10:49:57 +01:00
Raphael Collet 0fb09d9a33 [FIX] fields: small python code fix
bzr revid: rco@openerp.com-20140123094646-ri4apn315dm19rl1
2014-01-23 10:46:46 +01:00
Chirag Dodiya (OpenERP) afe9a79c28 [IMP]Improved template form view and set default value
bzr revid: cod@tinyerp.com-20140123090713-v7rk0y9ot32nmmhs
2014-01-23 14:37:13 +05:30
Xavier Morel d50f785b4f [FIX] view requested by _view_ref with view_ref being undotted
Issue introduced in
revid:chm@openerp.com-20130828161130-641xsmbr8xm53xjx: context of a
fields_view_get can provide a *_view_ref name (e.g. tree_view_ref),
whose value is an xid for the view to use (can be used to specify a
view instead of providing a view_id, mostly for embedded views where
there is no way to provide a view_id).

The view_ref being an external id, it must be dotted. Historically,
undotted xids were silently ignored and the system just skipped to
getting the default view for the model (lowest priority view where
inherit_id is null).

In revid:odo@openerp.com-20130821122955-8c9z0mi8cu48rne3 this behavior
was altered to emit a warning when ignoring a malformed view_ref. When
this change was merged into trunk-website-al, the conditional
(view_ref and '.' in view_ref) was split without consideration for the
semantics change: a syntactically invalid view_ref would fall off the
first branch (view_ref) instead of taking the second one (not
view_ref), the code would not fetch the default view for the model and
would instead generate one (through _get_default_%(viewtype)s_view).

However, closer reading reveals the code was already broken in a
specific case of a syntactically valid but unknown xid (view_id
wouldn't get assigned in the first branch, but the code would not take
the second one, resulting yet again in a view generation even if the
database contains a valid view for the model and type).

Fixed by reintroducing explicit second check on view_id, instead of
merely conditional alternative.

bzr revid: xmo@openerp.com-20140123075742-603n2zthqhxee07y
2014-01-23 08:57:42 +01:00
Antony Lesuisse 9248a2db18 [FIX] multiprocess mode, empty the cursor pool before forking
bzr revid: al@openerp.com-20140122221525-hify023pk5i8d0jm
2014-01-22 23:15:25 +01:00
Fabien Meghazi 8d28d74dc9 [FIX] stupid fme
bzr revid: fme@openerp.com-20140122153022-y7pe379qjxqy67vs
2014-01-22 16:30:22 +01:00
Fabien Meghazi 1895d8bd76 [FIX] clear ir.ui.view cache on translation write/create
bzr revid: fme@openerp.com-20140122151327-keaozhwa7rx4qj73
2014-01-22 16:13:27 +01:00
Fabien Meghazi 9cd7e946b2 [FIX] clear ir.ui.view cache on write()
bzr revid: fme@openerp.com-20140122150230-bfb02rtxm3ojpvye
2014-01-22 16:02:30 +01:00
Thibault Delavallée 7dd432cd5d [MERGE] [REF] [IMP] base_action_rule: allow using a resource.calendar to compute
day-based timing conditions.

[REF] resource: cleaned, refactored and improved code for resource.calendar
module. Old API is kept for backward compatibility.
[TESTS] resource: added tests for the new implementation of the various
methods.

[IMP] base_action_rule: using the resource module, added the possibility
to specify a resource.calendar to compute day-based timing conditions.

[IMP] hr_contract: added an override of base action rule to add the possibility
of using an employees's resource.calendar to compute day-based timing
conditions.

bzr revid: tde@openerp.com-20140122150032-uu6mk8s0arachzy4
2014-01-22 16:00:32 +01:00
Thibault Delavallée 339c2ecc54 [IMP] default_interval also in schedule_hours, allowing to
schedule some work with a default calendar, like previous version
of resource module.

bzr revid: tde@openerp.com-20140122142805-8zyntmkx72l10fbq
2014-01-22 15:28:05 +01:00
Thibault Delavallée 2f275894f3 [CLEAN] resource: removed some TDE NOTE
bzr revid: tde@openerp.com-20140122134700-0iwb4uhg8jjdjzxn
2014-01-22 14:47:00 +01:00
Thibault Delavallée 6df94832bd [CLEAN] resource: some cleaning in docstrings
bzr revid: tde@openerp.com-20140122134609-7fvd1p49r8e40zoa
2014-01-22 14:46:09 +01:00
Fabien Meghazi e475921d56 [MERGE] server side login
bzr revid: fme@openerp.com-20140122133639-dofswdeao3b2htbh
2014-01-22 14:36:39 +01:00
Thibault Delavallée 9fbbba1ee0 [IMP] resource : some docstrings cleaning + void calendar
taken into account in days scheduling + finished yesys

bzr revid: tde@openerp.com-20140122132918-4c1ag6y5gqasi32d
2014-01-22 14:29:18 +01:00
Gery Debongnie 74386a5bb9 [IMP] changes the method read_group so that it now accepts groupbys of the form 'field:groupby_function', like 'create_date:week' for example. Also, removes the previous hack using the context (orm.py)
bzr revid: ged@openerp.com-20140122124206-b5p06tpzw2i7tpo2
2014-01-22 13:42:06 +01:00
Thibault Delavallée ec2c2d4e86 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140122123237-5rc5fdyau0422fj2
2014-01-22 13:32:37 +01:00