diff --git a/addons/account/account.py b/addons/account/account.py index 6d074beb646..6c11bd2439a 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2541,8 +2541,8 @@ class wizard_multi_charts_accounts(osv.osv_memory): 'bank_accounts_id': fields.one2many('account.bank.accounts.wizard', 'bank_account_id', 'Bank Accounts', required=True), 'code_digits':fields.integer('# of Digits', required=True, help="No. of Digits to use for account code"), 'seq_journal':fields.boolean('Separated Journal Sequences', help="Check this box if you want to use a different sequence for each created journal. Otherwise, all will use the same sequence."), - "sale_tax": fields.many2one("account.tax.template", "Sale Tax"), - "purchase_tax": fields.many2one("account.tax.template", "Purchase Tax"), + "sale_tax": fields.many2one("account.tax.template", "Default Sale Tax"), + "purchase_tax": fields.many2one("account.tax.template", "Default Purchase Tax"), } def onchange_chart_template_id(self, cr, uid, ids, chart_template_id=False, context=None): res = {} @@ -2550,12 +2550,12 @@ class wizard_multi_charts_accounts(osv.osv_memory): res['value']["sale_tax"] = False res['value']["purchase_tax"] = False if chart_template_id: - ids = self.pool.get('account.tax.template').search(cr, uid, [("chart_template_id" - , "=", chart_template_id)], order="sequence") - if len(ids) > 0: - id=ids[0] - res['value']["sale_tax"] = id - res['value']["purchase_tax"] = id + sale_tax_ids = self.pool.get('account.tax.template').search(cr, uid, [("chart_template_id" + , "=", chart_template_id), ('type_tax_use', 'in', ('sale','all'))], order="sequence") + purchase_tax_ids = self.pool.get('account.tax.template').search(cr, uid, [("chart_template_id" + , "=", chart_template_id), ('type_tax_use', 'in', ('purchase','all'))], order="sequence") + res['value']["sale_tax"] = sale_tax_ids and sale_tax_ids[0] or False + res['value']["purchase_tax"] = purchase_tax_ids and purchase_tax_ids[0] or False return res def _get_chart(self, cr, uid, context={}): diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index a92ca3b3bb9..acbe5071088 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2419,8 +2419,8 @@ - - + +
@@ -2467,7 +2467,7 @@ action = self.pool.get('res.config').next(cr, uid, [], context) New Company Financial Setting - STOCK_JUSTIFY_FILL + STOCK_EXECUTE diff --git a/addons/fetchmail/fetchmail_view.xml b/addons/fetchmail/fetchmail_view.xml index 1d0cf21be08..7f751f7c5a2 100644 --- a/addons/fetchmail/fetchmail_view.xml +++ b/addons/fetchmail/fetchmail_view.xml @@ -128,8 +128,8 @@ form tree,form - {'type':'imap'} - [('type','=','imap')] + {'server_type':'imap'} + [('server_type','=','imap')] form tree,form - {'type':'pop'} - [('type','=','pop')] + {'server_type':'pop'} + [('server_type','=','pop')] - - - htmlform - html.view - form - - - -

This is Test Html Page

- - - - - - - -
- Name : - - - - Company : - - -
- - - - -
- - Html Test - ir.actions.act_window - html.view - form - - -
+ + + htmlform + html.view + form + +
+ +

This is Test Html Page

+ + + + + + + +
+ Name : + + + + Company : + + +
+ + + +
+
+ + Html Test + ir.actions.act_window + html.view + form + + +
\ No newline at end of file diff --git a/addons/pad/__openerp__.py b/addons/pad/__openerp__.py index 4b5e3ca959e..01d2e3f0c1c 100644 --- a/addons/pad/__openerp__.py +++ b/addons/pad/__openerp__.py @@ -11,7 +11,7 @@ company customize which Pad installation should be used to link to new pads 'author': 'OpenERP SA', 'website': 'http://openerp.com', 'depends': ['base'], - 'update_xml': [ + 'data': [ 'company_pad.xml' ], 'installable': True, diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 3145979d7b0..5291df7d258 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -297,10 +297,10 @@ class purchase_order(osv.osv): managers.append(manager.id) for manager_id in managers: request.create(cr, uid,{ - 'name' : "Purchase amount over the limit", + 'name' : _("Purchase amount over the limit"), 'act_from' : uid, 'act_to' : manager_id, - 'body': 'Somebody has just confirmed a purchase with an amount over the defined limit', + 'body': _('Somebody has just confirmed a purchase with an amount over the defined limit'), 'ref_partner_id': po.partner_id.id, 'ref_doc1': 'purchase.order,%d' % (po.id,), }) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 18317f2cff1..fbb05024c29 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -41,7 +41,7 @@ parent="base.menu_purchase_root" sequence="4"/> + groups="base.group_extended"/> @@ -147,8 +147,7 @@