forked from Yaltik/golem
[TMP]
This commit is contained in:
parent
d53231739d
commit
bfa9298cef
@ -22,6 +22,7 @@ from odoo import models, fields, api, _
|
|||||||
from odoo.exceptions import UserError
|
from odoo.exceptions import UserError
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class ResPartner(models.Model):
|
class ResPartner(models.Model):
|
||||||
""" GOLEM Member partner adaptations """
|
""" GOLEM Member partner adaptations """
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
@ -42,7 +43,6 @@ class ResPartner(models.Model):
|
|||||||
is_member = fields.Boolean('Is member', compute='_compute_is_member')
|
is_member = fields.Boolean('Is member', compute='_compute_is_member')
|
||||||
member_number = fields.Char('Member number', related='member_id.number')
|
member_number = fields.Char('Member number', related='member_id.number')
|
||||||
|
|
||||||
|
|
||||||
@api.depends('member_id')
|
@api.depends('member_id')
|
||||||
def _compute_is_member(self):
|
def _compute_is_member(self):
|
||||||
""" Computes is member """
|
""" Computes is member """
|
||||||
@ -220,6 +220,7 @@ class GolemMember(models.Model):
|
|||||||
self.generate_number()
|
self.generate_number()
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
class GolemMemberNumber(models.Model):
|
class GolemMemberNumber(models.Model):
|
||||||
""" GOLEM Member Numbers """
|
""" GOLEM Member Numbers """
|
||||||
_name = 'golem.member.number'
|
_name = 'golem.member.number'
|
||||||
|
@ -42,7 +42,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="season_ids" widget="many2many_tags" />
|
<field name="season_ids" widget="many2many_tags" />
|
||||||
<field name="category_id" widget="many2many_tags"
|
<field name="category_id" widget="many2many_tags"
|
||||||
placeholder="Tags..."/>
|
placeholder="Tags..."/>
|
||||||
<field name="currency_id" invisible="1"/>
|
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<group string="Personal details">
|
<group string="Personal details">
|
||||||
|
@ -41,6 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</div>
|
</div>
|
||||||
<field name="season_ids" position="before">
|
<field name="season_ids" position="before">
|
||||||
<field name="state_last_invoice" />
|
<field name="state_last_invoice" />
|
||||||
|
<field name="currency_id" invisible="1"/>
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Loading…
Reference in New Issue
Block a user