-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] Migration of account_analytic_project to version 10.0
- Loading branch information
1 parent
6411927
commit 9010279
Showing
10 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
account_analytic_project/tests/test_account_analytic_project.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 34 additions & 39 deletions
73
account_analytic_project/view/account_analytic_account.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
<record id="account_analytic_account_form" model="ir.ui.view"> | ||
<field name="name">account.analytic.account.form.add_project_button</field> | ||
<field name="model">account.analytic.account</field> | ||
<field | ||
name="inherit_id" | ||
ref="analytic.view_account_analytic_account_form" | ||
/> | ||
<field name="arch" type="xml"> | ||
<div name="buttons" position="inside"> | ||
<field name="project_ids" invisible="1" /> | ||
<button | ||
name="create_project_for_account" | ||
type="object" | ||
class="oe_stat_button" | ||
icon="fa-plus" | ||
string="Create project" | ||
attrs="{'invisible': [ | ||
'|', ('project_ids', '!=', []), | ||
('type', '=', 'view'), | ||
]}" | ||
/> | ||
<button | ||
name="view_projects_for_account" | ||
type="object" | ||
class="oe_stat_button" | ||
icon="fa-tasks" | ||
string="View projects" | ||
attrs="{'invisible': [ | ||
'|', ('project_ids', '=', []), | ||
('type', '=', 'view'), | ||
]}" | ||
/> | ||
</div> | ||
</field> | ||
</record> | ||
</data> | ||
</openerp> | ||
<odoo> | ||
<record id="account_analytic_account_form" model="ir.ui.view"> | ||
<field name="name">account.analytic.account.form.add_project_button</field> | ||
<field name="model">account.analytic.account</field> | ||
<field name="inherit_id" ref="analytic.view_account_analytic_account_form" /> | ||
<field name="arch" type="xml"> | ||
<div name="button_box" position="inside"> | ||
<field name="project_ids" invisible="1" /> | ||
<button | ||
name="create_project_for_account" | ||
type="object" | ||
class="oe_stat_button" | ||
icon="fa-plus" | ||
string="Create project" | ||
attrs="{'invisible': [ | ||
'|', ('project_ids', '!=', []), | ||
('type', '=', 'view'), | ||
]}" | ||
/> | ||
<button | ||
name="view_projects_for_account" | ||
type="object" | ||
class="oe_stat_button" | ||
icon="fa-tasks" | ||
string="View projects" | ||
attrs="{'invisible': [ | ||
'|', ('project_ids', '=', []), | ||
('type', '=', 'view'), | ||
]}" | ||
/> | ||
</div> | ||
</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins. | ||
|
||
This directory caches those eggs to prevent repeated downloads. | ||
|
||
However, it is safe to delete this directory. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
1 change: 1 addition & 0 deletions
1
setup/account_analytic_project/odoo/addons/account_analytic_project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../account_analytic_project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |