forked from Yaltik/golem
[ADD]GOLEM Member Kanban view
This commit is contained in:
parent
5045c2ff11
commit
f891024ce0
@ -171,12 +171,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
res_model="golem.member"
|
res_model="golem.member"
|
||||||
view_mode="kanban,tree,form,graph"
|
view_mode="kanban,tree,form,graph"
|
||||||
context="{'search_default_season_default': True}" />
|
context="{'search_default_season_default': True}" />
|
||||||
<record model="ir.actions.act_window.view"
|
|
||||||
id="view_kanban">
|
|
||||||
<field name="view_mode">kanban</field>
|
|
||||||
<field name="view_id" ref="base.res_partner_kanban_view"/>
|
|
||||||
<field name="act_window_id" ref="action"/>
|
|
||||||
</record>
|
|
||||||
<act_window id="tags_action_list" name="GOLEM Members Tags"
|
<act_window id="tags_action_list" name="GOLEM Members Tags"
|
||||||
res_model="res.partner.category" view_mode="tree,form" />
|
res_model="res.partner.category" view_mode="tree,form" />
|
||||||
|
|
||||||
|
@ -40,6 +40,76 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<!-- Kanban -->
|
||||||
|
<record model="ir.ui.view" id="member_kanban">
|
||||||
|
<field name="name">GOLEM Member Kanban view</field>
|
||||||
|
<field name="model">golem.member</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<kanban>
|
||||||
|
<field name="color" />
|
||||||
|
<field name="display_name" />
|
||||||
|
<field name="title" />
|
||||||
|
<field name="email" />
|
||||||
|
<field name="phone" />
|
||||||
|
<field name="mobile" />
|
||||||
|
<field name="city" />
|
||||||
|
<field name="country_id" />
|
||||||
|
<field name="has_image" />
|
||||||
|
<field name="number" />
|
||||||
|
<field name="season_ids" />
|
||||||
|
<field name="category_id"/>
|
||||||
|
<templates>
|
||||||
|
<t t-name="kanban-box">
|
||||||
|
<div class="oe_kanban_vignette oe_semantic_html_override">
|
||||||
|
<a type="open">
|
||||||
|
<t t-if="record.has_image.raw_value === true">
|
||||||
|
<img t-att-src="kanban_image('res.partner', 'image_small', record.id.value)" class="oe_kanban_image"/>
|
||||||
|
</t>
|
||||||
|
<t t-if="record.has_image.raw_value === false">
|
||||||
|
<img t-att-src='_s + "/base/static/src/img/avatar.png"'
|
||||||
|
class="oe_kanban_image"/>
|
||||||
|
</t>
|
||||||
|
</a>
|
||||||
|
<div class="oe_kanban_details">
|
||||||
|
<h4 class="oe_partner_heading">
|
||||||
|
<a type="open"><field name="display_name" /></a>
|
||||||
|
(N° <field name="number" />)
|
||||||
|
</h4>
|
||||||
|
<div class="oe_kanban_partner_categories" />
|
||||||
|
<div class="oe_kanban_partner_links" />
|
||||||
|
<field name="season_ids" />
|
||||||
|
<ul>
|
||||||
|
<li t-if="record.city.raw_value and !record.country_id.raw_value">
|
||||||
|
<field name="city" />
|
||||||
|
</li>
|
||||||
|
<li t-if="!record.city.raw_value and record.country_id.raw_value">
|
||||||
|
<field name="country_id" />
|
||||||
|
</li>
|
||||||
|
<li t-if="record.city.raw_value and record.country_id.raw_value">
|
||||||
|
<field name="city" />, <field name="country_id" />
|
||||||
|
</li>
|
||||||
|
<li t-if="record.phone.raw_value or record.mobile.raw_value">
|
||||||
|
<a t-attf-href="tel:#{record.phone.raw_value}">
|
||||||
|
<field name="phone" />
|
||||||
|
</a>
|
||||||
|
<a t-attf-href="tel:#{record.mobile.raw_value}">
|
||||||
|
<field name="mobile" />
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li t-if="record.email.raw_value">
|
||||||
|
<a t-attf-href="mailto:#{record.email.raw_value}">
|
||||||
|
<field name="email" />
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</t>
|
||||||
|
</templates>
|
||||||
|
</kanban>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<!-- Trees -->
|
<!-- Trees -->
|
||||||
<record model="ir.ui.view" id="member_tree">
|
<record model="ir.ui.view" id="member_tree">
|
||||||
<field name="name">Add member number to tree</field>
|
<field name="name">Add member number to tree</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user