fix: get company attribute

This commit is contained in:
Deepesh Garg 2021-02-09 16:47:55 +05:30
parent 45cec6928b
commit 516b3ae1bc

View File

@ -245,7 +245,7 @@ class Subscription(Document):
self.validate_plans_billing_cycle(self.get_billing_cycle_and_interval()) self.validate_plans_billing_cycle(self.get_billing_cycle_and_interval())
self.validate_end_date() self.validate_end_date()
self.validate_to_follow_calendar_months() self.validate_to_follow_calendar_months()
self.cost_center = erpnext.get_default_cost_center(self.company) self.cost_center = erpnext.get_default_cost_center(self.get('company'))
def validate_trial_period(self): def validate_trial_period(self):
""" """