Commit Graph

69361 Commits

Author SHA1 Message Date
Ravi Gohil (OpenERP) 477c5a064b [FIX] document: 'user_id' field must be declared as m2o rather than simple char field as a related field refering it in the same module. (Maintenance Case: 592256)
lp bug: https://launchpad.net/bugs/1175984 fixed

bzr revid: rgo@tinyerp.com-20130507111102-iq6jxwy1fy02727q
2013-05-07 16:41:02 +05:30
Quentin (OpenERP) 966631d383 [MERGE] account_voucher: fixes related to multi currency. All problems related to multi currency should now be completely solved :-)
bzr revid: qdp-launchpad@openerp.com-20130507085124-0eocvbmg9u8khq20
2013-05-07 10:51:24 +02:00
Quentin (OpenERP) a87bf67e9d [FIX] account_voucher: using a new partner for the new yaml test to avoid interferences in the other yaml tests
bzr revid: qdp-launchpad@openerp.com-20130507070006-4rnvkdkk09ri3k63
2013-05-07 09:00:06 +02:00
Quentin (OpenERP) 205d8c40e8 [FIX] account: mandatory company_id not present in the config wizard if already configured for this company, and thus it renders the view invisible as the company_id is empty and not visible
bzr revid: qdp-launchpad@openerp.com-20130507065125-4byqfqr20w9g9xzc
2013-05-07 08:51:25 +02:00
Quentin (OpenERP) e81431007e [FIX] purchase: onchange of product now use information in the supplierinfo of the product for name and description if it exists
bzr revid: qdp-launchpad@openerp.com-20130507064945-o0ma2jxjp6dukceg
2013-05-07 08:49:45 +02:00
Launchpad Translations on behalf of openerp f97d0b48e5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130507061422-tcgcyx0a27csccjw
2013-05-07 06:14:22 +00:00
Thibault Delavallée 43d0ce4d65 [MERGE] [FIX] mail: locate current menu using a safer method + check case
bzr revid: tde@openerp.com-20130506153045-mneydacxxugxn95p
2013-05-06 17:30:45 +02:00
Thibault Delavallée 5c3972fd02 [MERGE] [FIX] mail: locate current menu using a safer method + check case
bzr revid: tde@openerp.com-20130506153023-8o1fl4jhunf3ks1p
2013-05-06 17:30:23 +02:00
Quentin (OpenERP) 40dd6d7559 [FIX] account_voucher: replaced xml ids in new yaml test to avoid confusion in yaml import that is breaking the test
bzr revid: qdp-launchpad@openerp.com-20130506152338-4oev9dt0op7op6xe
2013-05-06 17:23:38 +02:00
Olivier Dony ce57acd302 [FIX] do_load_needaction: properly reject `falsy` menu_ids
bzr revid: odo@openerp.com-20130506135031-4y9qydjc67rugq60
2013-05-06 15:50:31 +02:00
Quentin (OpenERP) 5db4dd71c3 [FIX] account_voucher: fixed new yaml test
bzr revid: qdp-launchpad@openerp.com-20130506134804-sdudzoyecjhkdr6b
2013-05-06 15:48:04 +02:00
Olivier Dony aa68659e47 [FIX] mail: locate current menu using a safer method + check `undefined` case
bzr revid: odo@openerp.com-20130506133915-punpieubdyu1nxgl
2013-05-06 15:39:15 +02:00
Quentin (OpenERP) 92d11a471e [ADD] account_voucher: new test for specific payment_rate specified on the voucher
bzr revid: qdp-launchpad@openerp.com-20130506100708-g2jwb3rlozqjsfmp
2013-05-06 12:07:08 +02:00
Launchpad Translations on behalf of openerp a7a4f33d0f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130427063416-maq2j295cuj0d2j4
bzr revid: launchpad_translations_on_behalf_of_openerp-20130429060435-zyumznnykvw92bfg
bzr revid: launchpad_translations_on_behalf_of_openerp-20130501051425-9uhm1n0nmvyus33i
bzr revid: launchpad_translations_on_behalf_of_openerp-20130506063526-tj5l5h3fger6llmw
bzr revid: launchpad_translations_on_behalf_of_openerp-20130501051533-veqndxlj87s13tnp
bzr revid: launchpad_translations_on_behalf_of_openerp-20130502060901-j2v1cs2l31in4q6t
bzr revid: launchpad_translations_on_behalf_of_openerp-20130503062950-h0ojr1tlzqx5nu76
bzr revid: launchpad_translations_on_behalf_of_openerp-20130504071101-jh8a9d3cb8gcz34e
bzr revid: launchpad_translations_on_behalf_of_openerp-20130505060428-4qacudpyuiez39b3
bzr revid: launchpad_translations_on_behalf_of_openerp-20130506063544-ggq3rpht7nsoinxs
bzr revid: launchpad_translations_on_behalf_of_openerp-20130504071108-g8u3u06xpp3g4sks
bzr revid: launchpad_translations_on_behalf_of_openerp-20130506063552-lwxw1ldh3mbflzqf
2013-05-06 06:35:52 +00:00
Quentin (OpenERP) 5c7c59b3c7 [ ] empty commit to trigger a build in runbot
bzr revid: qdp-launchpad@openerp.com-20130503142802-xrzfahin53zqkirm
2013-05-03 16:28:02 +02:00
Quentin (OpenERP) e02c15ed61 [FIX] account_voucher: typo
bzr revid: qdp-launchpad@openerp.com-20130503115711-bm693r6yjjsvspz5
2013-05-03 13:57:11 +02:00
Olivier Dony f6f575543f [FIX] need_action: avoid reloading needaction counters when there is no menu
- guard do_load_needaction to prevent exceptions when
  there is no menu to load
- avoid calling do_load_needaction where there is no
  menu to reload in the first place

bzr revid: odo@openerp.com-20130503102248-vjl1b8xju9uwfq97
2013-05-03 12:22:48 +02:00
Quentin (OpenERP) 709fc0ca29 [FIX] account_voucher: complete fixing of vouchers in multi-currency.
*uniformized the computation in multi-currency in order to always use res_currency.compute()
*make sure to pass the right conversion rate to _current_rate() function using the context if it is specified on the voucher and, in this function, used the info from the context instead of the computed one if relevant. (This involves an ugly overwriting of the 'rate' field that will disappear in trunk: to stay backward compatible and avoid any update of 'base' module it has to be done this way).
*replace the currency_id field on the voucher by a fields.function (was a fields.related) in order to always have a currency, even if it's a voucher in the company currency. (makes the treatment easier and more consistent. Less error prone)
*misc code reaftoring

bzr revid: qdp-launchpad@openerp.com-20130502225937-ya45q2wvgqy7zo1c
2013-05-03 00:59:37 +02:00
Fabien Meghazi 31c3555f94 [FIX] force module paths to be bytestrings
Backport trunk Revision:
3729 revid:chm@openerp.com-20130502122806-1i9h8v0cvhb6p63q


The http controllers handler crashes when there are non-ascii chars in the url path.

`openerp.modules.module.ad_paths` containing unicode strings, werkzeug fail to compare the path `module` which is converted to ascii.
force `module` to be bytestrings

bzr revid: fme@openerp.com-20130502123657-f2sg50fq3216lh7d
2013-05-02 14:36:57 +02:00
Launchpad Translations on behalf of openerp a20b482a50 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130501051536-3ahyusc1ror0o9fn
2013-05-01 05:15:36 +00:00
Thibault Delavallée 1592434daa [MERGE] [FIX] mail: fixed a change introduced at revision 9080 that introduced a dependance between a revision in web and in addons: now addons revision is independant of the web revision.
bzr revid: tde@openerp.com-20130430112158-8m8z0fclla3h2ds6
2013-04-30 13:21:58 +02:00
Thibault Delavallée 5ab5c4b730 [FIX] mail: fixed a change introduced at revision 3911 that introduced a dependance between a revision in web and in addons: now addons revision is independant of the web revision.
bzr revid: tde@openerp.com-20130430100747-9fcrbdbso1v0prgg
2013-04-30 12:07:47 +02:00
niv-openerp 7c160b8a72 [FIX] optimization necessary in some cases when kanban views can take more that 10 seconds to load
bzr revid: nicolas.vanhoren@openerp.com-20130430094843-9m1629m517vjtm1o
2013-04-30 11:48:43 +02:00
Launchpad Translations on behalf of openerp 6970e5e041 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130430063704-q6sk7sup4c1ej18w
2013-04-30 06:37:04 +00:00
dle@openerp.com 4a7a2d9f8f [FIX]plugin: plugin_handler, push_message, if model is res.partner then we set the type to 'comment' instead of 'email' to avoid the behaviour in mail/res_partner.py message_post
bzr revid: dle@openerp.com-20130429130557-0huoifszlg6g56ny
2013-04-29 15:05:57 +02:00
Cedric Snauwaert d2ebc393fc [FIX]purchase: in a PO line, description of product should take into account product supplier name and code
bzr revid: csn@openerp.com-20130429114832-jqtes30p1qnywotz
2013-04-29 13:48:32 +02:00
Olivier Dony 56dbd6078e [FIX] sale: safer inheritance of res.partner form view + no hiding of use_parent_address field
The use_parent_address field is not directly related to the
address type field and was not really meant to be hidden
along with it.

In addition, the div[@name=div_type] and the corresponding
label[@for=type] were duplicated in the embedded form view
inside the `child_ids` field, but that happened later in
the 7.0 series. As a consequence the inherited view must
not rely on the presence of the latter, since some users
may install sales on top of an older version of the base
views. The XPath expressions were therefore modified to
match the first occurrence of these elements in the original
res.partner view, and to match *only* the second occurrence
in the new version of the view. 
This works via a dirty hack relying on the fact that
the `use_parent_address` field is present in the first
occurrence of the div in the original view, but not
in the newer view, so the XPath expression can be made
to match only *one* element in each version of the view.
(Keep in mind that XPath evaluation will always return
results in the order of the document being looked up,
and the ORM only uses the first match. So matching
both nodes was not an option.)

bzr revid: odo@openerp.com-20130429105458-r89mnkx8okdxsdld
2013-04-29 12:54:58 +02:00
Launchpad Translations on behalf of openerp 3536f65967 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130427063440-bmcyenjvm2fm94ck
bzr revid: launchpad_translations_on_behalf_of_openerp-20130428054142-1k74s6tp0zv4aeu5
bzr revid: launchpad_translations_on_behalf_of_openerp-20130429060457-72jpzgm0ky022n8u
2013-04-29 06:04:57 +00:00
Olivier Dony df64fbd276 [FIX] base_report_designer: more incorrect license headers in some source files, reported and contributed by Alec Leamas
Mixing LGPL 2.1 and AGPL 3.0 in the same source file
is incorrect, and the AGPLv3 license was added by
mistake: keep only LGPL license and preserve
copypright info.

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

bzr revid: odo@openerp.com-20130426161316-hox8tnep8gl4xa1n
2013-04-26 18:13:16 +02:00
Olivier Dony 2f0ac65b59 [FIX] rml2pdf: more incorrect license headers in some source files, reported by Alec Leamas
Mixing LGPL 2.1 and AGPL 3.0 in the same source file
is incorrect, and the AGPLv3 license was added by
mistake: keep only LGPL license and preserve
copypright info.

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

bzr revid: odo@openerp.com-20130426161106-wdb2mw4u541zfwfy
2013-04-26 18:11:06 +02:00
Thibault Delavallée dd09b3185b [FIX] [FIX] Fix needaction counters, now updated dynamically.
Needaction counters are now updated :
- when loading the menus (as before),
- when performing an action in a form view (update the current menu),
- when cliking on a top-level menu item (update all childs menus)

bzr revid: tde@openerp.com-20130426093653-gwdciylu26nfntzp
2013-04-26 11:36:53 +02:00
Thibault Delavallée 2397513664 [FIX] Fix needaction counters, now updated dynamically.
server branch: when reloading the needaction of some menus, also
reload those of related menus. Related menus are defined in the
context of the action associated with the menu, in a 
needaction_menu_ref key that is a list of menu xml_ids.

bzr revid: tde@openerp.com-20130426093505-l8u8lovlswnj009q
2013-04-26 11:35:05 +02:00
Thibault Delavallée a281c372d9 [FIX] Fix needaction counters, now updated dynamically.
Added a needaction_menu_ref key in the context of some actions to
automatically reload the counter of menus related to an action.
Various mailboxes are now dynamic.
Reading messages now increase/decrease the needaction counters with the
corect number.
Added a missing message_unread filter on My Tasks in project_gtd.

bzr revid: tde@openerp.com-20130426093443-dx3bwe0i6ubczb0e
2013-04-26 11:34:43 +02:00
Thibault Delavallée 1088554b40 [REV] Removed code changed not related to this branch.
bzr revid: tde@openerp.com-20130426075650-jxzw3h52idj2zp7y
2013-04-26 09:56:50 +02:00
Thibault Delavallée c625881c1f [REV] Removed change not related to this branch.
bzr revid: tde@openerp.com-20130426075638-ofea10g8ll0z2h64
2013-04-26 09:56:38 +02:00
Thibault Delavallée 90d82b9fa6 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130425143845-si7n2luxdqpixjlf
bzr revid: tde@openerp.com-20130426074536-sto6625nzcbtdbah
2013-04-26 09:45:36 +02:00
Thibault Delavallée 5cafebd48a [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130425143838-cl9k0fpml5r0q6bi
bzr revid: tde@openerp.com-20130426074530-16h0doe2cju6xkug
2013-04-26 09:45:30 +02:00
Thibault Delavallée 229bb1333b [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130425143852-vslppf235z2dyhjc
bzr revid: tde@openerp.com-20130426074512-10d3bsx7f0cki2aj
2013-04-26 09:45:12 +02:00
Launchpad Translations on behalf of openerp 7561f48578 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130426062412-awemubat7ag9ji19
bzr revid: launchpad_translations_on_behalf_of_openerp-20130426062416-6321y5y98sute3k0
2013-04-26 06:24:16 +00:00
Launchpad Translations on behalf of openerp 4e50f6861f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130426062350-ld4zwiqlk38jvfw1
2013-04-26 06:23:50 +00: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
Thibault Delavallée 9c88589286 [FIX] project_gtd: added missing 'message_unread' filter to use in conjunction with the needaction counter.
bzr revid: tde@openerp.com-20130425143807-h94ivrj0eftvakte
2013-04-25 16:38:07 +02:00
Thibault Delavallée 5f76e998a5 [CLEAN] cleaning: set(list), use directly a set
bzr revid: tde@openerp.com-20130425142801-gwk9xsnhb3r20jji
2013-04-25 16:28:01 +02:00
Quentin (OpenERP) 5cf3622148 [FIX] account_voucher: usability changes related to multi currency use cases. Display the options when needed only
bzr revid: qdp-launchpad@openerp.com-20130425125244-nnqv127m0gc70e4s
2013-04-25 14:52:44 +02:00
Quentin (OpenERP) dc51b7a465 [FIX] stock: fixed stock valuation bookings made in multi currency
bzr revid: qdp-launchpad@openerp.com-20130425124933-s7a7724si9lenpsp
2013-04-25 14:49:33 +02:00
Quentin (OpenERP) 2ae76572ea [FIX] account: fixed bad constraint message
bzr revid: qdp-launchpad@openerp.com-20130425124453-gc42mimtn6dfec3u
2013-04-25 14:44:53 +02:00
Quentin (OpenERP) b507941664 [FIX] account_voucher: usability improvement related to multi currency
bzr revid: qdp-launchpad@openerp.com-20130425124404-t22dzpv0rtohoh9y
2013-04-25 14:44:04 +02:00
Quentin (OpenERP) 11ac47133e [FIX] account_voucher: pay invoice 'wizard' now displays 1) the monetary widget even if the journal is in the company currency and 2) the writeoff fields
bzr revid: qdp-launchpad@openerp.com-20130425121815-nbooi3hpah8wqdxc
2013-04-25 14:18:15 +02:00
Cedric Snauwaert 31ffb01f87 [FIX]chart of account wizard: show company id field in wizard view
bzr revid: csn@openerp.com-20130425120604-2toia7v6yuemjl6g
2013-04-25 14:06:04 +02:00