From c9f803ff7441118d9ec58a9bbc605f81db8f5a70 Mon Sep 17 00:00:00 2001 From: "Rajesh Prajapati (OpenERP)" Date: Wed, 19 Dec 2012 12:26:45 +0530 Subject: [PATCH 1/3] [IMP] Account : changed terms as suggested in account module bzr revid: rpr@tinyerp.com-20121219065645-1cffyp8i4lqi083o --- addons/account/account.py | 10 +++++----- addons/account/account_invoice.py | 6 +++--- addons/account/account_menuitem.xml | 2 +- addons/account/account_view.xml | 16 ++++++++-------- addons/account/data/account_data.xml | 2 +- addons/account/demo/account_demo.xml | 2 +- addons/account/partner.py | 4 ++-- addons/account/report/account_invoice_report.py | 2 +- addons/account/report/account_report.py | 2 +- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index a724ebc3cc7..fe52decd9f3 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -56,9 +56,9 @@ def check_cycle(self, cr, uid, ids, context=None): class account_payment_term(osv.osv): _name = "account.payment.term" - _description = "Payment Term" + _description = "Payment Terms" _columns = { - 'name': fields.char('Payment Term', size=64, translate=True, required=True), + 'name': fields.char('Payment Terms', size=64, translate=True, required=True), 'active': fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the payment term without removing it."), 'note': fields.text('Description', translate=True), 'line_ids': fields.one2many('account.payment.term.line', 'payment_id', 'Terms'), @@ -101,7 +101,7 @@ class account_payment_term(osv.osv): class account_payment_term_line(osv.osv): _name = "account.payment.term.line" - _description = "Payment Term Line" + _description = "Payment Terms Line" _columns = { 'value': fields.selection([('procent', 'Percent'), ('balance', 'Balance'), @@ -112,7 +112,7 @@ class account_payment_term_line(osv.osv): 'days': fields.integer('Number of Days', required=True, help="Number of days to add before computation of the day of month." \ "If Date=15/01, Number of Days=22, Day of Month=-1, then the due date is 28/02."), 'days2': fields.integer('Day of the Month', required=True, help="Day of the month, set -1 for the last day of the current month. If it's positive, it gives the day of the next month. Set 0 for net days (otherwise it's based on the beginning of the month)."), - 'payment_id': fields.many2one('account.payment.term', 'Payment Term', required=True, select=True, ondelete='cascade'), + 'payment_id': fields.many2one('account.payment.term', 'Payment Terms', required=True, select=True, ondelete='cascade'), } _defaults = { 'value': 'balance', @@ -128,7 +128,7 @@ class account_payment_term_line(osv.osv): return True _constraints = [ - (_check_percent, 'Percentages for Payment Term Line must be between 0 and 1, Example: 0.02 for 2%.', ['value_amount']), + (_check_percent, 'Percentages for Payment Terms Line must be between 0 and 1, Example: 0.02 for 2%.', ['value_amount']), ] account_payment_term_line() diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 3defd82d0ac..0c2cc2b46a7 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -222,7 +222,7 @@ class account_invoice(osv.osv): help="If you use payment terms, the due date will be computed automatically at the generation "\ "of accounting entries. The payment term may compute several due dates, for example 50% now and 50% in one month, but if you want to force a due date, make sure that the payment term is not set on the invoice. If you keep the payment term and the due date empty, it means direct payment."), 'partner_id': fields.many2one('res.partner', 'Partner', change_default=True, readonly=True, required=True, states={'draft':[('readonly',False)]}), - 'payment_term': fields.many2one('account.payment.term', 'Payment Term',readonly=True, states={'draft':[('readonly',False)]}, + 'payment_term': fields.many2one('account.payment.term', 'Payment Terms',readonly=True, states={'draft':[('readonly',False)]}, help="If you use payment terms, the due date will be computed automatically at the generation "\ "of accounting entries. If you keep the payment term and the due date empty, it means direct payment. "\ "The payment term may compute several due dates, for example 50% now, 50% in one month."), @@ -233,7 +233,7 @@ class account_invoice(osv.osv): 'tax_line': fields.one2many('account.invoice.tax', 'invoice_id', 'Tax Lines', readonly=True, states={'draft':[('readonly',False)]}), 'move_id': fields.many2one('account.move', 'Journal Entry', readonly=True, select=1, ondelete='restrict', help="Link to the automatically generated Journal Items."), - 'amount_untaxed': fields.function(_amount_all, digits_compute=dp.get_precision('Account'), string='Untaxed', + 'amount_untaxed': fields.function(_amount_all, digits_compute=dp.get_precision('Account'), string='Subtotal', store={ 'account.invoice': (lambda self, cr, uid, ids, c={}: ids, ['invoice_line'], 20), 'account.invoice.tax': (_get_invoice_tax, None, 20), @@ -1415,7 +1415,7 @@ class account_invoice_line(osv.osv): 'product_id': fields.many2one('product.product', 'Product', ondelete='set null', select=True), 'account_id': fields.many2one('account.account', 'Account', required=True, domain=[('type','<>','view'), ('type', '<>', 'closed')], help="The income or expense account related to the selected product."), 'price_unit': fields.float('Unit Price', required=True, digits_compute= dp.get_precision('Product Price')), - 'price_subtotal': fields.function(_amount_line, string='Subtotal', type="float", + 'price_subtotal': fields.function(_amount_line, string='Amount', type="float", digits_compute= dp.get_precision('Account'), store=True), 'quantity': fields.float('Quantity', digits_compute= dp.get_precision('Product Unit of Measure'), required=True), 'discount': fields.float('Discount (%)', digits_compute= dp.get_precision('Discount')), diff --git a/addons/account/account_menuitem.xml b/addons/account/account_menuitem.xml index d868043db64..f7bf33476bf 100644 --- a/addons/account/account_menuitem.xml +++ b/addons/account/account_menuitem.xml @@ -12,7 +12,7 @@ - + diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index adf7ac05067..a50b1d4e432 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1548,7 +1548,7 @@ account.payment.term.line.tree account.payment.term.line - + @@ -1560,7 +1560,7 @@ account.payment.term.line.form account.payment.term.line -
+ @@ -1582,8 +1582,8 @@ account.payment.term.search account.payment.term - - + + @@ -1592,7 +1592,7 @@ account.payment.term.form account.payment.term - + @@ -2296,17 +2296,17 @@ - + - + - + diff --git a/addons/account/data/account_data.xml b/addons/account/data/account_data.xml index f8a0fcdfcaa..24b4325020e 100644 --- a/addons/account/data/account_data.xml +++ b/addons/account/data/account_data.xml @@ -38,7 +38,7 @@ - Payment Term + Payment Terms 6 diff --git a/addons/account/demo/account_demo.xml b/addons/account/demo/account_demo.xml index 6918ad44702..9ee821aab0f 100644 --- a/addons/account/demo/account_demo.xml +++ b/addons/account/demo/account_demo.xml @@ -128,7 +128,7 @@ - + 30 Days End of Month diff --git a/addons/account/partner.py b/addons/account/partner.py index 346cc38f5df..c2a8bcfc241 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -221,14 +221,14 @@ class res_partner(osv.osv): 'account.payment.term', type='many2one', relation='account.payment.term', - string ='Customer Payment Term', + string ='Customer Payment Terms', view_load=True, help="This payment term will be used instead of the default one for sale orders and customer invoices"), 'property_supplier_payment_term': fields.property( 'account.payment.term', type='many2one', relation='account.payment.term', - string ='Supplier Payment Term', + string ='Supplier Payment Terms', view_load=True, help="This payment term will be used instead of the default one for purchase orders and supplier invoices"), 'ref_companies': fields.one2many('res.company', 'partner_id', diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py index af6ae1eede7..d98fc336e70 100644 --- a/addons/account/report/account_invoice_report.py +++ b/addons/account/report/account_invoice_report.py @@ -63,7 +63,7 @@ class account_invoice_report(osv.osv): 'product_id': fields.many2one('product.product', 'Product', readonly=True), 'product_qty':fields.float('Qty', readonly=True), 'uom_name': fields.char('Reference Unit of Measure', size=128, readonly=True), - 'payment_term': fields.many2one('account.payment.term', 'Payment Term', readonly=True), + 'payment_term': fields.many2one('account.payment.term', 'Payment Terms', readonly=True), 'period_id': fields.many2one('account.period', 'Force Period', domain=[('state','<>','done')], readonly=True), 'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position', readonly=True), 'currency_id': fields.many2one('res.currency', 'Currency', readonly=True), diff --git a/addons/account/report/account_report.py b/addons/account/report/account_report.py index d6cc784c767..f3a974f09ea 100644 --- a/addons/account/report/account_report.py +++ b/addons/account/report/account_report.py @@ -164,7 +164,7 @@ class report_invoice_created(osv.osv): ],'Type', readonly=True), 'number': fields.char('Invoice Number', size=32, readonly=True), 'partner_id': fields.many2one('res.partner', 'Partner', readonly=True), - 'amount_untaxed': fields.float('Untaxed', readonly=True), + 'amount_untaxed': fields.float('Subtotal', readonly=True), 'amount_total': fields.float('Total', readonly=True), 'currency_id': fields.many2one('res.currency', 'Currency', readonly=True), 'date_invoice': fields.date('Invoice Date', readonly=True), From a728e82a185f4c33d20e37e00fa6941477803269 Mon Sep 17 00:00:00 2001 From: "Rajesh Prajapati (OpenERP)" Date: Wed, 19 Dec 2012 15:26:16 +0530 Subject: [PATCH 2/3] [IMP] Account : changes done bzr revid: rpr@tinyerp.com-20121219095616-nst6mvfh2ky3i10s --- addons/account/account.py | 6 +++--- addons/account/account_view.xml | 14 +++++++------- addons/account/data/account_data.xml | 2 +- addons/account/demo/account_demo.xml | 2 +- addons/account/partner.py | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index fe52decd9f3..469c5b1d838 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -56,7 +56,7 @@ def check_cycle(self, cr, uid, ids, context=None): class account_payment_term(osv.osv): _name = "account.payment.term" - _description = "Payment Terms" + _description = "Payment Term" _columns = { 'name': fields.char('Payment Terms', size=64, translate=True, required=True), 'active': fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the payment term without removing it."), @@ -101,7 +101,7 @@ class account_payment_term(osv.osv): class account_payment_term_line(osv.osv): _name = "account.payment.term.line" - _description = "Payment Terms Line" + _description = "Payment Term Line" _columns = { 'value': fields.selection([('procent', 'Percent'), ('balance', 'Balance'), @@ -128,7 +128,7 @@ class account_payment_term_line(osv.osv): return True _constraints = [ - (_check_percent, 'Percentages for Payment Terms Line must be between 0 and 1, Example: 0.02 for 2%.', ['value_amount']), + (_check_percent, 'Percentages for Payment Term Line must be between 0 and 1, Example: 0.02 for 2%.', ['value_amount']), ] account_payment_term_line() diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index a50b1d4e432..dd58ce4aa69 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1548,7 +1548,7 @@ account.payment.term.line.tree account.payment.term.line - + @@ -1560,7 +1560,7 @@ account.payment.term.line.form account.payment.term.line - + @@ -1582,7 +1582,7 @@ account.payment.term.search account.payment.term - + @@ -1592,7 +1592,7 @@ account.payment.term.form account.payment.term - + @@ -2296,17 +2296,17 @@ - + - + - + diff --git a/addons/account/data/account_data.xml b/addons/account/data/account_data.xml index 24b4325020e..f8a0fcdfcaa 100644 --- a/addons/account/data/account_data.xml +++ b/addons/account/data/account_data.xml @@ -38,7 +38,7 @@ - Payment Terms + Payment Term 6 diff --git a/addons/account/demo/account_demo.xml b/addons/account/demo/account_demo.xml index 9ee821aab0f..6918ad44702 100644 --- a/addons/account/demo/account_demo.xml +++ b/addons/account/demo/account_demo.xml @@ -128,7 +128,7 @@ - + 30 Days End of Month diff --git a/addons/account/partner.py b/addons/account/partner.py index c2a8bcfc241..346cc38f5df 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -221,14 +221,14 @@ class res_partner(osv.osv): 'account.payment.term', type='many2one', relation='account.payment.term', - string ='Customer Payment Terms', + string ='Customer Payment Term', view_load=True, help="This payment term will be used instead of the default one for sale orders and customer invoices"), 'property_supplier_payment_term': fields.property( 'account.payment.term', type='many2one', relation='account.payment.term', - string ='Supplier Payment Terms', + string ='Supplier Payment Term', view_load=True, help="This payment term will be used instead of the default one for purchase orders and supplier invoices"), 'ref_companies': fields.one2many('res.company', 'partner_id', From 4891c7fabf64df044c343c8040c3af1afee4ab68 Mon Sep 17 00:00:00 2001 From: "Rajesh Prajapati (OpenERP)" Date: Wed, 19 Dec 2012 16:27:58 +0530 Subject: [PATCH 3/3] [IMP] Account : changes removed bzr revid: rpr@tinyerp.com-20121219105758-6r4pkmf8buq4dht9 --- addons/account/account.py | 4 ++-- addons/account/account_view.xml | 2 +- addons/account/report/account_invoice_report.py | 2 +- addons/account/report/account_report.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 469c5b1d838..a724ebc3cc7 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -58,7 +58,7 @@ class account_payment_term(osv.osv): _name = "account.payment.term" _description = "Payment Term" _columns = { - 'name': fields.char('Payment Terms', size=64, translate=True, required=True), + 'name': fields.char('Payment Term', size=64, translate=True, required=True), 'active': fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the payment term without removing it."), 'note': fields.text('Description', translate=True), 'line_ids': fields.one2many('account.payment.term.line', 'payment_id', 'Terms'), @@ -112,7 +112,7 @@ class account_payment_term_line(osv.osv): 'days': fields.integer('Number of Days', required=True, help="Number of days to add before computation of the day of month." \ "If Date=15/01, Number of Days=22, Day of Month=-1, then the due date is 28/02."), 'days2': fields.integer('Day of the Month', required=True, help="Day of the month, set -1 for the last day of the current month. If it's positive, it gives the day of the next month. Set 0 for net days (otherwise it's based on the beginning of the month)."), - 'payment_id': fields.many2one('account.payment.term', 'Payment Terms', required=True, select=True, ondelete='cascade'), + 'payment_id': fields.many2one('account.payment.term', 'Payment Term', required=True, select=True, ondelete='cascade'), } _defaults = { 'value': 'balance', diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index dd58ce4aa69..adf7ac05067 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1583,7 +1583,7 @@ account.payment.term - + diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py index d98fc336e70..af6ae1eede7 100644 --- a/addons/account/report/account_invoice_report.py +++ b/addons/account/report/account_invoice_report.py @@ -63,7 +63,7 @@ class account_invoice_report(osv.osv): 'product_id': fields.many2one('product.product', 'Product', readonly=True), 'product_qty':fields.float('Qty', readonly=True), 'uom_name': fields.char('Reference Unit of Measure', size=128, readonly=True), - 'payment_term': fields.many2one('account.payment.term', 'Payment Terms', readonly=True), + 'payment_term': fields.many2one('account.payment.term', 'Payment Term', readonly=True), 'period_id': fields.many2one('account.period', 'Force Period', domain=[('state','<>','done')], readonly=True), 'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position', readonly=True), 'currency_id': fields.many2one('res.currency', 'Currency', readonly=True), diff --git a/addons/account/report/account_report.py b/addons/account/report/account_report.py index f3a974f09ea..d6cc784c767 100644 --- a/addons/account/report/account_report.py +++ b/addons/account/report/account_report.py @@ -164,7 +164,7 @@ class report_invoice_created(osv.osv): ],'Type', readonly=True), 'number': fields.char('Invoice Number', size=32, readonly=True), 'partner_id': fields.many2one('res.partner', 'Partner', readonly=True), - 'amount_untaxed': fields.float('Subtotal', readonly=True), + 'amount_untaxed': fields.float('Untaxed', readonly=True), 'amount_total': fields.float('Total', readonly=True), 'currency_id': fields.many2one('res.currency', 'Currency', readonly=True), 'date_invoice': fields.date('Invoice Date', readonly=True),