Merge pull request #16391 from nabinhait/cc_fix

fix: Travis fix for hotfix branch
This commit is contained in:
Nabin Hait
2019-01-14 20:24:23 +05:30
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -18,15 +18,14 @@ class GLEntry(Document):
self.flags.ignore_submit_comment = True
self.check_mandatory()
self.validate_and_set_fiscal_year()
self.pl_must_have_cost_center()
self.validate_cost_center()
if not self.flags.from_repost:
self.pl_must_have_cost_center()
self.check_pl_account()
self.validate_cost_center()
self.validate_party()
self.validate_currency()
def on_update_with_args(self, adv_adj, update_outstanding = 'Yes', from_repost=False):
if not from_repost:
self.validate_account_details(adv_adj)

View File

@@ -325,7 +325,8 @@ def make_purchase_receipt(**args):
"conversion_factor": args.conversion_factor or 1.0,
"serial_no": args.serial_no,
"stock_uom": args.stock_uom or "_Test UOM",
"uom": args.uom or "_Test UOM"
"uom": args.uom or "_Test UOM",
"cost_center": "_Test Cost Center - _TC"
})
if not args.do_not_save: