forked from Yaltik/golem
[IMP]GOLEM Activity Session Registrations : no state and not yet invoicing so no invoice mentions needed ATM
This commit is contained in:
parent
30ddbbccc2
commit
9dc2228bc4
@ -67,11 +67,6 @@ class GolemActivitySessionRegistration(models.Model):
|
|||||||
ondelete='cascade')
|
ondelete='cascade')
|
||||||
session_id = fields.Many2one('golem.activity.session', required=True,
|
session_id = fields.Many2one('golem.activity.session', required=True,
|
||||||
string='Activity session', ondelete='cascade')
|
string='Activity session', ondelete='cascade')
|
||||||
invoice_id = fields.Many2one('account.invoice', string='Invoice',
|
|
||||||
ondelete='set null')
|
|
||||||
invoice_line_id = fields.Many2one('account.invoice.line',
|
|
||||||
string='Invoice line',
|
|
||||||
ondelete='set null')
|
|
||||||
season_id = fields.Many2one(string='Season',
|
season_id = fields.Many2one(string='Season',
|
||||||
related='session_id.season_id')
|
related='session_id.season_id')
|
||||||
is_current = fields.Boolean('Current season?',
|
is_current = fields.Boolean('Current season?',
|
||||||
|
@ -44,22 +44,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="season_id" readonly="1" />
|
<field name="season_id" readonly="1" />
|
||||||
<field name="member_id" domain="[('is_current', '=', True)]" />
|
<field name="member_id" domain="[('is_current', '=', True)]" />
|
||||||
<field name="session_id" domain="[('is_current', '=', True)]" />
|
<field name="session_id" domain="[('is_current', '=', True)]" />
|
||||||
<field name="invoice_id" readonly="1" />
|
|
||||||
<field name="invoice_line_id" readonly="1" />
|
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- Search -->
|
<!-- Search -->
|
||||||
<record id="searches" model="ir.ui.view">
|
<record id="searches" model="ir.ui.view">
|
||||||
<field name="name">GOLEM Activity Sesion Registration searches</field>
|
<field name="name">GOLEM Activity Session Registration searches</field>
|
||||||
<field name="model">golem.activity.session.registration</field>
|
<field name="model">golem.activity.session.registration</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<search>
|
<search>
|
||||||
<field name="season_id" widget="many2one" />
|
<field name="season_id" widget="many2one" />
|
||||||
<field name="member_id" widget="many2one" />
|
<field name="member_id" widget="many2one" />
|
||||||
<field name="session_id" widget="many2one" />
|
<field name="session_id" widget="many2one" />
|
||||||
<field name="invoice_id" widget="many2one" />
|
|
||||||
<filter name="season_default" string="Default season"
|
<filter name="season_default" string="Default season"
|
||||||
domain="[('is_current', '=', True)]" />
|
domain="[('is_current', '=', True)]" />
|
||||||
</search>
|
</search>
|
||||||
|
@ -38,7 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
domain="[('season_ids', '=', season_id)]" />
|
domain="[('season_ids', '=', season_id)]" />
|
||||||
<field name="session_id" readonly="1" />
|
<field name="session_id" readonly="1" />
|
||||||
<field name="season_id" readonly="1" />
|
<field name="season_id" readonly="1" />
|
||||||
<field name="invoice_id" readonly="1" />
|
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</group>
|
</group>
|
||||||
|
@ -37,7 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
domain="[('is_current', '=', True)]" />
|
domain="[('is_current', '=', True)]" />
|
||||||
<field name="season_id" readonly="1" />
|
<field name="season_id" readonly="1" />
|
||||||
<field name="member_id" readonly="1" />
|
<field name="member_id" readonly="1" />
|
||||||
<field name="invoice_id" readonly="1" />
|
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</group>
|
</group>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user