Skip to content
Snippets Groups Projects
Commit a067b6a8 authored by Daniil Digtyar Vasilieva's avatar Daniil Digtyar Vasilieva :call_me:
Browse files

Removed account_invoice.py

parent b481120b
No related branches found
No related tags found
1 merge request!86Fix partners company
......@@ -2,7 +2,6 @@ from . import res_company
from . import res_partner
from . import subscription_request
from . import res_users
from . import account_invoice
from . import product
from . import utm_source
from . import crm_lead
from odoo import api, models, fields, _
from odoo.exceptions import UserError
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
def create_user(self, partner):
"""Caution: we are full overriding this function in order to avoid the
call to action_reset_password that will send an email to the user from odoo
:return: (res.users) the new user
"""
return partner.activate_partner_in_comunitat_energetica()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment