def METHOD_NAME(self):
    """Test Stock Rule create stock.move with Fiscal fields."""
    # Create Delivery Order of 10 `product.product_product_3`
    # from Output -> Customer
    product = self.env.ref("product.product_product_3")
    vals = {
        "name": "Delivery order for procurement",
        "partner_id": self.ref("base.res_partner_2"),
        "picking_type_id": self.ref("stock.picking_type_out"),
        "location_id": self.ref("stock.stock_location_output"),
        "location_dest_id": self.ref("stock.stock_location_customers"),
        "move_lines": [
            (
                0,
                0,
                {
                    "name": "/",
                    "product_id": product.id,
                    "product_uom": product.uom_id.id,
                    "product_uom_qty": 10.00,
                    "procure_method": "make_to_order",
                },
            )
        ],
    }
    pick_output = self.env["stock.picking"].create(vals)
    pick_output.move_lines.onchange_product_id()
    # Confirm delivery order.
    pick_output.action_confirm()
    # I run the scheduler.
    # Note: If purchase if already installed, the method _run_buy
    # will be called due to the purchase demo data. As we update the
    # stock module to run this test, the method won't be an attribute
    # of stock.procurement at this moment. For that reason we mute the
    # logger when running the scheduler.
    with mute_logger("odoo.addons.stock.models.procurement"):
        self.env["procurement.group"].run_scheduler()
    # Check that a picking was created from stock to output.
    moves = self.env["stock.move"].search(
        [
            ("product_id", "=", self.ref("product.product_product_3")),
            ("location_id", "=", self.ref("stock.stock_location_stock")),
            ("location_dest_id", "=", self.ref("stock.stock_location_output")),
            ("move_dest_ids", "in", [pick_output.move_lines[0].id]),
        ]
    )
    self.assertEqual(
        len(moves.ids),
        1,
        "It should have created a picking from Stock to Output with the"
        " original picking as destination",
    )
    # Check if the fields included in l10n_br_stock_account was copied to move
    for move in moves:
        self.assertEqual(
            move.invoice_state,
            "2binvoiced",
            "The stock.move created has not invoice_state field 2binvoiced",
        )
        self.assertEqual(
            move.fiscal_operation_id.name,
            "Venda",
            "The stock.move created has not operation_id field Venda",
        )
        # self.assertEqual(
        #     move.fiscal_operation_line_id.name, 'Venda',
        #     "The stock.move created has not operation_line_id field Venda")