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
1=== modified file 'purchase/i18n/purchase.pot'
2--- purchase/i18n/purchase.pot 2012-05-10 13:49:26 +0000
3+++ purchase/i18n/purchase.pot 2012-07-13 10:47:24 +0000
4@@ -61,7 +61,7 @@
5 #. module: purchase
6 #: code:addons/purchase/purchase.py:236
7 #, python-format
8-msgid "In order to delete a purchase order, it must be cancelled first!"
9+msgid "In order to delete a purchase order, it must be cancelled first.'))"
10 msgstr ""
11
12 #. module: purchase
13@@ -641,7 +641,7 @@
14 #. module: purchase
15 #: code:addons/purchase/purchase.py:349
16 #, python-format
17-msgid "There is no purchase journal defined for this company: \"%s\" (id:%d)"
18+msgid "No purchase journal is defined for this company: \"%s\" (id:%d)"
19 msgstr ""
20
21 #. module: purchase
22@@ -1175,7 +1175,7 @@
23 #. module: purchase
24 #: code:addons/purchase/purchase.py:411 code:addons/purchase/purchase.py:418
25 #, python-format
26-msgid "Unable to cancel this purchase order!"
27+msgid "Unable to cancel this purchase order."
28 msgstr ""
29
30 #. module: purchase
31@@ -1745,7 +1745,7 @@
32 #: code:addons/purchase/purchase.py:359
33 #: code:addons/purchase/wizard/purchase_line_invoice.py:112
34 #, python-format
35-msgid "There is no expense account defined for this product: \"%s\" (id:%d)"
36+msgid "No expense account is defined for this company: \"%s\" (id:%d)"
37 msgstr ""
38
39 #. module: purchase
40@@ -1762,7 +1762,7 @@
41 #: code:addons/purchase/purchase.py:735
42 #, python-format
43 msgid ""
44-"You have to select a pricelist or a supplier in the purchase form !\n"
45+"Before choosing a product,\n select a price list for a supplier in the purchase form.'))\n"
46 "Please set one before choosing a product."
47 msgstr ""
48
49
50=== modified file 'purchase/purchase.py'
51--- purchase/purchase.py 2012-07-02 16:13:23 +0000
52+++ purchase/purchase.py 2012-07-13 10:47:24 +0000
53@@ -238,7 +238,7 @@
54 if s['state'] in ['draft','cancel']:
55 unlink_ids.append(s['id'])
56 else:
57- raise osv.except_osv(_('Invalid action !'), _('In order to delete a purchase order, it must be cancelled first!'))
58+ raise osv.except_osv(_('Invalid action !'), _('In order to delete a purchase order, it must be cancelled first.'))
59
60 # TODO: temporary fix in 5.0, to remove in 5.2 when subflows support
61 # automatically sending subflow.delete upon deletion
62@@ -428,7 +428,7 @@
63 journal_ids = journal_obj.search(cr, uid, [('type', '=','purchase'),('company_id', '=', order.company_id.id)], limit=1)
64 if not journal_ids:
65 raise osv.except_osv(_('Error !'),
66- _('There is no purchase journal defined for this company: "%s" (id:%d)') % (order.company_id.name, order.company_id.id))
67+ _('No purchase journal is defined for this company: "%s" (id:%d)') % (order.company_id.name, order.company_id.id))
68
69 # generate invoice line correspond to PO line and link that to created invoice (inv_id) and PO line
70 inv_lines = []
71@@ -438,7 +438,7 @@
72 if not acc_id:
73 acc_id = po_line.product_id.categ_id.property_account_expense_categ.id
74 if not acc_id:
75- 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,))
76+ 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,))
77 else:
78 acc_id = property_obj.get(cr, uid, 'property_account_expense_categ', 'product.category').id
79 fpos = order.fiscal_position or False
80@@ -495,15 +495,15 @@
81 for pick in purchase.picking_ids:
82 if pick.state not in ('draft','cancel'):
83 raise osv.except_osv(
84- _('Unable to cancel this purchase order!'),
85- _('You must first cancel all receptions related to this purchase order.'))
86+ _('Unable to cancel this purchase order.'),
87+ _('First cancelled all receptions related to this purchase order.'))
88 for pick in purchase.picking_ids:
89 wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_cancel', cr)
90 for inv in purchase.invoice_ids:
91 if inv and inv.state not in ('cancel','draft'):
92 raise osv.except_osv(
93- _('Unable to cancel this purchase order!'),
94- _('You must first cancel all invoices related to this purchase order.'))
95+ _('Unable to cancel this purchase order.'),
96+ _('First cancelled all receptions related to this purchase order.'))
97 if inv:
98 wf_service.trg_validate(uid, 'account.invoice', inv.id, 'invoice_cancel', cr)
99 self.write(cr,uid,ids,{'state':'cancel'})
100@@ -887,9 +887,9 @@
101
102 # - check for the presence of partner_id and pricelist_id
103 if not pricelist_id:
104- 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.'))
105+ raise osv.except_osv(_('No Pricelist !'), _('Before choosing a product,\n select a price list for a supplier in the purchase form.'))
106 if not partner_id:
107- raise osv.except_osv(_('No Partner!'), _('You have to select a partner in the purchase form !\nPlease set one partner before choosing a product.'))
108+ raise osv.except_osv(_('No Partner!'), _('Before choosing a product.\n select a partner in purchase order.'))
109
110 # - determine name and notes based on product in partner lang.
111 lang = res_partner.browse(cr, uid, partner_id).lang
112
113=== modified file 'purchase_requisition/i18n/purchase_requisition.pot'
114--- purchase_requisition/i18n/purchase_requisition.pot 2012-02-08 01:08:30 +0000
115+++ purchase_requisition/i18n/purchase_requisition.pot 2012-07-13 10:47:24 +0000
116@@ -29,7 +29,7 @@
117 #. module: purchase_requisition
118 #: code:addons/purchase_requisition/wizard/purchase_requisition_partner.py:42
119 #, python-format
120-msgid "No Product in Tender"
121+msgid "No Product in Tender."
122 msgstr ""
123
124 #. module: purchase_requisition
125
126=== modified file 'purchase_requisition/wizard/purchase_requisition_partner.py'
127--- purchase_requisition/wizard/purchase_requisition_partner.py 2012-06-01 12:30:48 +0000
128+++ purchase_requisition/wizard/purchase_requisition_partner.py 2012-07-13 10:47:24 +0000
129@@ -38,7 +38,7 @@
130 record_id = context and context.get('active_id', False) or False
131 tender = self.pool.get('purchase.requisition').browse(cr, uid, record_id, context=context)
132 if not tender.line_ids:
133- raise osv.except_osv(_('Error!'), _('No Product in Tender'))
134+ raise osv.except_osv(_('Error!'), _('No Product in Tender.'))
135 return res
136
137 def create_order(self, cr, uid, ids, context=None):

Subscribers

People subscribed via source and target branches