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')
|
||||
session_id = fields.Many2one('golem.activity.session', required=True,
|
||||
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',
|
||||
related='session_id.season_id')
|
||||
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="member_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>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Search -->
|
||||
<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="arch" type="xml">
|
||||
<search>
|
||||
<field name="season_id" widget="many2one" />
|
||||
<field name="member_id" widget="many2one" />
|
||||
<field name="session_id" widget="many2one" />
|
||||
<field name="invoice_id" widget="many2one" />
|
||||
<filter name="season_default" string="Default season"
|
||||
domain="[('is_current', '=', True)]" />
|
||||
</search>
|
||||
|
@ -38,7 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
domain="[('season_ids', '=', season_id)]" />
|
||||
<field name="session_id" readonly="1" />
|
||||
<field name="season_id" readonly="1" />
|
||||
<field name="invoice_id" readonly="1" />
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
|
@ -37,7 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
domain="[('is_current', '=', True)]" />
|
||||
<field name="season_id" readonly="1" />
|
||||
<field name="member_id" readonly="1" />
|
||||
<field name="invoice_id" readonly="1" />
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
|
Loading…
x
Reference in New Issue
Block a user