diff --git a/addons/account/account.py b/addons/account/account.py index 329ae2579e2..33002de6b2d 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -580,7 +580,7 @@ class account_journal(osv.osv): _name = "account.journal" _description = "Journal" _columns = { - 'name': fields.char('Journal Name', size=64, required=True, translate=True), + 'name': fields.char('Journal Name', size=64, required=True), 'code': fields.char('Code', size=5, required=True, help="The code will be used to generate the numbers of the journal entries of this journal."), 'type': fields.selection([('sale', 'Sale'),('sale_refund','Sale Refund'), ('purchase', 'Purchase'), ('purchase_refund','Purchase Refund'), ('cash', 'Cash'), ('bank', 'Bank and Cheques'), ('general', 'General'), ('situation', 'Opening/Closing Situation')], 'Type', size=32, required=True, help="Select 'Sale' for Sale journal to be used at the time of making invoice."\ diff --git a/addons/account/report/account_entries_report.py b/addons/account/report/account_entries_report.py index 80065880ad9..e80cb290889 100644 --- a/addons/account/report/account_entries_report.py +++ b/addons/account/report/account_entries_report.py @@ -94,7 +94,7 @@ class account_entries_report(osv.osv): return super(account_entries_report, self).search(cr, uid, args=args, offset=offset, limit=limit, order=order, context=context, count=count) - def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): + def read_group(self, cr, uid, domain, *args, **kwargs): todel=[] fiscalyear_obj = self.pool.get('account.fiscalyear') period_obj = self.pool.get('account.period') @@ -112,7 +112,7 @@ class account_entries_report(osv.osv): for a in [['period_id','in','current_year'], ['period_id','in','current_period']]: if a in domain: domain.remove(a) - return super(account_entries_report, self).read_group(cr, uid, domain, fields, groupby, offset, limit, context) + return super(account_entries_report, self).read_group(cr, uid, domain, *args, **kwargs) def init(self, cr): tools.drop_view_if_exists(cr, 'account_entries_report') diff --git a/addons/account/report/account_print_invoice.rml b/addons/account/report/account_print_invoice.rml index 6e67879d81c..80ccd2aabae 100644 --- a/addons/account/report/account_print_invoice.rml +++ b/addons/account/report/account_print_invoice.rml @@ -131,32 +131,20 @@ - - - - - Description - - - Taxes - - - Quantity - - - Unit Price - - - Disc.(%) - - - Price - - - - [[ repeatIn(objects,'o') ]] [[ setLang(o.partner_id.lang) ]] + + + + Description + Taxes + Quantity + Unit Price + Disc.(%) + Price + + + diff --git a/addons/account_followup/report/account_followup_report.py b/addons/account_followup/report/account_followup_report.py index ba0756f5c49..878f44ced30 100644 --- a/addons/account_followup/report/account_followup_report.py +++ b/addons/account_followup/report/account_followup_report.py @@ -55,14 +55,14 @@ class account_followup_stat(osv.osv): return super(account_followup_stat, self).search(cr, uid, args=args, offset=offset, limit=limit, order=order, context=context, count=count) - def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): + def read_group(self, cr, uid, domain, *args, **kwargs): for arg in domain: if arg[0] == 'period_id' and arg[2] == 'current_year': current_year = self.pool.get('account.fiscalyear').find(cr, uid) ids = self.pool.get('account.fiscalyear').read(cr, uid, [current_year], ['period_ids'])[0]['period_ids'] domain.append(['period_id','in',ids]) domain.remove(arg) - return super(account_followup_stat, self).read_group(cr, uid, domain, fields, groupby, offset, limit, context) + return super(account_followup_stat, self).read_group(cr, uid, domain, *args, **kwargs) def init(self, cr): tools.drop_view_if_exists(cr, 'account_followup_stat') diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 290ad0d4587..2812b45a1b5 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -117,7 +117,7 @@ - + diff --git a/addons/sale_margin/sale_margin.py b/addons/sale_margin/sale_margin.py index fdf7eaf69e4..cd327834185 100644 --- a/addons/sale_margin/sale_margin.py +++ b/addons/sale_margin/sale_margin.py @@ -76,16 +76,16 @@ class stock_picking(osv.osv): 'invoice_ids': fields.many2many('account.invoice', 'picking_invoice_rel', 'picking_id', 'invoice_id', 'Invoices', domain=[('type', '=', 'out_invoice')]), } - def create_invoice(self, cr, uid, ids, *args): + def action_invoice_create(self, cr, uid, ids, journal_id=False, + group=False, type='out_invoice', context=None): # need to carify with new requirement invoice_ids = [] - margin_deduce = 0.0 picking_obj = self.pool.get('stock.picking') - picking_obj.write(cr, uid, ids, {'invoice_state': '2binvoiced'}) - res = picking_obj.action_invoice_create(cr, uid, ids, type='out_invoice', context={}) + res = super(stock_picking, self).action_invoice_create(cr, uid, ids, journal_id=False, + group=False, type='out_invoice', context=None) invoice_ids = res.values() picking_obj.write(cr, uid, ids, {'invoice_ids': [[6, 0, invoice_ids]]}) - return True + return res stock_picking() diff --git a/addons/sale_margin/sale_margin_view.xml b/addons/sale_margin/sale_margin_view.xml index 47cbe4c2878..201dd12d7a0 100644 --- a/addons/sale_margin/sale_margin_view.xml +++ b/addons/sale_margin/sale_margin_view.xml @@ -2,84 +2,80 @@ - - sale.order.margin.view.form - form - sale.order - - - - - - - - - - sale.order.line.margin.view.form - form - sale.order - - - - - - - - - - sale.order.line.tree.margin.view.form - form - sale.order - - - - - - - - - - sale.order.margin.view.tree - tree - sale.order - - - - - - - - - - sale.order.margin.line.view.tree - tree - sale.order.line - - - - - - - - + + sale.order.margin.view.form + form + sale.order + + + + + + + + + + sale.order.line.margin.view.form + form + sale.order + + + + + + + + + + sale.order.line.tree.margin.view.form + form + sale.order + + + + + + + + + + sale.order.margin.view.tree + tree + sale.order + + + + + + + + + + sale.order.margin.line.view.tree + tree + sale.order.line + + + + + + + + + + + picking.margin.view.form + form + stock.picking + + + + + + + + + - - picking.margin.view.form - form - stock.picking - - - - - - -