Browse Source

[IMP] emc: get journal by xml id rather than code

pull/101/head
robin.keunen 5 years ago
parent
commit
b37b8e1cfd
  1. 2
      easy_my_coop/models/coop.py

2
easy_my_coop/models/coop.py

@ -512,7 +512,7 @@ class SubscriptionRequest(models.Model):
invoice.sent = True
def get_journal(self):
return self.env["account.journal"].search([("code", "=", "SUBJ")])[0]
return self.env.ref("easy_my_coop.subscription_journal")
def get_accounting_account(self):
account_obj = self.env["account.account"]

Loading…
Cancel
Save