|
@ -7,7 +7,7 @@ |
|
|
<field name="inherit_id" ref="event.view_event_form" /> |
|
|
<field name="inherit_id" ref="event.view_event_form" /> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="event_type_id" position="after"> |
|
|
<field name="event_type_id" position="after"> |
|
|
<button type="object" name="pull_description_type" colspan="2" |
|
|
|
|
|
|
|
|
<button type="object" name="pull_type_description" colspan="2" |
|
|
string="Update this event description from template" |
|
|
string="Update this event description from template" |
|
|
class="btn-secondary btn-sm" icon="fa-download" |
|
|
class="btn-secondary btn-sm" icon="fa-download" |
|
|
attrs="{'invisible': [('can_pull','=',False)]}" /> |
|
|
attrs="{'invisible': [('can_pull','=',False)]}" /> |
|
@ -15,25 +15,21 @@ |
|
|
<field name="active" position="after"> |
|
|
<field name="active" position="after"> |
|
|
<field name="can_pull" invisible="1" /> |
|
|
<field name="can_pull" invisible="1" /> |
|
|
</field> |
|
|
</field> |
|
|
|
|
|
<notebook position="inside"> |
|
|
|
|
|
<page name="description" string="Website description"> |
|
|
|
|
|
<field name="description" /> |
|
|
|
|
|
</page> |
|
|
|
|
|
</notebook> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<record id="event_event_action_server_type_description" model="ir.actions.server"> |
|
|
<record id="event_event_action_server_type_description" model="ir.actions.server"> |
|
|
<field name="name">Push Template descritpion</field> |
|
|
|
|
|
|
|
|
<field name="name">Push template description</field> |
|
|
<field name="model_id" ref="event.model_event_event" /> |
|
|
<field name="model_id" ref="event.model_event_event" /> |
|
|
<field name="binding_model_id" ref="event.model_event_event" /> |
|
|
<field name="binding_model_id" ref="event.model_event_event" /> |
|
|
<field name="groups_id" eval="[(6, 0, [ref('event.group_event_manager')])]" /> |
|
|
<field name="groups_id" eval="[(6, 0, [ref('event.group_event_manager')])]" /> |
|
|
<field name="state">code</field> |
|
|
<field name="state">code</field> |
|
|
<field name="code">record.push_description_type()</field> |
|
|
|
|
|
|
|
|
<field name="code">record.push_type_description()</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<!-- <record id="event_event_action_server_default_description" model="ir.actions.server"> |
|
|
|
|
|
<field name="name">Push Default descritpion</field> |
|
|
|
|
|
<field name="model_id" ref="event.model_event_event" /> |
|
|
|
|
|
<field name="binding_model_id" ref="event.model_event_event" /> |
|
|
|
|
|
<field name="groups_id" eval="[(6, 0, [ref('event.group_event_manager')])]" /> |
|
|
|
|
|
<field name="state">code</field> |
|
|
|
|
|
<field name="code">record.push_description_default()</field> |
|
|
|
|
|
</record> --> |
|
|
|
|
|
|
|
|
|
|
|
</odoo> |
|
|
</odoo> |