).
#
@@ -14,11 +14,12 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
+# along with this program. If not, see .
#
##############################################################################
-import report
import sale_margin
+import report
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/stock/product.py b/addons/stock/product.py
index 405bd165106..dfe6f82c30d 100644
--- a/addons/stock/product.py
+++ b/addons/stock/product.py
@@ -170,8 +170,8 @@ class product_product(osv.osv):
context = {}
res = super(product_product, self).view_header_get(cr, user, view_id, view_type, context)
if res: return res
- if (context.get('location', False)):
- return _('Products: ')+self.pool.get('stock.location').browse(cr, user, context['location'], context).name
+ if (context.get('active_id', False)) and (context.get('active_model') == 'stock.location'):
+ return _('Products: ')+self.pool.get('stock.location').browse(cr, user, context['active_id'], context).name
return res
def get_product_available(self, cr, uid, ids, context=None):
diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml
index 97510e31a64..68bae72ba84 100644
--- a/addons/stock/report/picking.rml
+++ b/addons/stock/report/picking.rml
@@ -208,7 +208,7 @@
[[ formatLang(picking.min_date,date_time = True) ]]
|
- [[ picking.weight or '']]
+ [[ 'weight' in picking._columns.keys() and picking.weight or '']]
|
diff --git a/addons/stock/report/report_stock_picking.py b/addons/stock/report/report_stock_picking.py
index 8dff4acf528..81f20ed8906 100644
--- a/addons/stock/report/report_stock_picking.py
+++ b/addons/stock/report/report_stock_picking.py
@@ -72,6 +72,7 @@ class report_stock_picking(osv.osv):
sp.address_id as partner_id,
to_date(to_char(sp.create_date, 'MM-dd-YYYY'),'MM-dd-YYYY') as date,
count(sm.id) as nbr,
+ count(sp.id) as nbp,
sum(sm.product_qty*u.factor) as product_qty,
sum(sm.product_uos_qty) as product_uos_qty,
sm.product_id as product_id,
diff --git a/addons/stock/security/ir.model.access.csv b/addons/stock/security/ir.model.access.csv
index 30a7610d81a..86d9cac4337 100644
--- a/addons/stock/security/ir.model.access.csv
+++ b/addons/stock/security/ir.model.access.csv
@@ -22,3 +22,4 @@
"access_report_delivery_products_planned","report.delivery.products.planned","model_report_delivery_products_planned","stock.group_stock_user",1,1,1,1
"access_report_stock_move","report.stock.move","model_report_stock_move","stock.group_stock_user",1,1,1,1
"access_report_stock_inventory","report.stock.inventory","model_report_stock_inventory","stock.group_stock_user",1,1,1,1
+"access_report_stock_picking","report.stock.picking","model_report_stock_picking","stock.group_stock_user",1,1,1,1
diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index e3b49ea2a83..9bc40a1e691 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -1008,6 +1008,9 @@ class stock_picking(osv.osv):
return res
def test_done(self, cr, uid, ids, context=None):
+ """ Test whether the move lines are done or not.
+ @return: True or False
+ """
ok = False
for pick in self.browse(cr, uid, ids, context=context):
if not pick.move_lines:
diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml
index 63e39bca629..2f9fe026a61 100644
--- a/addons/stock/stock_view.xml
+++ b/addons/stock/stock_view.xml
@@ -1630,9 +1630,6 @@
icon="terp-stock_effects-object-colorize"
states="draft,assigned,confirmed,done"/>
-
diff --git a/addons/stock/wizard/stock_inventory_line_split.py b/addons/stock/wizard/stock_inventory_line_split.py
index 9f91a47c9a5..b07d27c7656 100644
--- a/addons/stock/wizard/stock_inventory_line_split.py
+++ b/addons/stock/wizard/stock_inventory_line_split.py
@@ -44,8 +44,8 @@ class stock_inventory_line_split(osv.osv_memory):
@return: A dictionary which of fields with values.
"""
record_id = context and context.get('active_id',False)
- res = super(stock_inventory_line_split, self).default_get(cr, uid, fields, context=context)
- line= self.pool.get('stock.inventory.line').browse(cr, uid, record_id)
+ res = {}
+ line = self.pool.get('stock.inventory.line').browse(cr, uid, record_id)
if 'product_id' in fields:
res.update({'product_id':line.product_id.id})
return res
diff --git a/addons/thunderbird/installer.py b/addons/thunderbird/installer.py
index c93e10080ed..8fe0a4aac33 100644
--- a/addons/thunderbird/installer.py
+++ b/addons/thunderbird/installer.py
@@ -43,14 +43,14 @@ class thunderbird_installer(osv.osv_memory):
'thunderbird':fields.boolean('Thunderbird Module ', help="Allows you to select an object that you’d like to add to your email and its attachments."),
'plugin_file':fields.binary('Thunderbird Plug-in', readonly=True, help="Thunderbird plug-in file. Save as this file and install this plug-in in thunderbird."),
'pdf_file':fields.binary('Installation Manual', help="The documentation file :- how to install Thunderbird Plug-in.", readonly=True),
- 'description':fields.text('Description', readonly=True)
+ 'description':fields.text('Description', readonly=True)
}
_defaults = {
'thunderbird' : True,
'name' : 'tiny_plugin-2.0.xpi',
'pdf_name' : 'Installation Guide to OpenERP Thunderbid Plug-in.pdf',
- 'description' : """ * Save The thunderbird plugin Follow the following step to install thunderbird plugin. \n -> 1. From Menu Bar, Open Tools > Add ons. \n -> 2. Now click on install button and a browser window will appear. \n -> 3. Just select the (.xpi) file from thunderbird/plugin directory and click ok, a new software installation window will appear and within a short time Install Now button will be enabled. \n -> 4. Click on Install Now and restart Thunderbird. \n -> 5. Now Thunderbird plugin is installed."""
+ 'description' : """ * Save the Thunderbird plugin. \n * Follow the following step to install Thunderbird plugin. \n -> 1.From Menu Bar of Thunderbird, open Tools > Add ons. \n -> 2. Click on install button and a browser window appears. \n -> 3. Select the plug-in(.xpi file) and click Ok. \n -> 4. Software installation window appears and within a short time “Install Now” button will be enabled -> 5. Click "Install Now". \n -> 6. Restart Thunderbird."""
}
thunderbird_installer()
diff --git a/addons/thunderbird/plugin/tiny_plugin-2.0.xpi b/addons/thunderbird/plugin/tiny_plugin-2.0.xpi
index 982447de8d8..9b9e95aec2f 100644
Binary files a/addons/thunderbird/plugin/tiny_plugin-2.0.xpi and b/addons/thunderbird/plugin/tiny_plugin-2.0.xpi differ
diff --git a/addons/thunderbird/thunderbird_installer.xml b/addons/thunderbird/thunderbird_installer.xml
index 7b50b70fba5..834ac7c6a38 100644
--- a/addons/thunderbird/thunderbird_installer.xml
+++ b/addons/thunderbird/thunderbird_installer.xml
@@ -15,7 +15,7 @@
Thunderbird
- This module is required for the thuderbird plug-in to work properly.This allows you to select an object that you had like to add to your email and its attachments. You can select a partner, a task, a project, an analytical account, or any other object and attach selected mail as .eml file in attachment of selected record.
+ This module allows you to archive an e-mail on one or more objects of OpenERP. You can attach an email to a partner, a task, an analytic account or any other object. You can also create a new object like a lead, a phone call, claim and many more.
Configure
@@ -25,8 +25,8 @@
15
-
-
+
+
@@ -72,20 +72,20 @@
-
+
-
+
-
+
-
+
diff --git a/addons/wiki/i18n/ru.po b/addons/wiki/i18n/ru.po
index 799ae1b9948..10329e8d4b9 100644
--- a/addons/wiki/i18n/ru.po
+++ b/addons/wiki/i18n/ru.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-02-03 10:32+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-07-07 22:45+0000\n"
+"Last-Translator: Pomazan Bogdan \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-06-22 04:17+0000\n"
+"X-Launchpad-Export-Date: 2010-07-08 03:50+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: wiki
@@ -37,17 +37,17 @@ msgstr ""
#. module: wiki
#: field:wiki.wiki,create_uid:0
msgid "Author"
-msgstr ""
+msgstr "Автор"
#. module: wiki
#: model:ir.actions.wizard,name:wiki.wizard_open_page
msgid "Open Page"
-msgstr ""
+msgstr "Открыть страницу"
#. module: wiki
#: field:wiki.groups.link,action_id:0
msgid "Menu"
-msgstr ""
+msgstr "Меню"
#. module: wiki
#: field:wiki.groups,child_ids:0
@@ -59,7 +59,7 @@ msgstr ""
#: model:ir.actions.act_window,name:wiki.action_wiki
#: model:ir.ui.menu,name:wiki.menu_action_wiki_wiki
msgid "Wiki Pages"
-msgstr ""
+msgstr "Wiki страницы"
#. module: wiki
#: field:wiki.groups,section:0
@@ -80,12 +80,12 @@ msgstr ""
#. module: wiki
#: field:wiki.wiki,text_area:0
msgid "Content"
-msgstr ""
+msgstr "Содержание"
#. module: wiki
#: model:ir.ui.menu,name:wiki.menu_document_configuration
msgid "Wiki Configuration"
-msgstr ""
+msgstr "Настройка Wiki"
#. module: wiki
#: constraint:ir.actions.act_window:0
@@ -101,7 +101,7 @@ msgstr ""
#. module: wiki
#: field:wiki.wiki,name:0
msgid "Title"
-msgstr ""
+msgstr "Заголовок"
#. module: wiki
#: field:wiki.wiki,history_id:0
@@ -121,17 +121,17 @@ msgstr ""
#. module: wiki
#: view:wiki.groups:0
msgid "Create a Menu"
-msgstr ""
+msgstr "Создать меню"
#. module: wiki
#: field:wiki.groups,notes:0
msgid "Description"
-msgstr ""
+msgstr "Описание"
#. module: wiki
#: field:wiki.wiki,section:0
msgid "Section"
-msgstr ""
+msgstr "Секция"
#. module: wiki
#: view:wizard.wiki.history.show_diff:0
@@ -146,12 +146,12 @@ msgstr ""
#. module: wiki
#: field:wiki.wiki,write_uid:0
msgid "Last Author"
-msgstr ""
+msgstr "Последний автор"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.act_view_diff
msgid "Differences"
-msgstr ""
+msgstr "Разность"
#. module: wiki
#: help:wiki.wiki,section:0
@@ -161,17 +161,17 @@ msgstr ""
#. module: wiki
#: view:wiki.groups:0
msgid "Page Template"
-msgstr ""
+msgstr "Шаблон страницы"
#. module: wiki
#: model:ir.ui.menu,name:wiki.menu_document2
msgid "Document Management"
-msgstr ""
+msgstr "Управление документами"
#. module: wiki
#: field:wiki.wiki.history,create_date:0
msgid "Date"
-msgstr ""
+msgstr "Дата"
#. module: wiki
#: wizard_view:wiki.make.index,init:0
@@ -181,13 +181,13 @@ msgstr ""
#. module: wiki
#: view:wiki.groups:0
msgid "Configuration"
-msgstr ""
+msgstr "Конфигурация"
#. module: wiki
#: field:wiki.groups,home:0
#: field:wiki.groups,page_ids:0
msgid "Pages"
-msgstr ""
+msgstr "Страницы"
#. module: wiki
#: constraint:ir.ui.view:0
@@ -197,28 +197,28 @@ msgstr "Неправильный XML для просмотра архитект
#. module: wiki
#: field:wiki.wiki.history,text_area:0
msgid "Text area"
-msgstr ""
+msgstr "Текстовое поле"
#. module: wiki
#: wizard_field:wiki.create.menu,init,menu_parent_id:0
msgid "Parent Menu"
-msgstr ""
+msgstr "Родительское меню"
#. module: wiki
#: field:wiki.wiki,create_date:0
msgid "Created on"
-msgstr ""
+msgstr "Создан"
#. module: wiki
#: view:wiki.groups:0
msgid "Notes"
-msgstr ""
+msgstr "Заметки"
#. module: wiki
#: wizard_view:wiki.create.menu,init:0
#: wizard_view:wiki.make.index,init:0
msgid "Menu Information"
-msgstr ""
+msgstr "Информация меню"
#. module: wiki
#: field:wiki.groups,parent_id:0
@@ -230,18 +230,18 @@ msgstr ""
#: field:wiki.wiki,summary:0
#: field:wiki.wiki.history,summary:0
msgid "Summary"
-msgstr ""
+msgstr "Итого"
#. module: wiki
#: field:wiki.groups,create_date:0
msgid "Created Date"
-msgstr ""
+msgstr "Дата создания"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.action_history
#: model:ir.ui.menu,name:wiki.menu_action_history
msgid "All Page Histories"
-msgstr ""
+msgstr "История всех страниц"
#. module: wiki
#: model:ir.model,name:wiki.model_wiki_wiki
@@ -261,34 +261,34 @@ msgstr ""
#. module: wiki
#: wizard_field:wiki.create.menu,init,menu_name:0
msgid "Menu Name"
-msgstr ""
+msgstr "Название меню"
#. module: wiki
#: view:wiki.wiki:0
msgid "Modifications"
-msgstr ""
+msgstr "Модификации"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.act_wiki_wiki_history
msgid "History"
-msgstr ""
+msgstr "История"
#. module: wiki
#: model:ir.ui.menu,name:wiki.menu_document
#: view:wiki.wiki:0
msgid "Wiki"
-msgstr ""
+msgstr "Wiki"
#. module: wiki
#: field:wiki.wiki,write_date:0
msgid "Modification Date"
-msgstr ""
+msgstr "Дата изменения"
#. module: wiki
#: model:ir.actions.wizard,name:wiki.wizard_make_index
#: wizard_button:wiki.make.index,init,yes:0
msgid "Create Index"
-msgstr ""
+msgstr "Создать индекс"
#. module: wiki
#: field:wiki.wiki.history,minor_edit:0
@@ -301,12 +301,12 @@ msgstr ""
#: wizard_button:wiki.create.menu,init,create_menu:0
#: wizard_view:wiki.make.index,init:0
msgid "Create Menu"
-msgstr ""
+msgstr "Создать меню"
#. module: wiki
#: field:wiki.wiki,tags:0
msgid "Tags"
-msgstr ""
+msgstr "Ярлыки"
#. module: wiki
#: model:ir.actions.act_window,name:wiki.action_wiki_groups
@@ -332,12 +332,12 @@ msgstr ""
#: wizard_button:wiki.create.menu,init,end:0
#: wizard_button:wiki.make.index,init,end:0
msgid "Cancel"
-msgstr ""
+msgstr "Отмена"
#. module: wiki
#: field:wizard.wiki.history.show_diff,diff:0
msgid "Diff"
-msgstr ""
+msgstr "Различие"
#. module: wiki
#: field:wiki.wiki,review:0