#. module: purchase
#: code:addons/purchase/purchase.py:236
#, python-format
-msgid "In order to delete a purchase order, it must be cancelled first!"
+msgid "In order to delete a purchase order, it must be cancelled first.'))"
msgstr ""
#. module: purchase
#. module: purchase
#: code:addons/purchase/purchase.py:349
#, python-format
-msgid "There is no purchase journal defined for this company: \"%s\" (id:%d)"
+msgid "No purchase journal is defined for this company: \"%s\" (id:%d)"
msgstr ""
#. module: purchase
#. module: purchase
#: code:addons/purchase/purchase.py:411 code:addons/purchase/purchase.py:418
#, python-format
-msgid "Unable to cancel this purchase order!"
+msgid "Unable to cancel this purchase order."
msgstr ""
#. module: purchase
#: code:addons/purchase/purchase.py:359
#: code:addons/purchase/wizard/purchase_line_invoice.py:112
#, python-format
-msgid "There is no expense account defined for this product: \"%s\" (id:%d)"
+msgid "No expense account is defined for this company: \"%s\" (id:%d)"
msgstr ""
#. module: purchase
#: code:addons/purchase/purchase.py:735
#, python-format
msgid ""
-"You have to select a pricelist or a supplier in the purchase form !\n"
+"Before choosing a product,\n select a price list for a supplier in the purchase form.'))\n"
"Please set one before choosing a product."
msgstr ""
if s['state'] in ['draft','cancel']:
unlink_ids.append(s['id'])
else:
- raise osv.except_osv(_('Invalid action !'), _('In order to delete a purchase order, it must be cancelled first!'))
+ raise osv.except_osv(_('Invalid action !'), _('In order to delete a purchase order, it must be cancelled first.'))
# TODO: temporary fix in 5.0, to remove in 5.2 when subflows support
# automatically sending subflow.delete upon deletion
journal_ids = journal_obj.search(cr, uid, [('type', '=','purchase'),('company_id', '=', order.company_id.id)], limit=1)
if not journal_ids:
raise osv.except_osv(_('Error !'),
- _('There is no purchase journal defined for this company: "%s" (id:%d)') % (order.company_id.name, order.company_id.id))
+ _('No purchase journal is defined for this company: "%s" (id:%d)') % (order.company_id.name, order.company_id.id))
# generate invoice line correspond to PO line and link that to created invoice (inv_id) and PO line
inv_lines = []
if not acc_id:
acc_id = po_line.product_id.categ_id.property_account_expense_categ.id
if not acc_id:
- 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,))
+ 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,))
else:
acc_id = property_obj.get(cr, uid, 'property_account_expense_categ', 'product.category').id
fpos = order.fiscal_position or False
for pick in purchase.picking_ids:
if pick.state not in ('draft','cancel'):
raise osv.except_osv(
- _('Unable to cancel this purchase order!'),
- _('You must first cancel all receptions related to this purchase order.'))
+ _('Unable to cancel this purchase order.'),
+ _('First cancelled all receptions related to this purchase order.'))
for pick in purchase.picking_ids:
wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_cancel', cr)
for inv in purchase.invoice_ids:
if inv and inv.state not in ('cancel','draft'):
raise osv.except_osv(
- _('Unable to cancel this purchase order!'),
- _('You must first cancel all invoices related to this purchase order.'))
+ _('Unable to cancel this purchase order.'),
+ _('First cancelled all receptions related to this purchase order.'))
if inv:
wf_service.trg_validate(uid, 'account.invoice', inv.id, 'invoice_cancel', cr)
self.write(cr,uid,ids,{'state':'cancel'})
# - check for the presence of partner_id and pricelist_id
if not pricelist_id:
- 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.'))
+ raise osv.except_osv(_('No Pricelist !'), _('Before choosing a product,\n select a price list for a supplier in the purchase form.'))
if not partner_id:
- raise osv.except_osv(_('No Partner!'), _('You have to select a partner in the purchase form !\nPlease set one partner before choosing a product.'))
+ raise osv.except_osv(_('No Partner!'), _('Before choosing a product.\n select a partner in purchase order.'))
# - determine name and notes based on product in partner lang.
lang = res_partner.browse(cr, uid, partner_id).lang