style(xpd_tu_factura): pylint analysis

parent a62b3dbe
......@@ -71,7 +71,8 @@ class ParamsPac(models.Model):
factura_mx_type__fc.update({"pac_facturalo": self.consult_xpd_cfdi})
return factura_mx_type__fc
def create_header(self, method):
@classmethod
def create_header(cls, method):
return {
"SOAPAction": "%s" % (_ACTIONS[method]),
"Content-Type": "text/xml;charset=UTF-8",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment