diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 8fca640bdf7..bd07994bf29 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1568,7 +1568,7 @@ - + @@ -1587,7 +1587,7 @@ - + diff --git a/addons/account/report/account_analytic_entries_report.py b/addons/account/report/account_analytic_entries_report.py index ec813b8ecd8..aa0c5b3ba99 100644 --- a/addons/account/report/account_analytic_entries_report.py +++ b/addons/account/report/account_analytic_entries_report.py @@ -38,7 +38,7 @@ class analytic_entries_report(osv.osv): 'partner_id': fields.many2one('res.partner', 'Partner'), 'company_id': fields.many2one('res.company', 'Company', required=True), 'currency_id': fields.many2one('res.currency', 'Currency', required=True), - 'account_id': fields.many2one('account.analytic.account', 'Account', required=True), + 'account_id': fields.many2one('account.analytic.account', 'Account', required=False), 'general_account_id': fields.many2one('account.account', 'General Account', required=True), 'journal_id': fields.many2one('account.analytic.journal', 'Journal', required=True), 'move_id': fields.many2one('account.move.line', 'Move', required=True), diff --git a/addons/account/report/account_analytic_entries_report_view.xml b/addons/account/report/account_analytic_entries_report_view.xml index da08d56af0d..a131400948b 100644 --- a/addons/account/report/account_analytic_entries_report_view.xml +++ b/addons/account/report/account_analytic_entries_report_view.xml @@ -16,7 +16,7 @@ - + @@ -49,7 +49,7 @@ help="Analytic Entries during last 7 days"/> - + @@ -63,7 +63,7 @@ - + @@ -72,7 +72,7 @@ - + diff --git a/addons/account_analytic_default/account_analytic_default_view.xml b/addons/account_analytic_default/account_analytic_default_view.xml index 95a39eb11e6..179c9da45ec 100644 --- a/addons/account_analytic_default/account_analytic_default_view.xml +++ b/addons/account_analytic_default/account_analytic_default_view.xml @@ -8,7 +8,7 @@ - + @@ -25,7 +25,7 @@ form
- + @@ -44,7 +44,7 @@ search - + @@ -68,7 +68,7 @@ src_model="account.account" context="{'search_default_account_id': [active_id]}" /> - + - + @@ -153,7 +153,7 @@ - + @@ -210,7 +210,7 @@
- + @@ -226,7 +226,7 @@ - + diff --git a/addons/account_analytic_plans/wizard/account_crossovered_analytic.py b/addons/account_analytic_plans/wizard/account_crossovered_analytic.py index 2429650a800..97df80e23fc 100644 --- a/addons/account_analytic_plans/wizard/account_crossovered_analytic.py +++ b/addons/account_analytic_plans/wizard/account_crossovered_analytic.py @@ -30,7 +30,7 @@ class account_crossovered_analytic(osv.osv_memory): 'date1': fields.date('Start Date', required=True), 'date2': fields.date('End Date', required=True), 'journal_ids': fields.many2many('account.analytic.journal', 'crossovered_journal_rel', 'crossover_id', 'journal_id', 'Analytic Journal'), - 'ref': fields.many2one('account.analytic.account', 'Analytic Account Reference', required=True), + 'ref': fields.many2one('account.analytic.account', 'Analytic Account Reference', required=False), 'empty_line': fields.boolean('Dont show empty lines'), } _defaults = { diff --git a/addons/account_analytic_plans/wizard/account_crossovered_analytic_view.xml b/addons/account_analytic_plans/wizard/account_crossovered_analytic_view.xml index bdf915d9f98..6c496e18267 100644 --- a/addons/account_analytic_plans/wizard/account_crossovered_analytic_view.xml +++ b/addons/account_analytic_plans/wizard/account_crossovered_analytic_view.xml @@ -12,7 +12,7 @@ - + diff --git a/addons/account_budget/account_budget.py b/addons/account_budget/account_budget.py index 99c90badf60..74bc4dba3a2 100644 --- a/addons/account_budget/account_budget.py +++ b/addons/account_budget/account_budget.py @@ -238,7 +238,7 @@ class crossovered_budget_lines(osv.osv): _description = "Budget Line" _columns = { 'crossovered_budget_id': fields.many2one('crossovered.budget', 'Budget', ondelete='cascade', select=True, required=True), - 'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account',required=True), + 'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account',required=False), 'general_budget_id': fields.many2one('account.budget.post', 'Budgetary Position',required=True), 'date_from': fields.date('Start Date', required=True), 'date_to': fields.date('End Date', required=True), diff --git a/addons/account_budget/account_budget_view.xml b/addons/account_budget/account_budget_view.xml index 99083d097b6..d6c4b82e960 100644 --- a/addons/account_budget/account_budget_view.xml +++ b/addons/account_budget/account_budget_view.xml @@ -77,13 +77,13 @@ - + - + @@ -94,7 +94,7 @@ - + @@ -125,7 +125,7 @@ - + @@ -136,7 +136,7 @@ - + @@ -213,7 +213,7 @@ tree - + @@ -232,7 +232,7 @@ - + diff --git a/addons/auction/auction.py b/addons/auction/auction.py index 834e7e9b150..c5d1c0fa89f 100644 --- a/addons/auction/auction.py +++ b/addons/auction/auction.py @@ -64,7 +64,7 @@ class auction_dates(osv.osv): reads = self.read(cr, uid, ids, ['name', 'auction1'], context) name = [(r['id'], '['+r['auction1']+'] '+ r['name']) for r in reads] return name - + def _get_invoice(self, cr, uid, ids, name, arg, context={}): lots_obj = self.pool.get('auction.lots') result = {} @@ -100,7 +100,7 @@ class auction_dates(osv.osv): 'adj_total': fields.function(_adjudication_get, method=True, string='Total Adjudication', store=True), 'state': fields.selection((('draft', 'Draft'), ('closed', 'Closed')), 'State', select=1, readonly=True, help='When auction starts the state is \'Draft\'.\n At the end of auction, the state becomes \'Closed\'.'), - 'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account', required=True), + 'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account', required=False), 'buyer_invoice_history': fields.function(_get_invoice, relation='account.invoice', method=True, string="Buyer Invoice", type='many2many', multi=True), 'seller_invoice_history': fields.function(_get_invoice, relation='account.invoice', method=True, string="Seller Invoice", type='many2many', multi=True), } @@ -621,14 +621,14 @@ class auction_lots(osv.osv): taxes.append(lot.author_right.id) inv_line= { - 'invoice_id': inv_id, - 'quantity': 1, - 'product_id': lot.product_id.id, - 'name': 'proforma'+'['+str(lot.obj_num)+'] '+ lot.name, - 'invoice_line_tax_id': [(6, 0, taxes)], - 'account_analytic_id': lot.auction_id.account_analytic_id.id, - 'account_id': lot.auction_id.acc_income.id, - 'price_unit': lot.obj_price, + 'invoice_id': inv_id, + 'quantity': 1, + 'product_id': lot.product_id.id, + 'name': 'proforma'+'['+str(lot.obj_num)+'] '+ lot.name, + 'invoice_line_tax_id': [(6, 0, taxes)], + 'account_analytic_id': lot.auction_id.account_analytic_id.id, + 'account_id': lot.auction_id.acc_income.id, + 'price_unit': lot.obj_price, } inv_line_obj.create(cr, uid, inv_line, context) inv_ref.button_compute(cr, uid, invoices.values()) diff --git a/addons/auction/auction_view.xml b/addons/auction/auction_view.xml index c3068753a6e..3c8cb5c0278 100644 --- a/addons/auction/auction_view.xml +++ b/addons/auction/auction_view.xml @@ -134,7 +134,7 @@ - + diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml index 79c0d5513f0..41f87a991c3 100644 --- a/addons/hr_expense/hr_expense_view.xml +++ b/addons/hr_expense/hr_expense_view.xml @@ -13,7 +13,7 @@ - + @@ -30,8 +30,8 @@ - - + + @@ -98,7 +98,7 @@