Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
6c34d1ebc4 | |||
c0b4eacdb0 | |||
7fd3f3c372 |
@ -191,7 +191,7 @@ class GolemActivitySession(models.Model):
|
||||
raise models.ValidationError(_('Start of the period cannot be '
|
||||
'after end of the period.'))
|
||||
|
||||
places = fields.Integer('Places', default=0)
|
||||
places = fields.Integer('Places', default=20)
|
||||
places_remain = fields.Integer('Remaining places', store=True,
|
||||
compute='_compute_places_remain')
|
||||
|
||||
|
@ -172,6 +172,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<field name="name">GOLEM Activities Sessions List</field>
|
||||
<field name="res_model">golem.activity.session</field>
|
||||
<field name="view_mode">tree,form,calendar</field>
|
||||
<field name="context">{'search_default_season_default': True}</field>
|
||||
<!--<field name="view_id" ref="product.product_template_kanban_view"/>-->
|
||||
</record>
|
||||
<record id="category_action" model="ir.actions.act_window">
|
||||
|
@ -53,6 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<record id="searches" model="ir.ui.view">
|
||||
<field name="name">GOLEM Activity Sessions Searches</field>
|
||||
<field name="model">golem.activity.session</field>
|
||||
<field name="inherit_id" ref="golem_activity_session.searches" />
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<filter name="full_session" string="Full"
|
||||
|
Loading…
Reference in New Issue
Block a user