Skip to content

Commit

Permalink
Merge pull request #3 from cetmix/11.0-t2104-fix-task-creation
Browse files Browse the repository at this point in the history
[IMP] Add search view and menu item sync tasks w/actions in sync_task…
  • Loading branch information
ivs-cetmix authored Aug 21, 2022
2 parents bf9d35a + 8d47172 commit 58ca471
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 6 deletions.
77 changes: 75 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,75 @@
aws-lambda/
tmp/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
/.venv
/.pytest_cache

# C extensions
*.so

# Distribution / packaging
.Python
env/
bin/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
*.eggs

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo

# Pycharm
.idea

# Eclipse
.settings

# Visual Studio cache/options directory
.vs/
.vscode

# OSX Files
.DS_Store

# Django stuff:
*.log

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject

# Sphinx documentation
docs/_build/

# Backup files
*~
*.swp

# OCA rules
!static/lib/
32 changes: 28 additions & 4 deletions sync/views/sync_task_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
<field name="model">sync.task</field>
<field name="arch" type="xml">
<form>
<header>

</header>
<header />
<sheet>
<div class="oe_button_box" name="button_box">
<!-- Delete in Odoo 13 -->
Expand Down Expand Up @@ -63,7 +61,10 @@
</div>
<group>
<group>
<field name="project_id" invisible="1" />
<field
name="project_id"
domain="['|',('active', '=', True),('active', '=', False)]"
/>
</group>
</group>
<notebook>
Expand Down Expand Up @@ -175,6 +176,16 @@
</xpath>
</field>
</record>
<record id="sync_task_line_search" model="ir.ui.view">
<field name="name">sync.task.search</field>
<field name="model">sync.task</field>
<field name="arch" type="xml">
<search string="Sync Task">
<field name="name" />
<field name="project_id" />
</search>
</field>
</record>
<record id="sync_task_action_from_project" model="ir.actions.act_window">
<field name="name">Tasks</field>
<field name="res_model">sync.task</field>
Expand All @@ -184,4 +195,17 @@
{'default_project_id': active_id, 'active_test': False}
</field>
</record>
<record id="sync_task_action" model="ir.actions.act_window">
<field name="name">Sync Tasks</field>
<field name="res_model">sync.task</field>
<field name="view_mode">tree,form</field>
<field name="domain" />
</record>
<menuitem
id="sync_task_menu_action"
name="Sync Tasks"
parent="sync_menu"
action="sync_task_action"
sequence="40"
/>
</odoo>

0 comments on commit 58ca471

Please sign in to comment.