Skip to content

Commit

Permalink
[FIX] scrummer warning at installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mathben committed Jan 20, 2020
1 parent ba84cd7 commit 45f94a9
Show file tree
Hide file tree
Showing 40 changed files with 46 additions and 28 deletions.
1 change: 1 addition & 0 deletions project_agile/models/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class IdSearchMixin(models.AbstractModel):
_name = "project.agile.mixin.id_search"
_description = "Project Agile Mixin Id Search"

@api.model
def id_search(
Expand Down
3 changes: 3 additions & 0 deletions project_agile/models/project_agile_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class AgileReport(models.AbstractModel):
_name = "project.agile.report"
_description = "Project Agile Report"

name = fields.Char(required=True)
description = fields.Html(required=True)
Expand All @@ -18,9 +19,11 @@ class AgileReport(models.AbstractModel):

class AgileTeamReport(models.Model):
_name = "project.agile.team.report"
_description = "Project Agile Team Report"
_inherit = "project.agile.report"


class AgileBoardReport(models.Model):
_name = "project.agile.board.report"
_description = "Project Agile Board Report"
_inherit = "project.agile.report"
1 change: 1 addition & 0 deletions project_agile/models/project_agile_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class AgileTeam(models.Model):
_name = "project.agile.team"
_description = "Project Agile Team"
_inherit = ["mail.thread"]

name = fields.Char(string="Name",)
Expand Down
1 change: 1 addition & 0 deletions project_agile/models/project_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class ProjectType(models.Model):
_name = "project.type"
_description = "Project Type"
_inherit = ["project.agile.code_item"]

stage_ids = fields.Many2many(
Expand Down
1 change: 1 addition & 0 deletions project_agile/models/project_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class ProjectTaskLink(models.Model):
)

@api.multi
@api.depends()
def _compute_display_name(self):
for record in self:

Expand Down
4 changes: 0 additions & 4 deletions project_agile/security/security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,24 @@
<field name="name">Portal Task Create</field>
<field name="comment">Portal members have specific access rights (such as record rules and restricted menus).
They usually do not belong to the usual Odoo groups.</field>
<field name="is_portal" eval="True"/>
</record>

<record id="group_project_portal_task_edit" model="res.groups">
<field name="name">Portal Task Edit</field>
<field name="comment">Portal members have specific access rights (such as record rules and restricted menus).
They usually do not belong to the usual Odoo groups.</field>
<field name="is_portal" eval="True"/>
</record>

<record id="group_project_portal_task_wkf" model="res.groups">
<field name="name">Portal Task Workflow</field>
<field name="comment">Portal members have specific access rights (such as record rules and restricted menus).
They usually do not belong to the usual Odoo groups.</field>
<field name="is_portal" eval="True"/>
</record>

<record id="group_project_portal_task_timesheet" model="res.groups">
<field name="name">Portal Task View Timesheet</field>
<field name="comment">Portal members have specific access rights (such as record rules and restricted menus).
They usually do not belong to the usual Odoo groups.</field>
<field name="is_portal" eval="True"/>
</record>

<record model="ir.rule" id="project_agile_board_visibility">
Expand Down
1 change: 1 addition & 0 deletions project_agile/wizards/board_create_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class BoardCreateWizard(models.TransientModel):
_name = "project.agile.board.create.wizard"
_description = "Project Agile Board Create Wizard"

name = fields.Char(string="Name", required=True)

Expand Down
1 change: 1 addition & 0 deletions project_agile/wizards/board_export_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

class BoardExportWizard(models.TransientModel):
_name = "project.agile.board.export.wizard"
_description = "Project Agile Board Export Wizard"

board_id = fields.Many2one(
comodel_name="project.agile.board", string="Agile Board",
Expand Down
1 change: 1 addition & 0 deletions project_agile/wizards/board_import_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class BoardImportWizard(models.TransientModel):
_name = "project.agile.board.import.wizard"
_description = "Project Agile Board Import Wizard"

data = fields.Binary(string="Data", required=True,)

Expand Down
1 change: 1 addition & 0 deletions project_agile/wizards/project_task_worklog_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class ProjectTaskWorklogWizard(models.TransientModel):
_name = "project.task.worklog.wizard"
_description = "Project Task Workflow Wizard"

task_id = fields.Many2one(
comodel_name="project.task", string="Task", required=True,
Expand Down
1 change: 1 addition & 0 deletions project_agile_jira/models/jira_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

class JiraConfig(models.Model):
_name = "project.agile.jira.config"
_description = "Project Agile Jira Config"

name = fields.Char(string="Name", help="Config Name")

Expand Down
2 changes: 2 additions & 0 deletions project_agile_jira/models/jira_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

class JiraRequest(models.Model):
_name = "project.agile.jira.request"
_description = "Project Agile Jira Request"

state = fields.Selection(
selection=REQUEST_STATES,
Expand Down Expand Up @@ -125,6 +126,7 @@ def _create_log(self, message, stack_trace=None, log_type="error"):

class JiraRequestLog(models.Model):
_name = "project.agile.jira.request.log"
_description = "Project Agile Jira Request Log"

_rec_name = "log_type"
_order = "attempt desc, log_type"
Expand Down
1 change: 1 addition & 0 deletions project_agile_jira/models/jira_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

class JiraWorker(models.AbstractModel):
_name = "project.agile.jira.worker"
_description = "Project Agile Jira Worker"

@contextmanager
def session(self):
Expand Down
2 changes: 2 additions & 0 deletions project_agile_jira/wizards/task_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

class TaskImport(models.TransientModel):
_name = "project.agile.jira.task.import.wizard"
_description = "Project Agile Jira Task Import Wizard"

project_id = fields.Many2one(
comodel_name="project.project", string="Project", required=True,
Expand Down Expand Up @@ -96,6 +97,7 @@ def button_import(self):

class IssueTypeMapper(models.TransientModel):
_name = "project.agile.jira.issue.type.mapper"
_description = "Project Agile Jira Issue Type Mapper"

task_import_id = fields.Many2one(
comodel_name="project.agile.jira.task.import.wizard",
Expand Down
2 changes: 2 additions & 0 deletions project_agile_kanban/models/project_agile_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ProjectAgileBoard(models.Model):

class BacklogColumnStatus(models.Model):
_name = "project.agile.board.kanban.backlog.column.status"
_description = "Project Agile Board Kanban Backlog Column Status"

board_id = fields.Many2one(
comodel_name="project.agile.board",
Expand Down Expand Up @@ -83,6 +84,7 @@ def _compute_workflow_ids(self):

class BacklogStates(models.Model):
_name = "project.agile.board.kanban.backlog.state"
_description = "Project Agile Board Kanban Backlog State"

board_id = fields.Many2one(
comodel_name="project.agile.board",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
<div class="o_kanban_image">
<t t-if="record.team_image_small.raw_value">
<img t-att-src="kanban_image('project.agile.scrum.sprint', 'team_image_small', record.id.value)"/>
<img t-att-src="kanban_image('project.agile.scrum.sprint', 'team_image_small', record.id.value)" alt="project agile scrum sprint"/>
</t>
</div>
<div class="oe_kanban_details">
Expand Down
1 change: 1 addition & 0 deletions project_git/models/git_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class GitBranch(models.Model):
_name = "project.git.branch"
_description = "Project Git Branch"

name = fields.Char(string="Name", size=256, required=True, index=True,)

Expand Down
1 change: 1 addition & 0 deletions project_git/models/git_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class GitCommit(models.Model):
_name = "project.git.commit"
_description = "Project Git Commit"

name = fields.Char(string="Name", size=256, required=True, index=True,)

Expand Down
1 change: 1 addition & 0 deletions project_git/models/git_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

class GitPayloadParser(models.AbstractModel):
_name = "project.git.payload.parser"
_description = "Project Git Payload Parser"

def parse_header(self, context):
parse_method_name = "parse_%s_header" % context.type
Expand Down
1 change: 1 addition & 0 deletions project_git/models/git_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

class GitRepository(models.Model):
_name = "project.git.repository"
_description = "Project Git Repository"

def _default_secret(self):
alphabet = string.ascii_letters + string.digits
Expand Down
1 change: 1 addition & 0 deletions project_git/models/git_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class GitUser(models.Model):
_name = "project.git.user"
_description = "Project Git User"

name = fields.Char(string="Name", size=256)

Expand Down
3 changes: 1 addition & 2 deletions project_git/views/project_git_branch_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
<record id="view_git_branch_kanban" model="ir.ui.view">
<field name="name">project.git.branch.kanban</field>
<field name="model">project.git.branch</field>
<field name="type">kanban</field>
<field name="arch" type="xml">
<kanban create="0" edit="0">
<field name="name"/>
Expand All @@ -85,7 +84,7 @@
</div>
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
<div class="o_kanban_image">
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox"/>
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox" alt=""/>
</div>
<div class="oe_kanban_details">
<div>
Expand Down
5 changes: 2 additions & 3 deletions project_git/views/project_git_commit_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
<record id="view_git_commit_kanban" model="ir.ui.view">
<field name="name">project.git.commit.kanban</field>
<field name="model">project.git.commit</field>
<field name="type">kanban</field>
<field name="arch" type="xml">
<kanban create="0" edit="0">
<field name="name"/>
Expand All @@ -80,7 +79,7 @@
</a>
</div>
<div class="o_kanban_image">
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox"/>
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox" alt="avatar"/>
</div>
<div class="oe_kanban_details">
<div>
Expand All @@ -93,7 +92,7 @@
<span><b><field name="date"/></b></span>
</div>
<div class="oe_kanban_bottom_right">
<img t-attf-src="#{record.author_avatar.raw_value}" t-attf-title="#{record.author_username.raw_value}" width="24" height="24" class="oe_kanban_avatar pull-right"/>
<img t-attf-src="#{record.author_avatar.raw_value}" t-attf-title="#{record.author_username.raw_value}" width="24" height="24" class="oe_kanban_avatar pull-right" alt="avatar"/>
</div>
</div>
<div class="oe_clear"></div>
Expand Down
3 changes: 1 addition & 2 deletions project_git/views/project_git_repository_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<record id="view_git_repository_kanban" model="ir.ui.view">
<field name="name">project.git.repository.kanban</field>
<field name="model">project.git.repository</field>
<field name="type">kanban</field>
<field name="arch" type="xml">
<kanban>
<field name="name"/>
Expand All @@ -97,7 +96,7 @@
</div>
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
<div class="o_kanban_image">
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox"/>
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox" alt="avatar"/>
</div>
<div class="oe_kanban_details">
<div>
Expand Down
5 changes: 2 additions & 3 deletions project_git/views/project_git_user_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div class="oe_kanban_global_click" style="background-color: #ececec;">
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
<div class="o_kanban_image">
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox"/>
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox" alt="avatar"/>
</div>
<div class="oe_kanban_details">
<div>
Expand Down Expand Up @@ -91,7 +91,6 @@
<record id="view_git_user_kanban" model="ir.ui.view">
<field name="name">project.git.user.kanban</field>
<field name="model">project.git.user</field>
<field name="type">kanban</field>
<field name="arch" type="xml">
<kanban create="0" edit="0">
<field name="name"/>
Expand All @@ -109,7 +108,7 @@
</div>
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
<div class="o_kanban_image">
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox"/>
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox" alt="avatar"/>
</div>
<div class="oe_kanban_details">
<div>
Expand Down
2 changes: 1 addition & 1 deletion project_git/views/project_project_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
<div class="o_kanban_image">
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox"/>
<img t-attf-src="#{record.avatar.raw_value}" class="o_kanban_image oe_kanban_avatar_smallbox" alt="avatar"/>
</div>
<div class="oe_kanban_details">
<div>
Expand Down
4 changes: 0 additions & 4 deletions project_git_bitbucket/views/project_git_bitbucket_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<record id="view_git_user_kanban_inherit_bitbucket" model="ir.ui.view">
<field name="name">project.git.user.kanban.inherit.bitbucket</field>
<field name="model">project.git.user</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project_git.view_git_user_kanban"/>
<field name="arch" type="xml">
<a name="icon">
Expand All @@ -30,7 +29,6 @@
<record id="view_git_commit_kanban_inherit_bitbucket" model="ir.ui.view">
<field name="name">project.git.commit.kanban.inherit.bitbucket</field>
<field name="model">project.git.commit</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project_git.view_git_commit_kanban"/>
<field name="arch" type="xml">
<a name="icon">
Expand All @@ -42,7 +40,6 @@
<record id="view_git_repository_kanban_inherit_bitbucket" model="ir.ui.view">
<field name="name">project.git.repository.kanban.inherited.bitbucket</field>
<field name="model">project.git.repository</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project_git.view_git_repository_kanban"/>
<field name="arch" type="xml">
<a name="icon">
Expand All @@ -54,7 +51,6 @@
<record id="view_git_branch_kanban_inherit_bitbucket" model="ir.ui.view">
<field name="name">project.git.branch.kanban.inherited.bitbucket</field>
<field name="model">project.git.branch</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project_git.view_git_branch_kanban"/>
<field name="arch" type="xml">
<a name="icon">
Expand Down
4 changes: 0 additions & 4 deletions project_git_github/views/project_git_github_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<record id="view_git_user_kanban_inherit_github" model="ir.ui.view">
<field name="name">project.git.user.kanban.inherit.github</field>
<field name="model">project.git.user</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project_git.view_git_user_kanban"/>
<field name="arch" type="xml">
<a name="icon">
Expand All @@ -30,7 +29,6 @@
<record id="view_git_commit_kanban_inherit_github" model="ir.ui.view">
<field name="name">project.git.commit.kanban.inherit.github</field>
<field name="model">project.git.commit</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project_git.view_git_commit_kanban"/>
<field name="arch" type="xml">
<a name="icon">
Expand All @@ -42,7 +40,6 @@
<record id="view_git_repository_kanban_inherit_github" model="ir.ui.view">
<field name="name">project.git.repository.kanban.inherited.github</field>
<field name="model">project.git.repository</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project_git.view_git_repository_kanban"/>
<field name="arch" type="xml">
<a name="icon">
Expand All @@ -54,7 +51,6 @@
<record id="view_git_branch_kanban_inherit_github" model="ir.ui.view">
<field name="name">project.git.branch.kanban.inherited.github</field>
<field name="model">project.git.branch</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project_git.view_git_branch_kanban"/>
<field name="arch" type="xml">
<a name="icon">
Expand Down
Loading

0 comments on commit 45f94a9

Please sign in to comment.