[MIG] account_asset_depr_line_cancel: Migration to 10.0

This commit is contained in:
David Vidal
2017-05-19 14:35:32 +02:00
parent e96fb9e05d
commit 37a66ded8f
5 changed files with 16 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ button with a white cross in a red circle that allows to remove that entry.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/92/8.0
:target: https://runbot.odoo-community.org/runbot/92/10.0
Bug Tracker
===========
@@ -36,6 +36,7 @@ Contributors
------------
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
Maintainer
----------

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# (c) 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
# Copyright 2015-2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from . import models

View File

@@ -1,13 +1,11 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
'name': 'Assets Management - Cancel button',
'version': '8.0.1.0.0',
'depends': [
'account_asset',
],
'version': '10.0.1.0.0',
'author': "Tecnativa, "
"Odoo Community Association (OCA)",
'website': 'http://www.serviciosbaeza.com',
@@ -17,6 +15,9 @@
'data': [
'views/account_asset_asset_view.xml',
],
'depends': [
'account_asset',
],
'installable': True,
'license': 'AGPL-3',
}

View File

@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from openerp import models, api
from odoo import models, api
class AccountAssetDepreciationLine(models.Model):

View File

@@ -1,5 +1,5 @@
<openerp>
<data>
<odoo>
<record model="ir.ui.view" id="view_account_asset_asset_form">
<field name="name">Account Asset Form (cancel button)</field>
<field name="model">account.asset.asset</field>
@@ -11,7 +11,8 @@
<button name="create_move" position="after">
<field name="move_id" invisible="1"/>
<button name="unlink_move"
icon="gtk-cancel"
icon="fa-times-circle text-danger"
class="text-danger"
string="Delete Move"
type="object"
confirm="Are you sure?"
@@ -21,5 +22,5 @@
</button>
</field>
</record>
</data>
</openerp>
</odoo>