Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odoo CE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Comunitats Energètiques
Odoo CE
Commits
6efc2668
Commit
6efc2668
authored
1 year ago
by
Daniil Digtyar Vasilieva
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] views for distribution table model
parent
0e0489c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!138
Hotfix setup name error
,
!134
Release v14.0.1.1.6
,
!126
[IMP] Feature/add energy selfconsumption distribution table
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
energy_selfconsumption/__manifest__.py
+1
-0
1 addition, 0 deletions
energy_selfconsumption/__manifest__.py
energy_selfconsumption/views/distribution_table_views.xml
+67
-0
67 additions, 0 deletions
energy_selfconsumption/views/distribution_table_views.xml
with
68 additions
and
0 deletions
energy_selfconsumption/__manifest__.py
+
1
−
0
View file @
6efc2668
...
...
@@ -21,5 +21,6 @@
"
views/selfconsumption_views.xml
"
,
"
views/supply_point_views.xml
"
,
"
views/res_partner_views.xml
"
,
"
views/distribution_table_views.xml
"
,
],
}
This diff is collapsed.
Click to expand it.
energy_selfconsumption/views/distribution_table_views.xml
0 → 100644
+
67
−
0
View file @
6efc2668
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record
id=
"distribution_table_form_view"
model=
"ir.ui.view"
>
<field
name=
"name"
>
energy_selfconsumption.distribution_table_form_view.form
</field>
<field
name=
"model"
>
energy_selfconsumption.distribution_table
</field>
<field
name=
"arch"
type=
"xml"
>
<form
string=
"Distribution Table"
>
<sheet>
<div
class=
"oe_title"
>
<label
for=
"name"
/>
<h1>
<field
name=
"name"
placeholder=
"Title"
/>
</h1>
</div>
<group>
<field
name=
"selfconsumption_project_id"
/>
<field
name=
"supply_point_assignations_ids"
/>
</group>
</sheet>
</form>
</field>
</record>
<record
id=
"distribution_table_tree_view"
model=
"ir.ui.view"
>
<field
name=
"name"
>
energy_selfconsumption.distribution_table.tree
</field>
<field
name=
"model"
>
energy_selfconsumption.distribution_table
</field>
<field
name=
"arch"
type=
"xml"
>
<tree
string=
"Distribution Table"
>
<field
name=
"name"
/>
<field
name=
"selfconsumption_project_id"
/>
<field
name=
"state"
/>
</tree>
</field>
</record>
<record
id=
"distribution_table_search_view"
model=
"ir.ui.view"
>
<field
name=
"name"
>
energy_selfconsumption.distribution_table.search
</field>
<field
name=
"model"
>
energy_selfconsumption.distribution_table
</field>
<field
name=
"arch"
type=
"xml"
>
<search
string=
"Distribution Table"
>
<group
expand=
"1"
string=
"Group By"
>
<filter
string=
"Self-consumption Project"
name=
"selfconsumption_project_id"
domain=
"[]"
context=
"{'group_by':'selfconsumption_project_id'}"
/>
</group>
</search>
</field>
</record>
<record
id=
"distribution_table_act_window"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Distribution Table
</field>
<field
name=
"type"
>
ir.actions.act_window
</field>
<field
name=
"res_model"
>
energy_selfconsumption.distribution_table
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"help"
type=
"html"
>
<p
class=
"oe_view_nocontent_create"
>
There is no examples click here to add new Distribution Table.
</p>
</field>
</record>
<menuitem
name=
"Distribution Tables"
id=
"distribution_table_menu"
parent=
"management_category_menu"
action=
"distribution_table_act_window"
/>
</data>
</odoo>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment