forked from Yaltik/golem
Small code refactoring
This commit is contained in:
parent
6105d2d8c0
commit
4c9bfe446a
@ -15,20 +15,16 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
""" GOLEM Member Minor management """
|
""" Res Partner adaptations """
|
||||||
|
|
||||||
from datetime import date, timedelta
|
from odoo import models, fields
|
||||||
from odoo import models, fields, api
|
|
||||||
|
|
||||||
ADULT_DURATION = timedelta(days=365.25*18)
|
class ResPartner(models.Model):
|
||||||
|
""" Res Partner adaptations """
|
||||||
class GolemMember(models.Model):
|
|
||||||
""" GOLEM Member adaptations """
|
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
is_default_gardian = fields.Boolean()
|
is_default_gardian = fields.Boolean()
|
||||||
|
|
||||||
|
|
||||||
def do_default_gardian(self):
|
def do_default_gardian(self):
|
||||||
""" make only default gardian """
|
""" make only default gardian """
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user