From 3e5e33a4460fcda0cf2500f3935cb359a22729c6 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sat, 12 Jun 2010 20:32:16 +0200 Subject: [PATCH] [imp] remove translata=true on so and po bzr revid: fp@tinyerp.com-20100612183216-49tgq67gzrbe51uk --- addons/purchase/purchase.py | 4 ++-- addons/sale/sale.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 87f4c3031bb..99b116040d4 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -168,7 +168,7 @@ class purchase_order(osv.osv): 'state': fields.selection([('draft', 'Request for Quotation'), ('wait', 'Waiting'), ('confirmed', 'Waiting Supplier Ack'), ('approved', 'Approved'),('except_picking', 'Shipping Exception'), ('except_invoice', 'Invoice Exception'), ('done', 'Done'), ('cancel', 'Cancelled')], 'State', readonly=True, help="The state of the purchase order or the quotation request. A quotation is a purchase order in a 'Draft' state. Then the order has to be confirmed by the user, the state switch to 'Confirmed'. Then the supplier must confirm the order to change the state to 'Approved'. When the purchase order is paid and received, the state becomes 'Done'. If a cancel action occurs in the invoice or in the reception of goods, the state becomes in exception.", select=True), 'order_line': fields.one2many('purchase.order.line', 'order_id', 'Order Lines', states={'approved':[('readonly',True)],'done':[('readonly',True)]}), 'validator' : fields.many2one('res.users', 'Validated by', readonly=True), - 'notes': fields.text('Notes', translate=True), + 'notes': fields.text('Notes'), 'invoice_id': fields.many2one('account.invoice', 'Invoice', readonly=True), 'picking_ids': fields.one2many('stock.picking', 'purchase_id', 'Picking List', readonly=True, help="This is the list of picking list that have been generated for this purchase"), 'shipped':fields.boolean('Received', readonly=True, select=True), @@ -591,7 +591,7 @@ class purchase_order_line(osv.osv): 'move_dest_id': fields.many2one('stock.move', 'Reservation Destination', ondelete='set null'), 'price_unit': fields.float('Unit Price', required=True, digits_compute= dp.get_precision('Purchase Price')), 'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal', digits_compute= dp.get_precision('Purchase Price')), - 'notes': fields.text('Notes', translate=True), + 'notes': fields.text('Notes'), 'order_id': fields.many2one('purchase.order', 'Order Reference', select=True, required=True, ondelete='cascade'), 'account_analytic_id':fields.many2one('account.analytic.account', 'Analytic Account',), 'company_id': fields.related('order_id','company_id',type='many2one',relation='res.company',string='Company'), diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 4b6c766b671..ec8e084ccc0 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -253,7 +253,7 @@ class sale_order(osv.osv): 'invoiced_rate': fields.function(_invoiced_rate, method=True, string='Invoiced', type='float'), 'invoiced': fields.function(_invoiced, method=True, string='Paid', fnct_search=_invoiced_search, type='boolean'), - 'note': fields.text('Notes', translate=True), + 'note': fields.text('Notes'), 'amount_untaxed': fields.function(_amount_all, method=True, digits_compute= dp.get_precision('Sale Price'), string='Untaxed Amount', store = { @@ -822,7 +822,7 @@ class sale_order_line(osv.osv): 'move_ids': fields.one2many('stock.move', 'sale_line_id', 'Inventory Moves', readonly=True), 'discount': fields.float('Discount (%)', digits=(16, 2), readonly=True, states={'draft':[('readonly',False)]}), 'number_packages': fields.function(_number_packages, method=True, type='integer', string='Number Packages'), - 'notes': fields.text('Notes', translate=True), + 'notes': fields.text('Notes'), 'th_weight': fields.float('Weight'), 'state': fields.selection([('draft', 'Draft'),('confirmed', 'Confirmed'),('done', 'Done'),('cancel', 'Cancelled'),('exception', 'Exception')], 'State', required=True, readonly=True, help=' * The \'Draft\' state is set automatically when sale order in draft state. \