style(base_cfdi_mixin): black

parent 0b8b3c79
......@@ -76,7 +76,8 @@ class BaseCfdi(models.AbstractModel):
help="CFDI realed to the selected record.",
)
cfdi_folio_fiscal = fields.Char(
"CFD-I Folio Fiscal", related="cfdi_id.uuid",
"CFD-I Folio Fiscal",
related="cfdi_id.uuid",
help="Folio used in the electronic invoice",
)
cfdi_state = fields.Selection(related="cfdi_id.state")
......@@ -112,7 +113,7 @@ class BaseCfdi(models.AbstractModel):
""" Cancels the cfdi related with current record
return True if cancel proceed or false if must wait
"""
if self.cfdi_id and self.cfdi_id.state in ["signed", "done","waiting"]:
if self.cfdi_id and self.cfdi_id.state in ["signed", "done", "waiting"]:
return self.cfdi_id.action_cancel()
def consult_cfdi_cancellation_status(self):
......@@ -122,5 +123,5 @@ class BaseCfdi(models.AbstractModel):
@api.model
def unlink_cfdi(self):
''' Delete de relation '''
""" Delete de relation """
self.cfdi_id = False
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