Merge lp:~openerp-commiter/openobject-addons/trunk-exception-warning-imp-dbr-purchase-hsa into lp:~openerp-dev/openobject-addons/trunk-exception-warning-imp-dbr

Proposed by Hardik Sanchawat (OpenERP)
Status: Merged
Merge reported by: Priyesh (OpenERP)
Merged at revision: not available
Proposed branch: lp:~openerp-commiter/openobject-addons/trunk-exception-warning-imp-dbr-purchase-hsa
Merge into: lp:~openerp-dev/openobject-addons/trunk-exception-warning-imp-dbr
Diff against target: 137 lines (+16/-16)
4 files modified
purchase/i18n/purchase.pot (+5/-5)
purchase/purchase.py (+9/-9)
purchase_requisition/i18n/purchase_requisition.pot (+1/-1)
purchase_requisition/wizard/purchase_requisition_partner.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-commiter/openobject-addons/trunk-exception-warning-imp-dbr-purchase-hsa
Reviewer Review Type Date Requested Status
Kuldeep Joshi(OpenERP) Pending
Review via email: mp+114808@code.launchpad.net

Description of the change

Hello,

I update warning messages in purchase module.

Thanks
-hsa

To post a comment you must log in.
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'purchase/i18n/purchase.pot'
--- purchase/i18n/purchase.pot 2012-05-10 13:49:26 +0000
+++ purchase/i18n/purchase.pot 2012-07-13 10:47:24 +0000
@@ -61,7 +61,7 @@
61#. module: purchase61#. module: purchase
62#: code:addons/purchase/purchase.py:23662#: code:addons/purchase/purchase.py:236
63#, python-format63#, python-format
64msgid "In order to delete a purchase order, it must be cancelled first!"64msgid "In order to delete a purchase order, it must be cancelled first.'))"
65msgstr ""65msgstr ""
6666
67#. module: purchase67#. module: purchase
@@ -641,7 +641,7 @@
641#. module: purchase641#. module: purchase
642#: code:addons/purchase/purchase.py:349642#: code:addons/purchase/purchase.py:349
643#, python-format643#, python-format
644msgid "There is no purchase journal defined for this company: \"%s\" (id:%d)"644msgid "No purchase journal is defined for this company: \"%s\" (id:%d)"
645msgstr ""645msgstr ""
646646
647#. module: purchase647#. module: purchase
@@ -1175,7 +1175,7 @@
1175#. module: purchase1175#. module: purchase
1176#: code:addons/purchase/purchase.py:411 code:addons/purchase/purchase.py:4181176#: code:addons/purchase/purchase.py:411 code:addons/purchase/purchase.py:418
1177#, python-format1177#, python-format
1178msgid "Unable to cancel this purchase order!"1178msgid "Unable to cancel this purchase order."
1179msgstr ""1179msgstr ""
11801180
1181#. module: purchase1181#. module: purchase
@@ -1745,7 +1745,7 @@
1745#: code:addons/purchase/purchase.py:3591745#: code:addons/purchase/purchase.py:359
1746#: code:addons/purchase/wizard/purchase_line_invoice.py:1121746#: code:addons/purchase/wizard/purchase_line_invoice.py:112
1747#, python-format1747#, python-format
1748msgid "There is no expense account defined for this product: \"%s\" (id:%d)"1748msgid "No expense account is defined for this company: \"%s\" (id:%d)"
1749msgstr ""1749msgstr ""
17501750
1751#. module: purchase1751#. module: purchase
@@ -1762,7 +1762,7 @@
1762#: code:addons/purchase/purchase.py:7351762#: code:addons/purchase/purchase.py:735
1763#, python-format1763#, python-format
1764msgid ""1764msgid ""
1765"You have to select a pricelist or a supplier in the purchase form !\n"1765"Before choosing a product,\n select a price list for a supplier in the purchase form.'))\n"
1766"Please set one before choosing a product."1766"Please set one before choosing a product."
1767msgstr ""1767msgstr ""
17681768
17691769
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py 2012-07-02 16:13:23 +0000
+++ purchase/purchase.py 2012-07-13 10:47:24 +0000
@@ -238,7 +238,7 @@
238 if s['state'] in ['draft','cancel']:238 if s['state'] in ['draft','cancel']:
239 unlink_ids.append(s['id'])239 unlink_ids.append(s['id'])
240 else:240 else:
241 raise osv.except_osv(_('Invalid action !'), _('In order to delete a purchase order, it must be cancelled first!'))241 raise osv.except_osv(_('Invalid action !'), _('In order to delete a purchase order, it must be cancelled first.'))
242242
243 # TODO: temporary fix in 5.0, to remove in 5.2 when subflows support243 # TODO: temporary fix in 5.0, to remove in 5.2 when subflows support
244 # automatically sending subflow.delete upon deletion244 # automatically sending subflow.delete upon deletion
@@ -428,7 +428,7 @@
428 journal_ids = journal_obj.search(cr, uid, [('type', '=','purchase'),('company_id', '=', order.company_id.id)], limit=1)428 journal_ids = journal_obj.search(cr, uid, [('type', '=','purchase'),('company_id', '=', order.company_id.id)], limit=1)
429 if not journal_ids:429 if not journal_ids:
430 raise osv.except_osv(_('Error !'),430 raise osv.except_osv(_('Error !'),
431 _('There is no purchase journal defined for this company: "%s" (id:%d)') % (order.company_id.name, order.company_id.id))431 _('No purchase journal is defined for this company: "%s" (id:%d)') % (order.company_id.name, order.company_id.id))
432432
433 # generate invoice line correspond to PO line and link that to created invoice (inv_id) and PO line433 # generate invoice line correspond to PO line and link that to created invoice (inv_id) and PO line
434 inv_lines = []434 inv_lines = []
@@ -438,7 +438,7 @@
438 if not acc_id:438 if not acc_id:
439 acc_id = po_line.product_id.categ_id.property_account_expense_categ.id439 acc_id = po_line.product_id.categ_id.property_account_expense_categ.id
440 if not acc_id:440 if not acc_id:
441 raise osv.except_osv(_('Error !'), _('There is no expense account defined for this product: "%s" (id:%d)') % (po_line.product_id.name, po_line.product_id.id,))441 raise osv.except_osv(_('Error !'), _('No expense account is defined for this company: "%s" (id:%d)') % (po_line.product_id.name, po_line.product_id.id,))
442 else:442 else:
443 acc_id = property_obj.get(cr, uid, 'property_account_expense_categ', 'product.category').id443 acc_id = property_obj.get(cr, uid, 'property_account_expense_categ', 'product.category').id
444 fpos = order.fiscal_position or False444 fpos = order.fiscal_position or False
@@ -495,15 +495,15 @@
495 for pick in purchase.picking_ids:495 for pick in purchase.picking_ids:
496 if pick.state not in ('draft','cancel'):496 if pick.state not in ('draft','cancel'):
497 raise osv.except_osv(497 raise osv.except_osv(
498 _('Unable to cancel this purchase order!'),498 _('Unable to cancel this purchase order.'),
499 _('You must first cancel all receptions related to this purchase order.'))499 _('First cancelled all receptions related to this purchase order.'))
500 for pick in purchase.picking_ids:500 for pick in purchase.picking_ids:
501 wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_cancel', cr)501 wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_cancel', cr)
502 for inv in purchase.invoice_ids:502 for inv in purchase.invoice_ids:
503 if inv and inv.state not in ('cancel','draft'):503 if inv and inv.state not in ('cancel','draft'):
504 raise osv.except_osv(504 raise osv.except_osv(
505 _('Unable to cancel this purchase order!'),505 _('Unable to cancel this purchase order.'),
506 _('You must first cancel all invoices related to this purchase order.'))506 _('First cancelled all receptions related to this purchase order.'))
507 if inv:507 if inv:
508 wf_service.trg_validate(uid, 'account.invoice', inv.id, 'invoice_cancel', cr)508 wf_service.trg_validate(uid, 'account.invoice', inv.id, 'invoice_cancel', cr)
509 self.write(cr,uid,ids,{'state':'cancel'})509 self.write(cr,uid,ids,{'state':'cancel'})
@@ -887,9 +887,9 @@
887887
888 # - check for the presence of partner_id and pricelist_id888 # - check for the presence of partner_id and pricelist_id
889 if not pricelist_id:889 if not pricelist_id:
890 raise osv.except_osv(_('No Pricelist !'), _('You have to select a pricelist or a supplier in the purchase form !\nPlease set one before choosing a product.'))890 raise osv.except_osv(_('No Pricelist !'), _('Before choosing a product,\n select a price list for a supplier in the purchase form.'))
891 if not partner_id:891 if not partner_id:
892 raise osv.except_osv(_('No Partner!'), _('You have to select a partner in the purchase form !\nPlease set one partner before choosing a product.'))892 raise osv.except_osv(_('No Partner!'), _('Before choosing a product.\n select a partner in purchase order.'))
893893
894 # - determine name and notes based on product in partner lang.894 # - determine name and notes based on product in partner lang.
895 lang = res_partner.browse(cr, uid, partner_id).lang895 lang = res_partner.browse(cr, uid, partner_id).lang
896896
=== modified file 'purchase_requisition/i18n/purchase_requisition.pot'
--- purchase_requisition/i18n/purchase_requisition.pot 2012-02-08 01:08:30 +0000
+++ purchase_requisition/i18n/purchase_requisition.pot 2012-07-13 10:47:24 +0000
@@ -29,7 +29,7 @@
29#. module: purchase_requisition29#. module: purchase_requisition
30#: code:addons/purchase_requisition/wizard/purchase_requisition_partner.py:4230#: code:addons/purchase_requisition/wizard/purchase_requisition_partner.py:42
31#, python-format31#, python-format
32msgid "No Product in Tender"32msgid "No Product in Tender."
33msgstr ""33msgstr ""
3434
35#. module: purchase_requisition35#. module: purchase_requisition
3636
=== modified file 'purchase_requisition/wizard/purchase_requisition_partner.py'
--- purchase_requisition/wizard/purchase_requisition_partner.py 2012-06-01 12:30:48 +0000
+++ purchase_requisition/wizard/purchase_requisition_partner.py 2012-07-13 10:47:24 +0000
@@ -38,7 +38,7 @@
38 record_id = context and context.get('active_id', False) or False38 record_id = context and context.get('active_id', False) or False
39 tender = self.pool.get('purchase.requisition').browse(cr, uid, record_id, context=context)39 tender = self.pool.get('purchase.requisition').browse(cr, uid, record_id, context=context)
40 if not tender.line_ids:40 if not tender.line_ids:
41 raise osv.except_osv(_('Error!'), _('No Product in Tender'))41 raise osv.except_osv(_('Error!'), _('No Product in Tender.'))
42 return res42 return res
4343
44 def create_order(self, cr, uid, ids, context=None):44 def create_order(self, cr, uid, ids, context=None):

Subscribers

People subscribed via source and target branches