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