diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 3442e914634..a3146d9456d 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -236,7 +236,7 @@ class account_invoice(osv.osv): 'reference': fields.char('Invoice Reference', size=64, help="The partner reference of this invoice."), 'reference_type': fields.selection(_get_reference_type, 'Reference Type', required=True), - 'comment': fields.text('Additional Information'), + 'comment': fields.text('Additional Information', translate=True), 'state': fields.selection([ ('draft','Draft'), @@ -1093,7 +1093,7 @@ class account_invoice_line(osv.osv): 'quantity': fields.float('Quantity', required=True), 'discount': fields.float('Discount (%)', digits=(16, int(config['price_accuracy']))), 'invoice_line_tax_id': fields.many2many('account.tax', 'account_invoice_line_tax', 'invoice_line_id', 'tax_id', 'Taxes', domain=[('parent_id','=',False)]), - 'note': fields.text('Notes'), + 'note': fields.text('Notes', translate=True), 'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account'), 'company_id': fields.related('invoice_id','company_id',type='many2one',relation='res.company',string='Company',store=True) } diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 1e11a532738..3d344dc17f8 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -166,7 +166,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)]}), 'validator' : fields.many2one('res.users', 'Validated by', readonly=True), - 'notes': fields.text('Notes'), + 'notes': fields.text('Notes', translate=True), '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), @@ -453,7 +453,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=(16, int(config['price_accuracy']))), 'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal', digits=(16, int(config['price_accuracy']))), - 'notes': fields.text('Notes'), + 'notes': fields.text('Notes', translate=True), '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 2f79f8a2a08..5389c944b73 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -230,7 +230,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'), + 'note': fields.text('Notes', translate=True), 'amount_untaxed': fields.function(_amount_all, method=True, digits=(16, int(config['price_accuracy'])), string='Untaxed Amount', store = { @@ -773,7 +773,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)), 'number_packages': fields.function(_number_packages, method=True, type='integer', string='Number Packages'), - 'notes': fields.text('Notes'), + 'notes': fields.text('Notes', translate=True), '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. \