diff --git a/addons/sale_journal/sale_journal.py b/addons/sale_journal/sale_journal.py index dec149587db..0aa01cffe70 100644 --- a/addons/sale_journal/sale_journal.py +++ b/addons/sale_journal/sale_journal.py @@ -110,6 +110,21 @@ class sale_journal(osv.osv): message = _('Sale orders of Journal') + " '" + name + "' "+ _("is closed") self.log(cr, uid, id, message) return True + + def copy(self, cr, uid, id, default=None, context=None): + """Overrides orm copy method + @param self: The object pointer + @param cr: the current row, from the database cursor, + @param uid: the current user’s ID for security checks, + @param ids: List of case’s IDs + @param context: A standard dictionary for contextual values + """ + if context is None: + context = {} + if default is None: + default = {} + default.update({'sale_stats_ids': []}) + return super(sale_journal, self).copy(cr, uid, id, default=default, context=context) sale_journal() @@ -155,6 +170,22 @@ class picking_journal(osv.osv): def button_close(self, cr, uid, ids, context={}): self.write(cr, uid, ids, {'state':'done', 'date_validation':time.strftime('%Y-%m-%d')}) return True + + def copy(self, cr, uid, id, default=None, context=None): + """Overrides orm copy method + @param self: The object pointer + @param cr: the current row, from the database cursor, + @param uid: the current user’s ID for security checks, + @param ids: List of case’s IDs + @param context: A standard dictionary for contextual values + """ + if context is None: + context = {} + if default is None: + default = {} + default.update({'picking_stats_ids': []}) + return super(picking_journal, self).copy(cr, uid, id, default=default, context=context) + picking_journal() #============================================== diff --git a/addons/sale_margin/sale_margin.py b/addons/sale_margin/sale_margin.py index 1481090ad2c..c390bf769e2 100644 --- a/addons/sale_margin/sale_margin.py +++ b/addons/sale_margin/sale_margin.py @@ -38,7 +38,7 @@ class sale_order_line(osv.osv): return res _columns = { - 'margin': fields.function(_product_margin, method=True, string='Margin', store={}), + 'margin': fields.function(_product_margin, method=True, string='Margin', store=True), 'purchase_price': fields.float('Cost Price', digits=(16,2)) } diff --git a/addons/sale_mrp/i18n/en_US.po b/addons/sale_mrp/i18n/en_US.po new file mode 100644 index 00000000000..44811d945f5 --- /dev/null +++ b/addons/sale_mrp/i18n/en_US.po @@ -0,0 +1,67 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * sale_mrp +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.0dev\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2010-06-28 09:21:25+0000\n" +"PO-Revision-Date: 2010-06-28 09:21:25+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: sale_mrp +#: help:mrp.production,sale_ref:0 +msgid "Indicate the Customer Reference from sale order." +msgstr "" + +#. module: sale_mrp +#: help:mrp.production,sale_name:0 +msgid "Indicate the name of sale order." +msgstr "" + +#. module: sale_mrp +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "" + +#. module: sale_mrp +#: constraint:ir.model:0 +msgid "The Object name must start with x_ and not contain any special character !" +msgstr "" + +#. module: sale_mrp +#: field:mrp.production,sale_name:0 +msgid "Sale Name" +msgstr "" + +#. module: sale_mrp +#: model:ir.model,name:sale_mrp.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: sale_mrp +#: model:ir.module.module,description:sale_mrp.module_meta_information +msgid "\n" +" This module provides facility to the user to install mrp and sale modules\n" +" at a time. It is basically used when we want to keep track of production\n" +" orders generated from sale orders.\n" +" It adds sale name and sale Reference on production order\n" +" " +msgstr "" + +#. module: sale_mrp +#: field:mrp.production,sale_ref:0 +msgid "Sale Reference" +msgstr "" + +#. module: sale_mrp +#: model:ir.module.module,shortdesc:sale_mrp.module_meta_information +msgid "Sales and MRP Management" +msgstr "" + diff --git a/addons/sale_mrp/i18n/fr.po b/addons/sale_mrp/i18n/fr.po new file mode 100644 index 00000000000..44811d945f5 --- /dev/null +++ b/addons/sale_mrp/i18n/fr.po @@ -0,0 +1,67 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * sale_mrp +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.0dev\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2010-06-28 09:21:25+0000\n" +"PO-Revision-Date: 2010-06-28 09:21:25+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: sale_mrp +#: help:mrp.production,sale_ref:0 +msgid "Indicate the Customer Reference from sale order." +msgstr "" + +#. module: sale_mrp +#: help:mrp.production,sale_name:0 +msgid "Indicate the name of sale order." +msgstr "" + +#. module: sale_mrp +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "" + +#. module: sale_mrp +#: constraint:ir.model:0 +msgid "The Object name must start with x_ and not contain any special character !" +msgstr "" + +#. module: sale_mrp +#: field:mrp.production,sale_name:0 +msgid "Sale Name" +msgstr "" + +#. module: sale_mrp +#: model:ir.model,name:sale_mrp.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: sale_mrp +#: model:ir.module.module,description:sale_mrp.module_meta_information +msgid "\n" +" This module provides facility to the user to install mrp and sale modules\n" +" at a time. It is basically used when we want to keep track of production\n" +" orders generated from sale orders.\n" +" It adds sale name and sale Reference on production order\n" +" " +msgstr "" + +#. module: sale_mrp +#: field:mrp.production,sale_ref:0 +msgid "Sale Reference" +msgstr "" + +#. module: sale_mrp +#: model:ir.module.module,shortdesc:sale_mrp.module_meta_information +msgid "Sales and MRP Management" +msgstr "" + diff --git a/addons/sale_mrp/i18n/sale_mrp.pot b/addons/sale_mrp/i18n/sale_mrp.pot new file mode 100644 index 00000000000..44811d945f5 --- /dev/null +++ b/addons/sale_mrp/i18n/sale_mrp.pot @@ -0,0 +1,67 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * sale_mrp +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.0dev\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2010-06-28 09:21:25+0000\n" +"PO-Revision-Date: 2010-06-28 09:21:25+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: sale_mrp +#: help:mrp.production,sale_ref:0 +msgid "Indicate the Customer Reference from sale order." +msgstr "" + +#. module: sale_mrp +#: help:mrp.production,sale_name:0 +msgid "Indicate the name of sale order." +msgstr "" + +#. module: sale_mrp +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "" + +#. module: sale_mrp +#: constraint:ir.model:0 +msgid "The Object name must start with x_ and not contain any special character !" +msgstr "" + +#. module: sale_mrp +#: field:mrp.production,sale_name:0 +msgid "Sale Name" +msgstr "" + +#. module: sale_mrp +#: model:ir.model,name:sale_mrp.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: sale_mrp +#: model:ir.module.module,description:sale_mrp.module_meta_information +msgid "\n" +" This module provides facility to the user to install mrp and sale modules\n" +" at a time. It is basically used when we want to keep track of production\n" +" orders generated from sale orders.\n" +" It adds sale name and sale Reference on production order\n" +" " +msgstr "" + +#. module: sale_mrp +#: field:mrp.production,sale_ref:0 +msgid "Sale Reference" +msgstr "" + +#. module: sale_mrp +#: model:ir.module.module,shortdesc:sale_mrp.module_meta_information +msgid "Sales and MRP Management" +msgstr "" +