Compare commits

...

3 Commits
master ... 2

3 changed files with 3 additions and 1 deletions

View File

@ -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')

View File

@ -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">

View File

@ -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"