Wipe addons/: full reset for clean re-upload

This commit is contained in:
Tower Deploy
2026-04-27 11:20:53 +03:00
parent 2cf3b5185d
commit 9bb80002c8
363 changed files with 0 additions and 112641 deletions

View File

@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="cx_tower_file_template_view_form" model="ir.ui.view">
<field name="name">cx.tower.file.template.view.form</field>
<field name="model">cx.tower.file.template</field>
<field
name="inherit_id"
ref="cetmix_tower_server.cx_tower_file_template_view_form"
/>
<field name="arch" type="xml">
<field name="source" position="after">
<field
name="git_project_id"
attrs="{'invisible': [('git_project_id', '=', False)]}"
/>
</field>
</field>
</record>
</odoo>

View File

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="cx_tower_file_view_form" model="ir.ui.view">
<field name="name">cx.tower.file.view.form</field>
<field name="model">cx.tower.file</field>
<field name="inherit_id" ref="cetmix_tower_server.cx_tower_file_view_form" />
<field name="arch" type="xml">
<field name="auto_sync" position="before">
<field
name="git_project_id"
attrs="{'invisible': [('git_project_id', '=', False)]}"
/>
</field>
</field>
</record>
</odoo>

View File

@@ -1,278 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Tree View -->
<record id="cx_tower_git_project_view_tree" model="ir.ui.view">
<field name="name">cx.tower.git.project.tree</field>
<field name="model">cx.tower.git.project</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field
name="server_ids"
widget="many2many_tags"
options="{'color_field': 'color'}"
/>
<field name="active" widget="boolean_toggle" />
</tree>
</field>
</record>
<!-- Form View -->
<record id="cx_tower_git_project_view_form" model="ir.ui.view">
<field name="name">cx.tower.git.project.form</field>
<field name="model">cx.tower.git.project</field>
<field name="arch" type="xml">
<form>
<sheet>
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<div class="oe_title">
<h1>
<field name="name" placeholder="Name" />
</h1>
<h3>
<field
name="reference"
placeholder="Reference. Can contain English letters, digits and '_'. Leave blank to autogenerate"
/>
</h3>
</div>
<group>
<group string="General">
<field name="active" invisible="1" />
<field
name="server_ids"
widget="many2many_tags"
options="{'color_field': 'color'}"
attrs="{'invisible': [('server_ids', '=', [])]}"
/>
<field
name="file_template_ids"
widget="many2many_tags"
attrs="{'invisible': [('file_template_ids', '=', [])]}"
/>
</group>
<group string="Git Aggregator">
<field
name="git_aggregator_root_dir"
string="Root Directory"
placeholder="Git aggregator root directory where sources will be cloned. Leave blank to use '.'"
/>
</group>
<field name="note" placeholder="Put your notes here..." />
</group>
<notebook>
<page name="sources" string="Sources">
<field name="source_ids">
<tree
decoration-muted="not enabled"
decoration-info="remote_count_private == remote_count and remote_count &gt; 0"
decoration-warning="remote_count_private != remote_count and remote_count &gt; 0 and remote_count_private &gt; 0"
>
<field name="sequence" widget="handle" />
<field
name="name"
placeholder="..to be autogenerated"
/>
<field name="remote_count" optional="show" />
<field
name="remote_count_private"
optional="hide"
/>
<field name="enabled" widget="boolean_toggle" />
<field name="reference" optional="hide" />
<field name="create_uid" optional="hide" />
</tree>
</field>
<field name="has_private_remotes" invisible="1" />
<field name="has_partially_private_remotes" invisible="1" />
<div
class="text-info"
attrs="{'invisible': [('has_private_remotes', '=', False)]}"
>
<p>
* Sources where all remotes are private
</p>
</div>
<div
class="text-warning"
attrs="{'invisible': [('has_partially_private_remotes', '=', False)]}"
>
<p>
* Sources where some remotes are private
</p>
</div>
</page>
<page name="files" string="Files">
<field name="git_project_rel_ids">
<tree editable="bottom">
<field
name="server_id"
options="{'no_create': True, 'no_create_edit': True}"
/>
<field
name="file_id"
options="{'no_create': True, 'no_create_edit': True}"
/>
<field name="project_format" />
<field name="auto_sync" />
<button
type="object"
name="action_open_server"
string="Open Server"
title="Open Server"
class="btn-secondary"
/>
</tree>
<form>
<group>
<field name="server_id" />
<field name="file_id" />
<field name="project_format" />
<field name="auto_sync" />
</group>
</form>
</field>
</page>
<page name="file_templates" string="File Templates">
<field name="git_project_file_template_rel_ids">
<tree editable="bottom">
<field
name="file_template_id"
options="{'no_create': True, 'no_create_edit': True}"
/>
<field name="project_format" />
<button
type="object"
string="Open file template"
name="action_open_file_template"
title="Open File Template"
class="btn-secondary"
/>
</tree>
<form>
<group>
<field name="file_template_id" />
<field name="project_format" />
</group>
</form>
</field>
</page>
<page
name="repos"
string="Repos"
groups="base.group_no_one"
attrs="{'invisible': [('repo_ids', '=', [])]}"
>
<field name="repo_ids" />
</page>
<page
name="access"
string="Access"
groups="cetmix_tower_server.group_manager"
>
<group name="access">
<field
name="user_ids"
widget="many2many_tags"
placeholder="users who can view this record"
options="{'no_create': True}"
/>
<field
name="manager_ids"
widget="many2many_tags"
placeholder="managers who can modify this record"
options="{'no_create': True}"
/>
</group>
<div
class="alert alert-warning"
role="alert"
style="margin-bottom:0px;"
>
<ul>
<li>
<b
>Users.</b> All users who have "Manager" group and are either set in "Users" or in "Managers" in <b
><u>all</u></b> related servers.
</li>
<li>
<b
>Managers.</b> All users who have "Manager" group and are set as "Managers" in <b
><u>all</u></b> related servers.
This is done to avoid unpredictable consequences when some of the servers are not updated due to access restrictions when a project is updated.
</li>
</ul>
You can edit these fields at your own risk. However keep in mind that they will be automatically updated each time related servers are added, removed or updated.
</div>
</page>
<page name="yaml" string="YAML">
<div groups="!cetmix_tower_yaml.group_export">
<h3
>You must be a member of the "YAML/Export" group to export data as YAML.</h3>
</div>
<button
type="object"
groups="cetmix_tower_yaml.group_export"
class="oe_highlight"
name="action_open_yaml_export_wizard"
string="Export YAML"
/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Search View -->
<record id="cx_tower_git_project_view_search" model="ir.ui.view">
<field name="name">cx.tower.git.project.view.search</field>
<field name="model">cx.tower.git.project</field>
<field name="arch" type="xml">
<search>
<field
name="name"
string="Name/Reference"
filter_domain="['|', ('name', 'ilike', self), ('reference', 'ilike', self)]"
/>
<field name="server_ids" />
<filter
string="Active"
name="active"
domain="[('active', '=', True)]"
/>
<filter
string="Archived"
name="archived"
domain="[('active', '=', False)]"
/>
<separator />
<filter
string="Has Servers"
name="has_servers"
domain="[('server_ids', '!=', False)]"
/>
<filter
string="No Servers"
name="no_servers"
domain="[('server_ids', '=', False)]"
/>
</search>
</field>
</record>
<!-- Action -->
<record id="cx_tower_git_project_action" model="ir.actions.act_window">
<field name="name">Git Projects</field>
<field name="res_model">cx.tower.git.project</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>

View File

@@ -1,85 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Tree View -->
<record id="cx_tower_git_remote_view_tree" model="ir.ui.view">
<field name="name">cx.tower.git.remote.tree</field>
<field name="model">cx.tower.git.remote</field>
<field name="arch" type="xml">
<tree decoration-info="is_private == True">
<field
name="repo_id"
placeholder="select or enter a link"
options="{'no_create_edit': True}"
/>
<field name="is_private" optional="hide" />
<field name="head_type" />
<field name="head" />
<field name="enabled" widget="boolean_toggle" />
<field name="create_uid" optional="hide" groups="base.group_no_one" />
<field name="reference" optional="hide" groups="base.group_no_one" />
</tree>
</field>
</record>
<!-- Form View -->
<record id="cx_tower_git_remote_view_form" model="ir.ui.view">
<field name="name">cx.tower.git.remote.form</field>
<field name="model">cx.tower.git.remote</field>
<field name="arch" type="xml">
<form>
<sheet>
<widget
name="web_ribbon"
title="Disabled"
bg_color="bg-danger"
attrs="{'invisible': [('enabled', '=', True)]}"
/>
<group>
<field name="sequence" groups="base.group_no_one" />
<field name="enabled" />
<field name="active" invisible="1" />
<field
name="repo_id"
placeholder="select or enter a link"
options="{'no_create_edit': True}"
/>
<field name="is_private" />
<field
name="url_protocol"
widget="radio"
options="{'horizontal': true}"
/>
<field
name="head_type"
widget="radio"
options="{'horizontal': true}"
/>
<field
name="head"
attrs="{'invisible': [('head_type', '=', False)]}"
placeholder="Branch/PR/commit number or link"
/>
<field name="create_uid" groups="base.group_no_one" />
</group>
</sheet>
</form>
</field>
</record>
<!-- Action -->
<record id="action_cx_tower_git_remote" model="ir.actions.act_window">
<field name="name">Git Remotes</field>
<field name="res_model">cx.tower.git.remote</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create your first git remote!
</p>
<p>
Git remotes represent branches, pull requests, or commits from git repositories.
</p>
</field>
</record>
</odoo>

View File

@@ -1,65 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Tree View -->
<record id="cx_tower_git_repo_owner_view_tree" model="ir.ui.view">
<field name="name">cx.tower.git.repo.owner.tree</field>
<field name="model">cx.tower.git.repo.owner</field>
<field name="arch" type="xml">
<tree>
<field name="display_name" />
<field name="name" />
</tree>
</field>
</record>
<!-- Form View -->
<record id="cx_tower_git_repo_owner_view_form" model="ir.ui.view">
<field name="name">cx.tower.git.repo.owner.form</field>
<field name="model">cx.tower.git.repo.owner</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="display_name" placeholder="e.g., Cetmix, OCA" />
<field name="name" placeholder="e.g., cetmix, oca" />
<field
name="reference"
placeholder="Can contain English letters, digits and '_'. Leave blank to autogenerate"
/>
<field name="secret_id" />
</group>
<notebook>
<page string="Repositories" name="repositories">
<field name="repo_ids" readonly="1">
<tree>
<field name="name" />
<field name="reference" optional="hide" />
<field name="provider" />
<field name="is_private" />
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Action -->
<record id="action_cx_tower_git_repo_owner" model="ir.actions.act_window">
<field name="name">Repository Owners</field>
<field name="res_model">cx.tower.git.repo.owner</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create your first repository owner!
</p>
<p>
Repository owners represent organizations or users that own git repositories.
Examples include "cetmix", "OCA", etc.
</p>
</field>
</record>
</odoo>

View File

@@ -1,163 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Tree View -->
<record id="cx_tower_git_repo_view_tree" model="ir.ui.view">
<field name="name">cx.tower.git.repo.tree</field>
<field name="model">cx.tower.git.repo</field>
<field name="arch" type="xml">
<tree decoration-info="is_private == True">
<field name="name" />
<field name="reference" optional="hide" />
<field name="provider" optional="show" />
<field name="owner_id" optional="hide" />
<field name="is_private" optional="hide" />
<field name="remote_count" optional="hide" />
<field name="git_project_count" optional="hide" />
</tree>
</field>
</record>
<!-- Form View -->
<record id="cx_tower_git_repo_view_form" model="ir.ui.view">
<field name="name">cx.tower.git.repo.form</field>
<field name="model">cx.tower.git.repo</field>
<field name="arch" type="xml">
<form>
<sheet>
<div class="oe_button_box" name="button_box">
<button
name="action_view_remotes"
type="object"
string="Remotes"
class="oe_stat_button"
icon="fa-external-link"
attrs="{'invisible': [('remote_count', '=', 0)]}"
>
<field
name="remote_count"
widget="statinfo"
string="Remotes"
/>
</button>
<button
name="action_view_projects"
type="object"
string="GitProjects"
class="oe_stat_button"
icon="fa-folder"
attrs="{'invisible': [('git_project_count', '=', 0)]}"
>
<field
name="git_project_count"
widget="statinfo"
string="Projects"
/>
</button>
</div>
<group>
<group name="info">
<field
name="url"
placeholder="https, ssh or git formats are accepted"
/>
<field name="url_ssh" />
<field name="url_git" />
<field name="repo" placeholder="e.g., cetmix-tower, odoo" />
<field name="host" />
</group>
<group name="details">
<field
name="reference"
placeholder="Can contain English letters, digits and '_'. Leave blank to autogenerate"
/>
<field name="active" />
<field name="owner_id" />
<field name="provider" />
<field name="is_private" />
<field name="secret_id" />
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- Search View -->
<record id="cx_tower_git_repo_view_search" model="ir.ui.view">
<field name="name">cx.tower.git.repo.search</field>
<field name="model">cx.tower.git.repo</field>
<field name="arch" type="xml">
<search>
<field
name="repo"
string="Name/Reference"
filter_domain="['|', ('repo', 'ilike', self), ('reference', 'ilike', self)]"
/>
<field name="owner_id" string="Org" />
<field name="provider" />
<filter
string="Public"
name="public"
domain="[('is_private', '=', False)]"
/>
<filter
string="Private"
name="private"
domain="[('is_private', '=', True)]"
/>
<separator />
<filter
string="Provider: Other"
name="no_provider"
domain="[('provider', '=', 'other')]"
/>
<group expand="0" string="Group By">
<filter
string="Provider"
name="group_provider"
context="{'group_by': 'provider'}"
/>
<filter
string="Org"
name="group_owner"
context="{'group_by': 'owner_id'}"
/>
</group>
<searchpanel>
<field
name="provider"
string="Provider"
icon="fa-globe"
enable_counters="1"
/>
<field
name="owner_id"
string="Org"
icon="fa-building"
enable_counters="1"
/>
</searchpanel>
</search>
</field>
</record>
<!-- Action -->
<record id="action_cx_tower_git_repo" model="ir.actions.act_window">
<field name="name">Repositories</field>
<field name="res_model">cx.tower.git.repo</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create your first repository!
</p>
<p>
Repositories represent git repositories with their metadata and configuration.
They can be linked to remotes to automatically populate URL information.
</p>
</field>
</record>
</odoo>

View File

@@ -1,95 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Tree View -->
<record id="cx_tower_git_source_view_tree" model="ir.ui.view">
<field name="name">cx.tower.git.source.tree</field>
<field name="model">cx.tower.git.source</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="git_project_id" />
</tree>
</field>
</record>
<!-- Form View -->
<record id="cx_tower_git_source_view_form" model="ir.ui.view">
<field name="name">cx.tower.git.source.form</field>
<field name="model">cx.tower.git.source</field>
<field name="arch" type="xml">
<form>
<sheet>
<widget
name="web_ribbon"
title="Disabled"
bg_color="bg-danger"
attrs="{'invisible': [('enabled', '=', True)]}"
/>
<div class="oe_title">
<h1>
<field
name="name"
placeholder="Name. Leave blank to autogenerate"
/>
</h1>
<h3>
<field
name="reference"
placeholder="Reference. Can contain English letters, digits and '_'. Leave blank to autogenerate"
attrs="{'invisible': [('reference', '=', False)]}"
groups="base.group_no_one"
/>
</h3>
</div>
<group>
<field name="sequence" groups="base.group_no_one" />
<field name="enabled" />
<field name="active" invisible="1" />
</group>
<notebook>
<page name="remotes" string="Remotes">
<div
class="alert alert-warning"
role="alert"
style="margin-bottom:0px;"
attrs="{'invisible': [('remote_count', '&lt;', 2)]}"
>
<p>
The top one remote will be used as a merge target.
You can re-arrange remotes by dragging them or changing their sequence value.
</p>
</div>
<field name="remote_count" invisible="1" />
<field name="remote_ids">
<tree
decoration-muted="not enabled"
decoration-info="is_private == True"
>
<field name="sequence" widget="handle" />
<field name="repo_id" />
<field name="head_type" />
<field name="head" />
<field name="url_protocol" />
<field name="enabled" widget="boolean_toggle" />
<field name="is_private" optional="hide" />
<field
name="reference"
optional="hide"
groups="base.group_no_one"
/>
<field
name="create_uid"
optional="hide"
groups="base.group_no_one"
/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
</odoo>

View File

@@ -1,36 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="cx_tower_plan_line_view_form" model="ir.ui.view">
<field name="name">cx.tower.plan.line.view.form</field>
<field name="model">cx.tower.plan.line</field>
<field
name="inherit_id"
ref="cetmix_tower_server.cx_tower_plan_line_view_form"
/>
<field name="arch" type="xml">
<xpath expr="//group[@name='main']" position="after">
<group attrs="{'invisible': [('file_template_id', '=', False)]}">
<field name="git_project_id" />
<field name="is_make_copy" />
</group>
<div
class="alert alert-info"
role="alert"
attrs="{'invisible': [('file_template_id', '=', False)]}"
>
<p>
You can also provide a Git Project reference using the <code
>__git_project__</code> variable in the flight plan custom values.<br
/>
Python command code example:
<code>
custom_values['__git_project__'] = 'my_git_project'
</code>
<br />
Important: if defined, this variable value overrides the Git Project selected in the form.
</p>
</div>
</xpath>
</field>
</record>
</odoo>

View File

@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="cx_tower_server_view_form" model="ir.ui.view">
<field name="name">cx.tower.server.view.form.shortcuts</field>
<field name="model">cx.tower.server</field>
<field name="inherit_id" ref="cetmix_tower_server.cx_tower_server_view_form" />
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page
name="git_projects"
string="Git Projects"
groups="cetmix_tower_server.group_manager,cetmix_tower_server.group_root"
>
<field name="git_project_rel_ids">
<tree editable="bottom">
<field name="server_id" invisible="1" />
<field name="git_project_id" />
<field name="file_id" />
<field name="project_format" />
<field name="auto_sync" />
<button
type="object"
string="Configure"
name="action_open_project"
title="Open Git Project"
class="btn-secondary"
/>
</tree>
<form>
<group>
<field name="server_id" invisible="1" />
<field name="git_project_id" />
<field name="file_id" />
<field name="project_format" />
<field name="auto_sync" />
</group>
</form>
</field>
</page>
</xpath>
</field>
</record>
</odoo>

View File

@@ -1,32 +0,0 @@
<odoo>
<!-- Git Projects -> Tools -->
<menuitem
id="menu_cx_tower_git_project"
name="Git Projects"
action="cx_tower_git_project_action"
sequence="30"
parent="cetmix_tower_server.menu_tools"
/>
<!-- Git Projects Settings -> Settings -->
<menuitem
id="menu_cx_tower_git_project_settings"
name="Git Projects"
parent="cetmix_tower_server.menu_settings"
sequence="60"
/>
<menuitem
id="menu_cx_tower_git_repositories"
name="Repositories"
parent="menu_cx_tower_git_project_settings"
action="action_cx_tower_git_repo"
sequence="10"
/>
<menuitem
id="menu_cx_tower_git_repository_owners"
name="Repository Owners"
parent="menu_cx_tower_git_project_settings"
action="action_cx_tower_git_repo_owner"
sequence="20"
/>
</odoo>