[IMP] website_mass_mailing: improve 'Website popups' inline tree view

This commit improves the inline tree view for 'Website popups' for the
mailing lists with following changes:

- disables creation from the tree view as it should always be done with
  the fronend
- adds last updation date and create date in the tree view
- hide website popups page/menu in form view if no popup is there

TaskID - 2312996
This commit is contained in:
dht-odoo
2021-04-22 09:02:01 +00:00
parent f48ae97c2c
commit e3ccb454b9
@@ -10,9 +10,11 @@
<page string="Toast Content" name="toast_content">
<field name="toast_content" nolabel="1"/>
</page>
<page string="Website popups" name="website_popups">
<page string="Website popups" name="website_popups" attrs="{'invisible': [('website_popup_ids', '=', [])]}">
<field name="website_popup_ids">
<tree>
<tree create="0">
<field name="write_date"/>
<field name="create_date"/>
<field name="website_id"/>
</tree>
</field>