diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 13c6464f888..818bfef978e 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -240,6 +240,8 @@ class account_cash_statement(osv.osv): } def create(self, cr, uid, vals, context=None): + if 'journal_id' not in vals: + raise osv.except_osv('Error', _('You cannot create a bank or cash register without a journal!')) sql = [ ('journal_id', '=', vals.get('journal_id', False)), ('state', '=', 'open') @@ -326,8 +328,8 @@ class account_cash_statement(osv.osv): statement_pool = self.pool.get('account.bank.statement') for statement in statement_pool.browse(cr, uid, ids, context=context): vals = {} - - if not self._user_allow(cr, uid, statement.id, context=context): + force_allow = context.get('force_allow',False) + if not force_allow and not self._user_allow(cr, uid, statement.id, context=context): raise osv.except_osv(_('Error !'), _('User %s does not have rights to access %s journal !' % (statement.user_id.name, statement.journal_id.name))) if statement.name and statement.name == '/': diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 83e82a279b1..44ebafb9bbd 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -380,7 +380,6 @@ class account_invoice(osv.osv): raise orm.except_orm(_('Configuration Error!'), _('There is no Accounting Journal of type Sale/Purchase defined!')) else: - raise raise orm.except_orm(_('UnknownError'), str(e)) def confirm_paid(self, cr, uid, ids, context=None): @@ -1656,3 +1655,5 @@ class res_partner(osv.osv): } res_partner() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml index e2f0bdf5709..22e0221ac8b 100644 --- a/addons/account/project/project_view.xml +++ b/addons/account/project/project_view.xml @@ -16,6 +16,7 @@ + diff --git a/addons/account/test/account_cash_statement.yml b/addons/account/test/account_cash_statement.yml index 03d0d54db83..67e6d4d2607 100644 --- a/addons/account/test/account_cash_statement.yml +++ b/addons/account/test/account_cash_statement.yml @@ -26,7 +26,7 @@ I clicked on Open CashBox button to open the cashbox - !python {model: account.bank.statement}: | - self.button_open(cr, uid, [ref("account_bank_statement_1")], {"lang": "en_US", "tz": False, "active_model": "account.bank.statement", "active_ids": [ref("account_bank_statement_1")], "active_id": ref("account_bank_statement_1"), }) + self.button_open(cr, uid, [ref("account_bank_statement_1")], {"force_allow":True, "lang": "en_US", "tz": False, "active_model": "account.bank.statement", "active_ids": [ref("account_bank_statement_1")], "active_id": ref("account_bank_statement_1"), }) - I check that now bank statement is in the "Open" state diff --git a/addons/account_coda/i18n/el.po b/addons/account_coda/i18n/el.po index c5e8af09286..48a3ab5184c 100644 --- a/addons/account_coda/i18n/el.po +++ b/addons/account_coda/i18n/el.po @@ -103,11 +103,7 @@ msgstr "Δημιουργημένος τραπεζικός λογαριασμός #: model:ir.actions.act_window,name:account_coda.act_account_payment_account_bank_statement #: model:ir.actions.act_window,name:account_coda.action_account_coda msgid "Coda import" -<<<<<<< TREE -msgstr "" -======= msgstr "Εισαγωγή Coda" ->>>>>>> MERGE-SOURCE #. module: account_coda #: field:account.coda,user_id:0 @@ -122,11 +118,7 @@ msgstr "Λανθασμένο XML για αρχιτεκτονική όψης!" #. module: account_coda #: model:ir.model,name:account_coda.model_account_coda msgid "coda for an Account" -<<<<<<< TREE -msgstr "" -======= msgstr "coda για εναν λογαριασμό" ->>>>>>> MERGE-SOURCE #. module: account_coda #: wizard_field:account.coda_import,init,def_payable:0 @@ -136,20 +128,12 @@ msgstr "Προεπιλεγμένος λογαριασμός πληρωμής" #. module: account_coda #: model:ir.ui.menu,name:account_coda.menu_account_coda msgid "Coda Statements" -<<<<<<< TREE -msgstr "" -======= msgstr "Λογαριασμοί Coda" ->>>>>>> MERGE-SOURCE #. module: account_coda #: model:ir.ui.menu,name:account_coda.menu_account_coda_wizard msgid "Import Coda Statements" -<<<<<<< TREE -msgstr "" -======= msgstr "Εισαγωγή λογαριασμών Coda" ->>>>>>> MERGE-SOURCE #. module: account_coda #: wizard_button:account.coda_import,init,extraction:0 @@ -160,20 +144,12 @@ msgstr "_Εντάξει" #: wizard_view:account.coda_import,extraction:0 #: wizard_view:account.coda_import,init:0 msgid "Import Coda Statement" -<<<<<<< TREE -msgstr "" -======= msgstr "Εισαγωγή λογαριασμών Coda" ->>>>>>> MERGE-SOURCE #. module: account_coda #: field:account.bank.statement,coda_id:0 msgid "Coda" -<<<<<<< TREE -msgstr "" -======= msgstr "Coda" ->>>>>>> MERGE-SOURCE #. module: account_coda #: wizard_view:account.coda_import,extraction:0 diff --git a/addons/association/profile_association.xml b/addons/association/profile_association.xml index d5a5baab946..7b9ddb4ebc3 100644 --- a/addons/association/profile_association.xml +++ b/addons/association/profile_association.xml @@ -54,7 +54,6 @@ - diff --git a/addons/auction/report/buyer_form_report.py b/addons/auction/report/buyer_form_report.py index 2de994050d0..ceffc87e557 100644 --- a/addons/auction/report/buyer_form_report.py +++ b/addons/auction/report/buyer_form_report.py @@ -44,7 +44,7 @@ class buyer_form_report(report_sxw.rml_parse): taxes.append(lot.author_right) if lot.auction_id: taxes += lot.auction_id.buyer_costs - tax=self.pool.get('account.tax').compute(self.cr, self.uid, taxes, lot.obj_price, 1) + tax=self.pool.get('account.tax').compute_all(self.cr, self.uid, taxes, lot.obj_price, 1) for t in tax: amount+=t['amount'] return amount diff --git a/addons/auction/report/seller_form_report.py b/addons/auction/report/seller_form_report.py index d033720d615..5a67d5be51a 100644 --- a/addons/auction/report/seller_form_report.py +++ b/addons/auction/report/seller_form_report.py @@ -35,7 +35,7 @@ class seller_form_report(report_sxw.rml_parse): 'sum_taxes': self.sum_taxes, 'sellerinfo' : self.seller_info, 'grand_total' : self.grand_seller_total, -}) + }) def sum_taxes(self, lot): @@ -45,7 +45,7 @@ class seller_form_report(report_sxw.rml_parse): taxes.append(lot.bord_vnd_id.tax_id) elif lot.auction_id and lot.auction_id.seller_costs: taxes += lot.auction_id.seller_costs - tax=self.pool.get('account.tax').compute(self.cr, self.uid, taxes, lot.obj_price, 1) + tax=self.pool.get('account.tax').compute_all(self.cr, self.uid, taxes, lot.obj_price, 1) for t in tax: amount+=t['amount'] return amount diff --git a/addons/auction/security/ir.model.access.csv b/addons/auction/security/ir.model.access.csv index 5458e6c2ac3..94c9c1f83aa 100644 --- a/addons/auction/security/ir.model.access.csv +++ b/addons/auction/security/ir.model.access.csv @@ -1,11 +1,13 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_auction_artists","auction.artists","model_auction_artists","group_auction_manager",1,1,1,1 +"access_auction_dates_user","auction.dates user","model_auction_dates","group_auction_user",1,0,0,0 "access_auction_dates_manager","auction.dates manager","model_auction_dates","group_auction_manager",1,1,1,1 "access_auction_deposit_manager","auction.deposit manager","model_auction_deposit","group_auction_manager",1,1,1,1 +"access_auction_deposit_user","auction.deposit user","model_auction_deposit","group_auction_user",1,0,0,0 "access_auction_deposit_cost","auction.deposit.cost","model_auction_deposit_cost","group_auction_manager",1,1,1,1 "access_auction_lot_category","auction.lot.category","model_auction_lot_category","group_auction_user",1,0,0,0 "access_auction_lot_category_manager","auction.lot.category manager","model_auction_lot_category","group_auction_manager",1,1,1,1 -"access_auction_lots","auction.lots","model_auction_lots","group_auction_user",1,1,1,1 +"access_auction_lots","auction.lots","model_auction_lots","group_auction_user",1,1,1,0 "access_auction_lots_manager","auction.lots manager","model_auction_lots","group_auction_manager",1,0,0,0 "access_auction_bid","auction.bid","model_auction_bid","group_auction_user",1,1,1,1 "access_auction_bid_manager","auction.bid manager","model_auction_bid","group_auction_manager",1,0,0,0 @@ -18,6 +20,7 @@ "access_report_auction_adjudication","report.auction.adjudication","model_report_auction_adjudication","group_auction_manager",1,1,1,1 "access_report_object_encoded","report.object.encoded","model_report_object_encoded","group_auction_manager",1,1,1,1 "access_aie_category","aie.category","model_aie_category","group_auction_manager",1,1,1,1 +"access_auction_account_tax_user","account.tax user","account.model_account_tax","group_auction_user",1,0,0,0 "access_auction_account_tax","account.tax manager","account.model_account_tax","group_auction_manager",1,1,1,0 "access_auction_account_fiscalyear","account.fiscalyear manager","account.model_account_fiscalyear","group_auction_manager",1,1,1,0 "access_auction_account_journal","account.journal manager","account.model_account_journal","group_auction_manager",1,1,1,0 diff --git a/addons/base_calendar/test/base_calendar_test.yml b/addons/base_calendar/test/base_calendar_test.yml index a9a1c039e62..8c5f7acaaa5 100644 --- a/addons/base_calendar/test/base_calendar_test.yml +++ b/addons/base_calendar/test/base_calendar_test.yml @@ -27,8 +27,8 @@ I will search for one of the recurrent event and count the number of events - !python {model: calendar.event}: | - ids = self.search(cr, uid, [('date', '>=', '2010-05-01 00:00:00'), ('date', '<=', '2010-05-31 00:00:00')] ) - assert len(ids) == 9 + ids = self.search(cr, uid, [('date', '>=', '2010-04-30 16:00:00'), ('date', '<=', '2010-05-31 00:00:00')] ) + assert len(ids) == 10 - | Now I will make All day event and test it - diff --git a/addons/caldav/caldav_view.xml b/addons/caldav/caldav_view.xml index 97656a954ad..6238ee1441d 100644 --- a/addons/caldav/caldav_view.xml +++ b/addons/caldav/caldav_view.xml @@ -2,67 +2,65 @@ - Calendar Collections : Form - document.directory - form - -
- - - - - - -
- - Calendar Collections : Tree - document.directory - tree - - - - - - - - - + Calendar Collections : Form + document.directory + form + +
+ + + + + + + - - Calendar Collections - ir.actions.act_window - document.directory - form - tree,form - [('calendar_collection','=',True)] - + + Calendar Collections : Tree + document.directory + tree + + + + + + + + + - - [('calendar_collection','=',False)] - + + Calendar Collections + ir.actions.act_window + document.directory + form + tree,form + [('calendar_collection','=',True)] + - - - tree - - - - - - form - - - + + [('calendar_collection','=',False)] + - + + + tree + + + - + + + form + + + + + + + Calendar : Form @@ -100,7 +98,7 @@ - + @@ -118,45 +116,64 @@ - - Calendar : Tree - basic.calendar - tree - - - - - - - - - - + + Calendar : Tree + basic.calendar + tree + + + + + + + + + + - - Calendars - ir.actions.act_window - basic.calendar - form - tree,form - + + Calendar: Search + basic.calendar + search + + + + + + + + + + + + + + + - - - tree - - - - - - form - - - + + Calendars + ir.actions.act_window + basic.calendar + form + tree,form + + + + + tree + + + + + + form + + + + + -
diff --git a/addons/crm/board_crm_statistical_view.xml b/addons/crm/board_crm_statistical_view.xml index bd952d9e9ba..ae76031ecc0 100644 --- a/addons/crm/board_crm_statistical_view.xml +++ b/addons/crm/board_crm_statistical_view.xml @@ -48,7 +48,7 @@ form graph,tree,form - [('state','!=','done'),('state','!=','cancel')] + [('state', 'not in', ('done', 'cancel')), ('type', '=', 'opportunity')] @@ -56,7 +56,7 @@ form graph,tree,form - [('state','!=','done'),('state','!=','cancel')] + [('state', 'not in', ('done', 'cancel')), ('type', '=', 'opportunity')] diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index 975e8d33bec..8175dd20da6 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -325,7 +325,7 @@ - - -