(self)
return domain
Both in_ and out_refund must be included in order to cover
        - credit notes with and without return
        - companies subject to arrivals or dispatches only
Both in_ and out_refund must be included in order to cover
        - credit notes with and without return
        - companies subject to arrivals or dispatches only
Both in_ and out_refund must be included in order to cover - credit notes with and without return - companies subject to arrivals or dispatches only
def _prepare_invoice_domain(self):
        # TODO: check with ES legislation
        """
        Both in_ and out_refund must be included in order to cover
        - credit notes with and without return
        - companies subject to arrivals or dispatches only
        """
        domain = super()._prepare_invoice_domain()
        if self.declaration_type == "arrivals":
            domain.append(("move_type", "in", ("in_invoice", "out_refund")))
        elif self.declaration_type == "dispatches":
            domain.append(("move_type", "in", ("out_invoice", "in_refund")))
        return domain
def _prepare_invoice_domain ( self ) : # TODO: check with ES legislation domain = super ( ) . _prepare_invoice_domain ( ) if self . declaration_type == "arrivals" : domain . append ( ( "move_type" , "in" , ( "in_invoice" , "out_refund" ) ) ) elif self . declaration_type == "dispatches" : domain . append ( ( "move_type" , "in" , ( "out_invoice" , "in_refund" ) ) ) return domain